mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-26 07:27:22 +00:00
Allow configuring buffering goal.
This commit is contained in:
parent
5237af3eee
commit
aad2efd303
@ -78,6 +78,11 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
localPlayer.configure(
|
||||||
|
"streaming.bufferingGoal",
|
||||||
|
Math.max(Number(localStorage.getItem("bufferGoal")), 10),
|
||||||
|
);
|
||||||
|
|
||||||
this.setPlayerAttrs(localPlayer, videoEl, uri, shaka);
|
this.setPlayerAttrs(localPlayer, videoEl, uri, shaka);
|
||||||
});
|
});
|
||||||
else this.setPlayerAttrs(this.player, videoEl, uri, this.shaka);
|
else this.setPlayerAttrs(this.player, videoEl, uri, this.shaka);
|
||||||
|
@ -45,6 +45,10 @@
|
|||||||
<option value="0">Auto</option>
|
<option value="0">Auto</option>
|
||||||
<option :key="resolution" v-for="resolution in resolutions" :value="resolution">{{ resolution }}p</option>
|
<option :key="resolution" v-for="resolution in resolutions" :value="resolution">{{ resolution }}p</option>
|
||||||
</select>
|
</select>
|
||||||
|
<br />
|
||||||
|
<b>Buffering Goal</b>
|
||||||
|
<br />
|
||||||
|
<input class="uk-input" v-model="bufferingGoal" @change="onChange($event)" type="text" />
|
||||||
<h2>Instances List</h2>
|
<h2>Instances List</h2>
|
||||||
<table class="uk-table">
|
<table class="uk-table">
|
||||||
<thead>
|
<thead>
|
||||||
@ -94,6 +98,7 @@ export default {
|
|||||||
audioOnly: false,
|
audioOnly: false,
|
||||||
resolutions: [144, 240, 360, 480, 720, 1080, 1440, 2160, 4320],
|
resolutions: [144, 240, 360, 480, 720, 1080, 1440, 2160, 4320],
|
||||||
defaultQuality: 0,
|
defaultQuality: 0,
|
||||||
|
bufferingGoal: 10,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -157,6 +162,7 @@ export default {
|
|||||||
localStorage.getItem("playerAutoPlay") === null || localStorage.getItem("playerAutoPlay") === "true";
|
localStorage.getItem("playerAutoPlay") === null || localStorage.getItem("playerAutoPlay") === "true";
|
||||||
this.audioOnly = localStorage.getItem("audioOnly") === "true";
|
this.audioOnly = localStorage.getItem("audioOnly") === "true";
|
||||||
this.defaultQuality = Number(localStorage.getItem("quality"));
|
this.defaultQuality = Number(localStorage.getItem("quality"));
|
||||||
|
this.bufferingGoal = Math.max(Number(localStorage.getItem("bufferGoal")), 10);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -177,6 +183,7 @@ export default {
|
|||||||
localStorage.setItem("playerAutoPlay", this.autoPlayVideo);
|
localStorage.setItem("playerAutoPlay", this.autoPlayVideo);
|
||||||
localStorage.setItem("audioOnly", this.audioOnly);
|
localStorage.setItem("audioOnly", this.audioOnly);
|
||||||
localStorage.setItem("quality", this.defaultQuality);
|
localStorage.setItem("quality", this.defaultQuality);
|
||||||
|
localStorage.setItem("bufferGoal", this.bufferingGoal);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
sslScore(url) {
|
sslScore(url) {
|
||||||
|
Loading…
Reference in New Issue
Block a user