How can I play audio by just touching the screen..?? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

How can I play audio by just touching the screen..??

https://code.sololearn.com/Werqj7Tkekl9/?ref=app Here is my code... NOTE: Not with button element in javascript

6th Oct 2020, 3:16 PM
ā¤ā˜†Naniā˜†ā¤
ā¤ā˜†Naniā˜†ā¤ - avatar
2 Respostas
+ 5
1) Add event listener to window. 2) get DOM element using DOM functions. 3) use play function from AudioElement Object. https://code.sololearn.com/WlDaEnExDciP/?ref=app
6th Oct 2020, 3:20 PM
Raj Chhatrala
Raj Chhatrala - avatar
+ 1
RDC Thank you bro;)
6th Oct 2020, 3:24 PM
ā¤ā˜†Naniā˜†ā¤
ā¤ā˜†Naniā˜†ā¤ - avatar