Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chromecast not playing multiple HTML5 videos

I have 2 video players on single page. On desktop, everything works fine, both video players are playing videos. But when I try to cast this page to Chromecast (via Google Chrome extension or via https://demille.github.io/url-cast-receiver/), only first video player is active and playing, second video player is not working.

I tried to debug it and it looks like second video ends at video readyState=1 (first video has readyState=4)

Is there way to fix this? (I need multiple video players on single page, so using only one player and switching video files URLs is not a solution)

URL: http://iuvomedia.eu/chromecast/

like image 867
tomas657 Avatar asked Jul 27 '17 15:07

tomas657


People also ask

Can t play HTML5 video chrome?

An 'HTML5: Video file not found' error indicates either the browser you are using doesn't support HTML5 or the webpage doesn't have the proper video codec. You may contact the website's developer to install HTML5 supporting codecs for all the three WebM, MP4, and OGG formats.

Why is my video not working in HTML5?

If your browser error "HTML5 video file not found", it means that your browser is not up to date or website pages does not have a suitable video codec. It would help if you communicated with the developer to solve the issue and install all the required codecs.

What is a HTML5 video player?

An HTML5 video player is a digital technology that allows broadcasters to share video content with users over the internet. The HTML5 streaming technology was created as a more widely compatible alternative to Adobe's Flash player.


1 Answers

If you want one video to play and other to be pre-loaded then you should make a queue of videos you want to play. Chromecast will play single video at a time and when it ends it'll automatically load the next one in the queue.

For information on autoplay and queuing you may visit https://developers.google.com/cast/docs/autoplay

like image 109
Ibrahim Iqbal Avatar answered Sep 29 '22 00:09

Ibrahim Iqbal