OdyseeTeam / odysee-frontend

The code that runs odysee.com
https://odysee.com
MIT License
214 stars 68 forks source link

unify players - move away from embedded player #17

Closed tzarebczan closed 2 years ago

tzarebczan commented 3 years ago

@tzarebczan commented on Wed May 12 2021

tzarebczan commented 2 years ago

When live endpoint is called, we get the m3u8 URL to pass to our player. It can be a hls (regular) or transcoded). When we periodically poll the live endpoint, a channel may start getting transcoded, so we should switch to that stream.

"url":"https://cdn.odysee.live/hls/6de621b92bfa14e54ab56e3498a893e21be785cf/index.m3u8"
"url":"https://cdn.odysee.live/transcode/6de621b92bfa14e54ab56e3498a893e21be785cf.m3u8"

We will add a websocket notification when the stream starts, but we should also use the live status from the live endpoint to try playing.

Code to reference for player specific enhancements: https://github.com/OdyseeTeam/odysee-media-server

If not live, show current background: https://spee.ch/odysee-streaming-png:2.png?quality=80&height=630&width=1200

tzarebczan commented 2 years ago

YESSSSSSSS