1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #3116 from jomp16/master-save-playbackrate

Save playback speed rate, and restore when playing a video again
This commit is contained in:
Bill Thornton 2021-11-10 12:52:37 -05:00 committed by GitHub
commit 972ae1c3e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 0 deletions

View file

@ -3602,6 +3602,9 @@ class PlaybackManager {
setPlaybackRate(value, player = this._currentPlayer) {
if (player && player.setPlaybackRate) {
player.setPlaybackRate(value);
// Save the new playback rate in the browser session, to restore when playing a new video.
sessionStorage.setItem('playbackRateSpeed', value);
}
}