I have two iframes in one page.
<iframe id="video" width="420" height="315" src="//www.youtube.com/embed/9B7te184ZpQ?rel=0" frameborder="0" allowfullscreen></iframe>
<iframe id="video1" width="420" height="315" src="//www.youtube.com/embed/9B7te184ZpQ?rel=0" frameborder="0" allowfullscreen></iframe>
I want to access onplay()
event of iframe, then i can able to stop second video(#Video1
) while playing first one(#Video
) and Stop first video(#Video
) when playing Second(#Video1
).
It is possible using YoutubeAPI
but i do not want to use that because i have other url videos not Youtube videos(here i put youtube links instead orignal links to avoid copyright). Is there another way except YoutubeAPI
. YoutubeAPI
is not working on another link resources. Please Suggest.