Q:

How to stop Youtube video playing when leaving a page on Jquery mobile site

When user leaves page where plays youtube video playback is not stops.  How can I solve it? 
Thanks! 

A:

$(document).live('pagebeforehide', function(){
    player.pauseVideo();
});

This will tell the video to pause each time a new page is called.