iv-org / invidious

Invidious is an alternative front-end to YouTube
https://invidious.io
GNU Affero General Public License v3.0
16.18k stars 1.79k forks source link

Player: Fix playback position of already watched videos #4731

Closed Fijxu closed 2 months ago

Fijxu commented 3 months ago

Closes #3976

Trying to watch an already watched video will make the video start 15 seconds before the end of the video. This is not very comfortable when listening to music or watching/listening playlists over and over. This can be easily tested on any instance with the "Save playback position" enabled on Preferences.

pimlie commented 3 months ago

Thanks for the fix. Wdyt about listening on the player ended event to reset the play position? Might be a bit cleaner solution then using a fixed threshold, but not sure how/where the playback position is recorded though and if there is an api endpoint available for that.

SamantazFox commented 2 months ago

Thanks for your PR!