feat: Better UI for live playback via an option#5511
Conversation
There was a problem hiding this comment.
This fixes an issue where it would not show up as live for the first few seconds.
There was a problem hiding this comment.
This makes it so that there are a few seconds before the "live" point as in a normal live stream
There was a problem hiding this comment.
we show this now
There was a problem hiding this comment.
I am not sure if we want to hide this or fix it, basically this can make it so that the progress bar goes past the player.
There was a problem hiding this comment.
We may not know if the player is live until it is ready.
ec7998c to
64950bc
Compare
|
The button width might have to be flexible to account for longer localised strings. Catalan 'EN DIRECTE' is the longest we currently have in the translations. |
|
Is there a reason this isn't implemented as a middleware? |
|
@gkatsev We discussed that a bit in our grooming call, but @brandonocasey had some uncertainty. We can discuss further on Monday when you're back. 👍 |
c8b5bc0 to
e4e7241
Compare
|
Internally we originally though that this could be implemented as middleware, but I found several issues with that in the initial implementation. Here are the issues
After talking about it we think that the issues do warrant this being a UI only change. As having live streams now have a finite duration and negative current times would be too far from what a video element does. |
4da9701 to
6a7cc35
Compare
ad6be26 to
3d9ee46
Compare
6a7cc35 to
3678963
Compare
3d9ee46 to
a626394
Compare
|
I haven't done in depth testing but a there's documentation missing. |
|
Yeah I think we would need to talk to them about that. We can only seek back as far as seekable start, as far as I know. |
|
Looks like the stream I was testing with had a target duration much larger than the segment size which cut into the seekable. |
54fc3d3 to
1106fc9
Compare
misteroneill
left a comment
There was a problem hiding this comment.
One thought. @gkatsev thoughts on this?
be2fceb to
d75e491
Compare
Changes
All of the following is behind a new option called
liveuithat defaults tofalse:LiveDisplay
vjs-liveis set on the player but hidden whenvjs-liveandvjs-liveuiare both on the playerSeekToLive
vjs-liveandvjs-liveuiclasses are on the playerLiveTracker
seekable end changesso that we can keep up to date with what the live current time should beSeek/Progress Bar