使用Youtube JS api控制多个Youtube视频的播放(同时播放) [英] Controlling playback of multiple Youtube Videos with the Youtube JS api (playing at the same time)

查看:276
本文介绍了使用Youtube JS api控制多个Youtube视频的播放(同时播放)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个问题有一个非常类似的话题,但我试图做一些有点不同的事情。
这些对我来说都是一个新的东西......对不起......

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...

基本上,我试图在一页中播放多个YouTube视频同时(混搭风格)使用YouTube API和JS
的事情是我想分别控制他们每个人,而他们都在玩。我发现接近我想要的代码。事情是,视频不能一起播放,一旦你播放一个视频播放另一个停止。

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 ?

这里是我在其他主题上找到的代码

感谢高级,
Maayan

Thanks in advanced, Maayan

推荐答案

YouTube code playground 就是一个例子。

这篇关于使用Youtube JS api控制多个Youtube视频的播放(同时播放)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆