benwiley4000 / cassette

📼 A flexible media player component library for React that requires no up-front config
https://benwiley4000.github.io/cassette/styleguide
MIT License
184 stars 28 forks source link

`durationOverride` prop for `MediaProgress` / `MediaProgressDisplay` #376

Closed benwiley4000 closed 5 years ago

benwiley4000 commented 5 years ago

Related to #374 - we'll be displaying the max known time as the duration during a live stream, so the duration will stagnate if we rewind to an earlier timestamp, since we'll stop buffering media at the end of the track.

There's not a lot of great solutions for automatically tracking the seekable length of a live stream, but what we can do is make a durationOverride prop available on MediaProgress and MediaProgressDisplay so if the client has some live duration info coming from the server, it can be displayed via the UI provided by @cassette/player.