FreeTubeApp / FreeTube

An Open Source YouTube app for privacy
https://freetubeapp.io/
GNU Affero General Public License v3.0
13.07k stars 808 forks source link

Enhancement: Set speed on livestream to 1 if playing too fast #287

Open 132ikl opened 5 years ago

132ikl commented 5 years ago

If you view a livestream with a speed greater than 1, the stream will be too fast for the stream and it will constantly play until the stream and then buffer until there's more stream data. YouTube handles this by setting the playback speed of the player to 1 if it has to start buffering.

PrestonN commented 3 years ago

I think the main issue with this is that I won't know the difference between catching up to live or if your video is actually stuttering. I haven't looked into this yet but mostly wanted to put my thoughts down somewhere.

132ikl commented 3 years ago

Maybe you can track how long the stream has been within a threshold to be considered live (ie. within 5 seconds counts as live), and if it buffers within x seconds of being considered live then it resets to 1x speed?

deepspaceaxolotl commented 3 years ago

Perhaps just making it switch to Live mode (at 1x speed concurrent with the stream) within 3-5 seconds of the live time? So you switch it to say 1.25x to catch up, and when it gets to within 3-5 seconds of the live time, it switches back to 1x speed or skips ahead to be concurrent at 1x again. I don't know how YouTube handles the catch-up switching though.