is it possible to play more than one video element at a time on Chromecast? Or at least to have two video elements and just play one of them?
I tried it but I just get a black screen for the second video. But there is no error while debugging.
Thank you.
答案 0 :(得分:0)
You cannot have two active video elements at the same time. However, you can have two video elements but play in one, unload the media from that element, play in the second one, etc. Note that "pausing" is not adequate, you need to fully unload it from one before switching to the other one; for example, set video.src=''
to destroy the video pipeline. I haven't tested that myself but if you run into issues with that approach, please let us know and we'll dig deeper.
答案 1 :(得分:0)
不幸的是没有。因此,我们无法找到通过Google IMA SDK集成广告的好方法。当IMA SDK需要与视频本身“共享”播放器时,会导致糟糕的用户体验 - 在播放主视频之前,广告播放结束时总会出现“停电”。