mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
Store preferred playback rate (#493)
This commit is contained in:
parent
6b00fe8b8e
commit
930395f74e
1 changed files with 5 additions and 0 deletions
|
@ -192,6 +192,10 @@ export default {
|
|||
this.setPreference("volume", videoEl.volume);
|
||||
});
|
||||
|
||||
videoEl.addEventListener("ratechange", () => {
|
||||
this.setPreference("rate", videoEl.playbackRate);
|
||||
})
|
||||
|
||||
videoEl.addEventListener("ended", () => {
|
||||
if (!this.selectedAutoLoop && this.selectedAutoPlay && this.video.relatedStreams.length > 0) {
|
||||
const params = this.$route.query;
|
||||
|
@ -278,6 +282,7 @@ export default {
|
|||
);
|
||||
});
|
||||
videoEl.volume = this.getPreferenceNumber("volume", 1);
|
||||
videoEl.playbackRate = this.getPreferenceNumber("rate", 1);
|
||||
});
|
||||
},
|
||||
destroy() {
|
||||
|
|
Loading…
Reference in a new issue