You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The client stack we use supports seeking HLS live streams (hlsjs + videojs). However, Peertube's client explicitly disables time controls in the GUI when broadcasting live.
SEGMENTS_LIST_SIZE: 15,// 15 maximum segments in live playlist
I tried modifying these two files to see if I could enable rewinding the live stream all the way to the beginning and I was able to achieve some success, but the behavior is still a bit clunky.
I was able to get a working UI but, for some reason, the seekbar isn't displayed as the live begins. I have to refresh the page for it to show itself. Also, the time being displayed in the control bar isn't nice, it would be cool if it displayed a negative time as in the seekbar and the "-:-:-" for the upper time limit isn't the best as well. I am opening this ticket to ask how to properly implement this feature. I would gladly contribute with its development if I can get some instructions.
Describe the solution you would like
I want to be able to seek a live stream, moving back and forth between what was already played and the live incoming bits of video.
The text was updated successfully, but these errors were encountered:
@Chocobozzz could you help me push forward this feature even if in a hacky way. The behaviour mostly works, but I can't understand why the seekbar isn't displayed as soon as the live starts. You have to refresh the page for it to show...
Do you know what might be toggling it off at the beginning?
Describe the problem to be solved
The client stack we use supports seeking HLS live streams (hlsjs + videojs). However, Peertube's client explicitly disables time controls in the GUI when broadcasting live.
PeerTube/client/src/assets/player/shared/peertube/peertube-plugin.ts
Line 522 in 0870a3f
Another issue is that the amount of ts files kept (necessary to control the buffer size) is not currently parametrizable and is a constant set here.
PeerTube/server/core/initializers/constants.ts
Line 1034 in 0870a3f
I tried modifying these two files to see if I could enable rewinding the live stream all the way to the beginning and I was able to achieve some success, but the behavior is still a bit clunky.
I turned on the
liveui
flag here:PeerTube/client/src/assets/player/peertube-player.ts
Line 416 in 0870a3f
I disabled the smooth scrolling (since time calculation doesn't support live streams) here:
PeerTube/client/src/assets/player/shared/peertube/peertube-plugin.ts
Line 224 in 0870a3f
I forced p2p to false here:
PeerTube/client/src/assets/player/shared/player-options-builder/hls-options-builder.ts
Line 134 in 91302ea
I was able to get a working UI but, for some reason, the seekbar isn't displayed as the live begins. I have to refresh the page for it to show itself. Also, the time being displayed in the control bar isn't nice, it would be cool if it displayed a negative time as in the seekbar and the "-:-:-" for the upper time limit isn't the best as well. I am opening this ticket to ask how to properly implement this feature. I would gladly contribute with its development if I can get some instructions.
Describe the solution you would like
I want to be able to seek a live stream, moving back and forth between what was already played and the live incoming bits of video.
The text was updated successfully, but these errors were encountered: