native.cancelWebPopup() not canceling video and audio?

 local bt01t = function ( event )  
 if event.phase == "ended" then  
 native.cancelWebPopup()  
 director:changeScene( "mainmenu", "moveFromLeft" )  
 end  
 end  
 NavbarImage:addEventListener("touch",bt01t)  

With the above code, director will change back to my mainmenu.lua file but the current webpopup will stay active. When I pick another menu option which has a webpopup, I see the last one briefly.
Also, if the current webpopup has an embedded video (eg YouTube) and it is playing, when I hit the button to go back to the mainmenu.lua with the above code the video’s audio is still playing and will continue to play unless I pop up another webpopup or exit the app.
Any clues? [import]uid: 10389 topic_id: 12119 reply_id: 312119[/import]

Anyone else have this issue? [import]uid: 10389 topic_id: 12119 reply_id: 44148[/import]

Dang it. If I can get this one issue fixed I can release to the app store :-/ [import]uid: 10389 topic_id: 12119 reply_id: 44261[/import]

Hmm. I tested exporting to Android.
Even when you exit the app by hitting the HOME button the audio keeps playing. You have to KILL the app to stop it. [import]uid: 10389 topic_id: 12119 reply_id: 44489[/import]

Hey WauloK,

Will bring this up in our next meeting.

Peach [import]uid: 52491 topic_id: 12119 reply_id: 44567[/import]

Thanks! Appreciate it! [import]uid: 10389 topic_id: 12119 reply_id: 44616[/import]

Tested with latest daily build. The flickering is fixed but audio continues after canceling webpopups. [import]uid: 10389 topic_id: 12119 reply_id: 45390[/import]

This issue is confirmed to be still occuring in the new stable build. [import]uid: 10389 topic_id: 12119 reply_id: 49720[/import]

just speculating here, in the HTML can you put a javascript code that checks for the page being changed or unloaded and stop the audio/video then?

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 12119 reply_id: 49726[/import]

I don’t know how to manipulate controls in the mobile YouTube website page. [import]uid: 10389 topic_id: 12119 reply_id: 49745[/import]

*PING* Any movement at all on solving this problem with web audio continuing to play after the webpopup is closed? Anyone found a workaround? [import]uid: 8879 topic_id: 12119 reply_id: 56553[/import]