mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-14 04:08:21 +00:00
Prefer av1, vp9 and then avc1.
This commit is contained in:
parent
e081e9110e
commit
4cb06c3569
@ -166,10 +166,18 @@ export default {
|
|||||||
this.player = player;
|
this.player = player;
|
||||||
|
|
||||||
const disableVideo = this.getPreferenceBoolean("listen", false) && !this.video.livestream;
|
const disableVideo = this.getPreferenceBoolean("listen", false) && !this.video.livestream;
|
||||||
this.player.configure("manifest.disableVideo", disableVideo);
|
|
||||||
|
this.player.configure({
|
||||||
|
preferredVideoCodecs: ["av01", "vp9", "avc1"],
|
||||||
|
preferredAudioCodecs: ["opus", "mp4a"],
|
||||||
|
manifest: {
|
||||||
|
disableVideo: disableVideo,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
const quality = this.getPreferenceNumber("quality", 0);
|
const quality = this.getPreferenceNumber("quality", 0);
|
||||||
const qualityConds = quality > 0 && (this.video.audioStreams.length > 0 || this.video.livestream);
|
const qualityConds =
|
||||||
|
quality > 0 && (this.video.audioStreams.length > 0 || this.video.livestream) && !disableVideo;
|
||||||
if (qualityConds) this.player.configure("abr.enabled", false);
|
if (qualityConds) this.player.configure("abr.enabled", false);
|
||||||
|
|
||||||
player.load(uri, 0, uri.indexOf("dash+xml") >= 0 ? "application/dash+xml" : "video/mp4").then(() => {
|
player.load(uri, 0, uri.indexOf("dash+xml") >= 0 ? "application/dash+xml" : "video/mp4").then(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user