From aad2efd3037a73b388ee68596becf58c369fdc2b Mon Sep 17 00:00:00 2001
From: FireMasterK <20838718+FireMasterK@users.noreply.github.com>
Date: Tue, 22 Jun 2021 16:24:20 +0530
Subject: [PATCH] Allow configuring buffering goal.
---
src/components/Player.vue | 5 +++++
src/components/Preferences.vue | 7 +++++++
2 files changed, 12 insertions(+)
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
+
+