ampproject / ampproject/amphtml

Livestream support for amp-jwplayer

Open
#31,782 1 comment 0 reactions 0 assignees View on GitHub
P3: When Possible Stale Type: Feature Request WG: components
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

For amp-youtube, we have the option to include the channel details (`data-live-channelid`) for live stream videos. Will it be possible to add something like this for amp-jwplayer?

The option I'm aware of is to get the channel's JSON data and based on the status(active or not), fetch the player URL and plug it into the source URL for an iframe or video player. [Documentation](https://www.jwplayer.com/developers/web-player-demos/live-channels/). The issue with this is that the API will have to be hit occasionally on the client side to check if the live stream has started or not, and dynamically provide the source URL to the iframe/video player. I'm not aware of how(or if) this can be done with AMP. The other option is to do this on the server side. But then again there's the cache issue.

Contributor guide

Open the contributing guide

Research direction

Start with the amp-jwplayer component and the linked JW Player live-channels documentation. Determine whether AMP can support live-channel status and source updates without client-side polling or cache problems. Done means a documented, technically agreed approach for livestream support, with any required implementation scope identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.