Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8468

youtube in iframe: stop video when exiting page (switching xml view)

$
0
0

Hi all,

suppose I have a youtube video linked in an iframe within an xml view. I start the video, however, when I want to switch to another xml view, i.e. step out of this page, e.g. go to home page, the video playing continues (I have to manually stop it). I'd like to know how to automatically stop the video as soon as another button is clicked (potentially, it would be a button to home page or previous page), eg like in the example below. What do I need to adapt?

 

http://jsbin.com/bifunazuti/1/

 

Thanks and regards Daniel


Viewing all articles
Browse latest Browse all 8468

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>