hls.js 1.5.8-0.canary.10046 → 1.5.8-0.canary.10049
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hls.js +13 -6
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +13 -6
- package/dist/hls.light.js.map +1 -1
- package/dist/hls.light.min.js +1 -1
- package/dist/hls.light.min.js.map +1 -1
- package/dist/hls.light.mjs +13 -6
- package/dist/hls.light.mjs.map +1 -1
- package/dist/hls.min.js +1 -1
- package/dist/hls.min.js.map +1 -1
- package/dist/hls.mjs +13 -6
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/dist/hls.worker.js.map +1 -1
- package/package.json +1 -1
- package/src/controller/base-stream-controller.ts +3 -2
- package/src/controller/cap-level-controller.ts +1 -0
- package/src/utils/logger.ts +8 -3
package/dist/hls.light.js
CHANGED
@@ -613,14 +613,19 @@
|
|
613
613
|
// Some browsers don't allow to use bind on console object anyway
|
614
614
|
// fallback to default if needed
|
615
615
|
try {
|
616
|
-
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.8-0.canary.
|
616
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.8-0.canary.10049");
|
617
617
|
} catch (e) {
|
618
618
|
/* log fn threw an exception. All logger methods are no-ops. */
|
619
619
|
return createLogger();
|
620
620
|
}
|
621
|
+
// global exported logger uses the same functions as new logger without `id`
|
622
|
+
keys.forEach(function (key) {
|
623
|
+
exportedLogger[key] = getLoggerFn(key, debugConfig);
|
624
|
+
});
|
625
|
+
} else {
|
626
|
+
// Reset global exported logger
|
627
|
+
_extends(exportedLogger, newLogger);
|
621
628
|
}
|
622
|
-
// global exported logger uses the log methods from last call to `enableLogs`
|
623
|
-
_extends(exportedLogger, newLogger);
|
624
629
|
return newLogger;
|
625
630
|
}
|
626
631
|
var logger = exportedLogger;
|
@@ -8459,6 +8464,7 @@
|
|
8459
8464
|
};
|
8460
8465
|
_proto.onMediaDetaching = function onMediaDetaching() {
|
8461
8466
|
this.stopCapping();
|
8467
|
+
this.media = null;
|
8462
8468
|
};
|
8463
8469
|
_proto.detectPlayerSize = function detectPlayerSize() {
|
8464
8470
|
if (this.media) {
|
@@ -12603,7 +12609,6 @@
|
|
12603
12609
|
this.initPTS = [];
|
12604
12610
|
};
|
12605
12611
|
_proto.onHandlerDestroying = function onHandlerDestroying() {
|
12606
|
-
this.hls.off(Events.MANIFEST_LOADED, this.onManifestLoaded, this);
|
12607
12612
|
this.stopLoad();
|
12608
12613
|
_TaskLoop.prototype.onHandlerDestroying.call(this);
|
12609
12614
|
// @ts-ignore
|
@@ -12779,7 +12784,9 @@
|
|
12779
12784
|
throw new Error('init load aborted, missing levels');
|
12780
12785
|
}
|
12781
12786
|
var stats = data.frag.stats;
|
12782
|
-
this.state
|
12787
|
+
if (this.state !== State.STOPPED) {
|
12788
|
+
this.state = State.IDLE;
|
12789
|
+
}
|
12783
12790
|
data.frag.data = new Uint8Array(data.payload);
|
12784
12791
|
stats.parsing.start = stats.buffering.start = self.performance.now();
|
12785
12792
|
stats.parsing.end = stats.buffering.end = self.performance.now();
|
@@ -21459,7 +21466,7 @@
|
|
21459
21466
|
* Get the video-dev/hls.js package version.
|
21460
21467
|
*/
|
21461
21468
|
function get() {
|
21462
|
-
return "1.5.8-0.canary.
|
21469
|
+
return "1.5.8-0.canary.10049";
|
21463
21470
|
}
|
21464
21471
|
}, {
|
21465
21472
|
key: "Events",
|