Android does not support the autoplay attribute of html 5 so I need to play a sound automatically when a button is pressed and I am using the following js code that does not work:
Appery('mobileaudio_31').play();
Any ideas?
Android does not support the autoplay attribute of html 5 so I need to play a sound automatically when a button is pressed and I am using the following js code that does not work:
Appery('mobileaudio_31').play();
Any ideas?
Hi William.
Try jplayer instead of audio component
http://jplayer.org/
Hi Oleg,
Thanks for the tip, but can as I am new to Appery can you please give me a hint to how to use jplayer in appery? Do I need to create it a new javascript file and use it there, or is there a way to upload it as a plugin or custom component?
Thanks
Hi William,
Add jquery.jplayer.min.js as external source, or custom JS
Hi,
Ok I have added jplayer in an html component with name html_33. Player works when initialized by a jquery function inside the html code of the new html component.
However when I add an event for a button to run Javascript function that does the same thing it seems that I have a problem getting the player with the jquery selector.
Do I need to do anything additional since it is inside html_33 component?
Thanks
William
1) "I have added jplayer in an html component" - what html code do you use to add jplayer?
2) "run Javascript function that does the same thing" - what JS code do you use?