|
|
|||
How to stop video in tabs?
I have a tab interface on my website that contains images and a youtube video on the last tab. All works fine however everytime I switch tabs the video doesn't stop playing. Is there a way to fix this? Thanks in advance.
This is what I got: http://jsfiddle.net/EPEDr/1/ 1 Reply
You can call a function when switching tabs to stop or pause the video using the YouTube player API. Check out the API docs at https://developers.g...ence#pauseVideo and this example on the YouTube dev blog.
Also, here are two good conversations on StackOverflow about this: http://stackoverflow...ding-the-iframe http://stackoverflow...-api-stop-video Hope that helps! Rachel |
|||
|