diff --git a/src/components/Player.vue b/src/components/Player.vue index ba12d07c..1d984b00 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -78,6 +78,11 @@ export default { } }); + localPlayer.configure( + "streaming.bufferingGoal", + Math.max(Number(localStorage.getItem("bufferGoal")), 10), + ); + this.setPlayerAttrs(localPlayer, videoEl, uri, shaka); }); else this.setPlayerAttrs(this.player, videoEl, uri, this.shaka); diff --git a/src/components/Preferences.vue b/src/components/Preferences.vue index ac5fa2e9..b368e4fe 100644 --- a/src/components/Preferences.vue +++ b/src/components/Preferences.vue @@ -45,6 +45,10 @@ +
+ Buffering Goal +
+

Instances List

@@ -94,6 +98,7 @@ export default { audioOnly: false, resolutions: [144, 240, 360, 480, 720, 1080, 1440, 2160, 4320], defaultQuality: 0, + bufferingGoal: 10, }; }, mounted() { @@ -157,6 +162,7 @@ export default { localStorage.getItem("playerAutoPlay") === null || localStorage.getItem("playerAutoPlay") === "true"; this.audioOnly = localStorage.getItem("audioOnly") === "true"; this.defaultQuality = Number(localStorage.getItem("quality")); + this.bufferingGoal = Math.max(Number(localStorage.getItem("bufferGoal")), 10); } }, methods: { @@ -177,6 +183,7 @@ export default { localStorage.setItem("playerAutoPlay", this.autoPlayVideo); localStorage.setItem("audioOnly", this.audioOnly); localStorage.setItem("quality", this.defaultQuality); + localStorage.setItem("bufferGoal", this.bufferingGoal); } }, sslScore(url) {