changed hlscider to use hls 1.1.2 stable instead of canary

This commit is contained in:
booploops 2021-12-26 22:24:46 -08:00
parent 3fee1b3e4a
commit 7e0049c456

View file

@ -3316,7 +3316,7 @@ typeof window !== "undefined" &&
_this3.tick(); _this3.tick();
}).catch(function (reason) { }).catch(function (reason) {
// _this3.warn(reason); _this3.warn(reason);
_this3.resetFragmentLoading(frag); _this3.resetFragmentLoading(frag);
}); });
@ -10793,10 +10793,13 @@ typeof window !== "undefined" &&
if (currentTrack !== null && currentTrack !== void 0 && currentTrack.details) { if (currentTrack !== null && currentTrack !== void 0 && currentTrack.details) {
this.mediaBuffer = this.mediaBufferTimeRanges; this.mediaBuffer = this.mediaBufferTimeRanges;
this.setInterval(TICK_INTERVAL);
} else { } else {
this.mediaBuffer = null; this.mediaBuffer = null;
} }
if (currentTrack) {
this.setInterval(TICK_INTERVAL);
}
} // Got a new set of subtitle fragments. } // Got a new set of subtitle fragments.
; ;
@ -11461,6 +11464,7 @@ typeof window !== "undefined" &&
this.cea608Parser1 = void 0; this.cea608Parser1 = void 0;
this.cea608Parser2 = void 0; this.cea608Parser2 = void 0;
this.lastSn = -1; this.lastSn = -1;
this.lastPartIndex = -1;
this.prevCC = -1; this.prevCC = -1;
this.vttCCs = newVTTCCs(); this.vttCCs = newVTTCCs();
this.captionsProperties = void 0; this.captionsProperties = void 0;
@ -11697,6 +11701,7 @@ typeof window !== "undefined" &&
_proto.onManifestLoading = function onManifestLoading() { _proto.onManifestLoading = function onManifestLoading() {
this.lastSn = -1; // Detect discontinuity in fragment parsing this.lastSn = -1; // Detect discontinuity in fragment parsing
this.lastPartIndex = -1;
this.prevCC = -1; this.prevCC = -1;
this.vttCCs = newVTTCCs(); // Detect discontinuity in subtitle manifests this.vttCCs = newVTTCCs(); // Detect discontinuity in subtitle manifests
@ -11833,7 +11838,8 @@ typeof window !== "undefined" &&
_proto.onFragLoading = function onFragLoading(event, data) { _proto.onFragLoading = function onFragLoading(event, data) {
var cea608Parser1 = this.cea608Parser1, var cea608Parser1 = this.cea608Parser1,
cea608Parser2 = this.cea608Parser2, cea608Parser2 = this.cea608Parser2,
lastSn = this.lastSn; lastSn = this.lastSn,
lastPartIndex = this.lastPartIndex;
if (!this.enabled || !(cea608Parser1 && cea608Parser2)) { if (!this.enabled || !(cea608Parser1 && cea608Parser2)) {
return; return;
@ -11841,14 +11847,18 @@ typeof window !== "undefined" &&
if (data.frag.type === _types_loader__WEBPACK_IMPORTED_MODULE_7__["PlaylistLevelType"].MAIN) { if (data.frag.type === _types_loader__WEBPACK_IMPORTED_MODULE_7__["PlaylistLevelType"].MAIN) {
var sn = data.frag.sn; var _data$part$index, _data$part;
if (sn !== lastSn + 1) { var sn = data.frag.sn;
var partIndex = (_data$part$index = data === null || data === void 0 ? void 0 : (_data$part = data.part) === null || _data$part === void 0 ? void 0 : _data$part.index) != null ? _data$part$index : -1;
if (!(sn === lastSn + 1 || sn === lastSn && partIndex === lastPartIndex + 1)) {
cea608Parser1.reset(); cea608Parser1.reset();
cea608Parser2.reset(); cea608Parser2.reset();
} }
this.lastSn = sn; this.lastSn = sn;
this.lastPartIndex = partIndex;
} }
}; };
@ -17864,7 +17874,7 @@ typeof window !== "undefined" &&
}], [{ }], [{
key: "version", key: "version",
get: function get() { get: function get() {
return "1.1.2-0.canary.8085"; return "1.1.2";
} }
}, { }, {
key: "Events", key: "Events",
@ -19209,11 +19219,7 @@ typeof window !== "undefined" &&
} }
} }
} }
if (levels && levels.length > 0) {
levels = levels.sort(function (a, b) {
return a.bitrate - b.bitrate;
});
}
return { return {
levels: levels, levels: levels,
sessionData: hasSessionData ? sessionData : null sessionData: hasSessionData ? sessionData : null
@ -27813,3 +27819,4 @@ typeof window !== "undefined" &&
/******/ })["default"]; /******/ })["default"];
}); });
//# sourceMappingURL=CiderHls.js.map