using html 5 and request mobile I have a page with 3 buttons:
I want each button to select a different sound, and then another button to play the selected sound.
Can someone give me a steering wheel?
thanks
Jim
Refuse the HTML5 <audio> . You can preload audio clips and play them when the user interacts with elements.
<audio>
Docs for <audio> : https://developer.mozilla.org/en/HTML/Element/audio
You may want to check out a ready-made plugin for this, I saw that JPlayer used a lot: http://jplayer.org/
Although the plugin is not needed, the HTML5 <audio> has the ability to control it using JavaScript.
Source: https://habr.com/ru/post/907069/More articles:fopen does not work on my server - phpOne object (java bean) as a data source for iReport (JasperReports) - javaupdate data after entering the foreground - iosFast mail is sent to the queue for subsequent delivery - phpWhat is an enumerated argument in Object.create? - javascriptIs it possible to create an Android application using PhoneGap strictly inside Visual Studio? - javascriptWhat is the difference between Apache Cordova and PhoneGap? - androidCan CFLDAP be used to extract all users from a distribution group with only the group email address? - coldfusionDefine the MIB and send the SNMP trap to .net - .netIntel OpenCV Evaluation Guidelines? - c ++All Articles