sampotts/plyr

Allow playing Youtube channel's live stream

Open

#789 opened on 2018年2月15日

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

説明

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

コントリビューターガイド

Allow playing Youtube channel's live stream · sampotts/plyr#789 | Good First Issue