hls.js 1.5.8-0.canary.10046 → 1.5.8-0.canary.10052
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/README.md +2 -2
- 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/README.md
CHANGED
@@ -303,11 +303,11 @@ HLS.js is supported on:
|
|
303
303
|
- Edge for Windows 10+
|
304
304
|
- Safari 9+ for macOS 10.11+
|
305
305
|
- Safari for iPadOS 13+
|
306
|
-
- Safari for iOS 17.1+
|
306
|
+
- Safari for iOS 17.1+ since HLS version [1.5.0](https://github.com/video-dev/hls.js/releases/tag/v1.5.0) using Managed Media Source (MMS) [WebKit blog](https://webkit.org/blog/14735/webkit-features-in-safari-17-1/)
|
307
307
|
|
308
308
|
A [Promise polyfill](https://github.com/taylorhakes/promise-polyfill) is required in browsers missing native promise support.
|
309
309
|
|
310
|
-
**Please note:**
|
310
|
+
**Please note:**
|
311
311
|
|
312
312
|
Safari browsers (iOS, iPadOS, and macOS) have built-in HLS support through the plain video "tag" source URL. See the example below (Using HLS.js) to run appropriate feature detection and choose between using HLS.js or natively built-in HLS support.
|
313
313
|
|
package/dist/hls.js
CHANGED
@@ -644,14 +644,19 @@
|
|
644
644
|
// Some browsers don't allow to use bind on console object anyway
|
645
645
|
// fallback to default if needed
|
646
646
|
try {
|
647
|
-
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.8-0.canary.
|
647
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.8-0.canary.10052");
|
648
648
|
} catch (e) {
|
649
649
|
/* log fn threw an exception. All logger methods are no-ops. */
|
650
650
|
return createLogger();
|
651
651
|
}
|
652
|
+
// global exported logger uses the same functions as new logger without `id`
|
653
|
+
keys.forEach(function (key) {
|
654
|
+
exportedLogger[key] = getLoggerFn(key, debugConfig);
|
655
|
+
});
|
656
|
+
} else {
|
657
|
+
// Reset global exported logger
|
658
|
+
_extends(exportedLogger, newLogger);
|
652
659
|
}
|
653
|
-
// global exported logger uses the log methods from last call to `enableLogs`
|
654
|
-
_extends(exportedLogger, newLogger);
|
655
660
|
return newLogger;
|
656
661
|
}
|
657
662
|
var logger = exportedLogger;
|
@@ -9736,7 +9741,6 @@
|
|
9736
9741
|
this.initPTS = [];
|
9737
9742
|
};
|
9738
9743
|
_proto.onHandlerDestroying = function onHandlerDestroying() {
|
9739
|
-
this.hls.off(Events.MANIFEST_LOADED, this.onManifestLoaded, this);
|
9740
9744
|
this.stopLoad();
|
9741
9745
|
_TaskLoop.prototype.onHandlerDestroying.call(this);
|
9742
9746
|
// @ts-ignore
|
@@ -9912,7 +9916,9 @@
|
|
9912
9916
|
throw new Error('init load aborted, missing levels');
|
9913
9917
|
}
|
9914
9918
|
var stats = data.frag.stats;
|
9915
|
-
this.state
|
9919
|
+
if (this.state !== State.STOPPED) {
|
9920
|
+
this.state = State.IDLE;
|
9921
|
+
}
|
9916
9922
|
data.frag.data = new Uint8Array(data.payload);
|
9917
9923
|
stats.parsing.start = stats.buffering.start = self.performance.now();
|
9918
9924
|
stats.parsing.end = stats.buffering.end = self.performance.now();
|
@@ -23229,6 +23235,7 @@
|
|
23229
23235
|
};
|
23230
23236
|
_proto.onMediaDetaching = function onMediaDetaching() {
|
23231
23237
|
this.stopCapping();
|
23238
|
+
this.media = null;
|
23232
23239
|
};
|
23233
23240
|
_proto.detectPlayerSize = function detectPlayerSize() {
|
23234
23241
|
if (this.media) {
|
@@ -30213,7 +30220,7 @@
|
|
30213
30220
|
* Get the video-dev/hls.js package version.
|
30214
30221
|
*/
|
30215
30222
|
function get() {
|
30216
|
-
return "1.5.8-0.canary.
|
30223
|
+
return "1.5.8-0.canary.10052";
|
30217
30224
|
}
|
30218
30225
|
}, {
|
30219
30226
|
key: "Events",
|