Controlling playback of multiple Youtube Videos with the Youtube JS api (playing at the same time)

家住魔仙堡 提交于 2019-12-12 01:58:58

问题


I know that there's a very similar topic for this question, however I'm trying to do something a little different. all of this is a little new for me... sorry...

Basically I'm trying to play multiple YouTube Videos in one page at the same time (mash up style) using YouTube API and JS the thing is i want to control each of them separately, while they all playing. i found the code that is close to what i want. the thing is that the videos cannot be played together, once you hit play on a video the other one stops.

how can i control them separately, and still have the other videos playing in the background and not being influenced ?

here's the code i found on another topic

Thanks in advanced, Maayan


回答1:


The YouTube code playground has an example for this.



来源:https://stackoverflow.com/questions/10268075/controlling-playback-of-multiple-youtube-videos-with-the-youtube-js-api-playing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!