JavaScript function that prevents YouTube video playing at the same time (No iframe) -


just clarify, aware of youtube playback control required:

player.pausevideo():void 

but know how can utilise without using iframe , javascript function needed, have multiple videos choose , want avoid videos playing @ same time.

i have inserted videos youtube using code:

<div id="apdiv10"><embed width="200" height="140" id="yt9"      src="https://www.youtube.com/v/a2p17bdrgqu"></div>   <div id="apdiv11"><embed width="200" height="140" id="yt10"       src="https://www.youtube.com/v/membfbz_9we"></div> 

can provide run down me , how can apply function?


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -