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. 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.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
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. 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.