Page 1 of 1
javascript audio command not working on android
Posted: Mon Jul 13, 2015 7:26 pm
by David wyatt
Hi,
Ive set an audio component set to auto play on load and the following command to stop it,
Apperyio("bgmusic").get(0).pause();
Music plays fine and everything is fine in browser, apperyio test app and ios.
But on android builds music plays but doesnt stop
thanks for help
Dave
javascript audio command not working on android
Posted: Tue Jul 14, 2015 6:23 am
by Illya Stepanov
Hi Dave -
Could you please tell us which Android version you're using for test?
javascript audio command not working on android
Posted: Tue Jul 14, 2015 7:49 pm
by David wyatt
Hi Stepanov,
Ive tried on both 4.4 and 5.1. Also the audio file continues to play even when the app is minimalised.
Additionally Ive tried library 2.1 and 2.2 but still no joy
thank you for your help
javascript audio command not working on android
Posted: Sat Jul 25, 2015 1:55 pm
by Alena Prykhodko
Hello David,
Could you please specify how exactly do you use this code?
I can not get in working even in browser.
javascript audio command not working on android
Posted: Sat Jul 25, 2015 1:56 pm
by David wyatt
Hi was wondering if there was any update. Thank you
javascript audio command not working on android
Posted: Sat Jul 25, 2015 1:58 pm
by Alena Prykhodko
Where do you put this code and on what handler?
javascript audio command not working on android
Posted: Tue Jul 28, 2015 4:09 pm
by David wyatt
The code is on a tap command on button in the menu on the start page.
javascript audio command not working on android
Posted: Tue Jul 28, 2015 4:12 pm
by David wyatt
When the app loads the music auto plays. If you press the option button a panel shows with a button that runs the code to pause the music. It still works for me on everything but Android builds
javascript audio command not working on android
Posted: Tue Jul 28, 2015 4:23 pm
by Illya Stepanov
Perhaps you using format that doesn't supported by Android platform, try enabling Weinre debugger and check what you getting on this event invocation on a device (https://devcenter.appery.io/documenta...).