I am using PhoneGap 2.4.0. for android application.
When I open an external web page (containing YouTube videos) using inappbrowser, the video plays well. But after closing the web page with the pressed button, the sound does not stop playing. To stop the video sound, I had to turn off the phone.
This is a big problem for me. Last time a week I tried to fix it.
Can i get help?
This is my code.
.......................
function chamgae(juso) {
var ref = window.open(juso, '_blank', 'location=yes');
ref.close();
}
..........................
<a href="#" onclick="chamgae('http://m.youtube.com')">
..........................
or
.......................
function chamgae(juso) {
window.open(juso, '_blank', 'location=yes');
}
..........................
<a href="#" onclick="chamgae('http://m.youtube.com')">
..........................
source
share