mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-22 05:27:20 +00:00
Store preferred playback rate (#493)
This commit is contained in:
parent
6b00fe8b8e
commit
930395f74e
@ -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 New Issue
Block a user