Question

When using PhoneGap's InAppBrowser I am loading a page with a video. If I play that video and close the InAppBrowser the video playback continues. I have searched high and low for an answer to this issue. How can I stop the playback or remove the connection when closing the InAppBrowser?

Was it helpful?

Solution

I found a solution. What you want to do, is set target from _blank to _self that will cause it to stop playback when you hit the back button.

var ref = window.open(url, '_self', options);

window.open

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top