hls fix progress

This commit is contained in:
booploops 2021-12-10 21:51:34 -08:00
parent 6585bcde1b
commit f92b5ac293
4 changed files with 31054 additions and 3 deletions

View file

@ -31,8 +31,18 @@
}
// bind them together
if (this.$refs.video) {
let d = "WIDEVINE_SOFTWARE"
let h = {
initDataTypes: ["cenc", "keyids"],
distinctiveIdentifier: "optional",
persistentState: "required"
}
let p = {
platformInfo: {requiresCDMAttachOnStart: !0, maxSecurityLevel: d, keySystemConfig: h},
appData: {serviceName: "Apple Music"}
}
this.hls.attachMedia(this.$refs.video);
this.hls.loadSource(this.video);
this.hls.loadSource(this.video, p);
this.hls.loadLevel = 4;
}
})