David wyatt
Posts: 0
Joined: Mon Sep 15, 2014 7:12 pm

javascript audio command not working on android

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

javascript audio command not working on android

Hi Dave -

Could you please tell us which Android version you're using for test?

David wyatt
Posts: 0
Joined: Mon Sep 15, 2014 7:12 pm

javascript audio command not working on android

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

javascript audio command not working on android

Hello David,

Could you please specify how exactly do you use this code?
I can not get in working even in browser.

David wyatt
Posts: 0
Joined: Mon Sep 15, 2014 7:12 pm

javascript audio command not working on android

Hi was wondering if there was any update. Thank you

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

javascript audio command not working on android

Where do you put this code and on what handler?

David wyatt
Posts: 0
Joined: Mon Sep 15, 2014 7:12 pm

javascript audio command not working on android

The code is on a tap command on button in the menu on the start page.

David wyatt
Posts: 0
Joined: Mon Sep 15, 2014 7:12 pm

javascript audio command not working on android

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

javascript audio command not working on android

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...).

Return to “Issues”