sampotts/plyr

Allow playing Youtube channel's live stream

Open

#789 opened on Feb 15, 2018

View on GitHub
 (5 comments) (4 reactions) (0 assignees)JavaScript (25,318 stars) (2,856 forks)batch import
Help WantedImprovement

Description

This is more of a feature request. It would be nice to allow Youtube plugin to support playing channel's live stream. Live stream is currently in the following URL

https://www.youtube.com/embed/live_stream?channel=channel-id

I think it currently uses Youtube IFrame API and passes video id to it, but that doesn't work with the live streams. It would be nice to check if the URL includes live stream and if it does, don't fetch video using the video id, just ignore it. In that case, Youtube will use the src attribute from the iframe. Of course there's a need for an option to change the url dynamically as well.

Expected behaviour

Allow playing Youtube live stream

Actual behaviour

It doesn't exist?

Environment

  • Browser:
  • Version:
  • Operating System:
  • Version:

Players affected:

  • HTML5 Video
  • HTML5 Audio
  • YouTube
  • Vimeo

Steps to reproduce

Relevant links

Example in the docs: https://developers.google.com/youtube/iframe_api_reference#Examples

Contributor guide