mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-25 06:57:22 +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;
|
||||
|
||||
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 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);
|
||||
|
||||
player.load(uri, 0, uri.indexOf("dash+xml") >= 0 ? "application/dash+xml" : "video/mp4").then(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user