hls.js 1.5.13-0.canary.10404 → 1.5.13-0.canary.10408
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-demo.js +11 -0
- package/dist/hls-demo.js.map +1 -1
- package/dist/hls.js +15 -7
- package/dist/hls.js.d.ts +5 -1
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +15 -7
- 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/package.json +3 -3
- package/src/hls.ts +11 -4
package/dist/hls.mjs
CHANGED
@@ -420,7 +420,7 @@ function enableLogs(debugConfig, context, id) {
|
|
420
420
|
// Some browsers don't allow to use bind on console object anyway
|
421
421
|
// fallback to default if needed
|
422
422
|
try {
|
423
|
-
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.13-0.canary.
|
423
|
+
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.13-0.canary.10408"}`);
|
424
424
|
} catch (e) {
|
425
425
|
/* log fn threw an exception. All logger methods are no-ops. */
|
426
426
|
return createLogger();
|
@@ -29285,7 +29285,7 @@ class Hls {
|
|
29285
29285
|
* Get the video-dev/hls.js package version.
|
29286
29286
|
*/
|
29287
29287
|
static get version() {
|
29288
|
-
return "1.5.13-0.canary.
|
29288
|
+
return "1.5.13-0.canary.10408";
|
29289
29289
|
}
|
29290
29290
|
|
29291
29291
|
/**
|
@@ -29368,7 +29368,7 @@ class Hls {
|
|
29368
29368
|
this.emeController = void 0;
|
29369
29369
|
this.cmcdController = void 0;
|
29370
29370
|
this._media = null;
|
29371
|
-
this.
|
29371
|
+
this._url = null;
|
29372
29372
|
this.triggeringException = void 0;
|
29373
29373
|
const logger = this.logger = enableLogs(userConfig.debug || false, 'Hls instance');
|
29374
29374
|
const config = this.config = mergeConfig(Hls.DefaultConfig, userConfig, logger);
|
@@ -29504,7 +29504,7 @@ class Hls {
|
|
29504
29504
|
this.detachMedia();
|
29505
29505
|
this.removeAllListeners();
|
29506
29506
|
this._autoLevelCapping = -1;
|
29507
|
-
this.
|
29507
|
+
this._url = null;
|
29508
29508
|
this.networkControllers.forEach(component => component.destroy());
|
29509
29509
|
this.networkControllers.length = 0;
|
29510
29510
|
this.coreComponents.forEach(component => component.destroy());
|
@@ -29542,8 +29542,8 @@ class Hls {
|
|
29542
29542
|
loadSource(url) {
|
29543
29543
|
this.stopLoad();
|
29544
29544
|
const media = this.media;
|
29545
|
-
const loadedSource = this.
|
29546
|
-
const loadingSource = this.
|
29545
|
+
const loadedSource = this._url;
|
29546
|
+
const loadingSource = this._url = urlToolkitExports.buildAbsoluteURL(self.location.href, url, {
|
29547
29547
|
alwaysNormalize: true
|
29548
29548
|
});
|
29549
29549
|
this._autoLevelCapping = -1;
|
@@ -29559,6 +29559,13 @@ class Hls {
|
|
29559
29559
|
});
|
29560
29560
|
}
|
29561
29561
|
|
29562
|
+
/**
|
29563
|
+
* Gets the currently loaded URL
|
29564
|
+
*/
|
29565
|
+
get url() {
|
29566
|
+
return this._url;
|
29567
|
+
}
|
29568
|
+
|
29562
29569
|
/**
|
29563
29570
|
* Start loading data from the stream source.
|
29564
29571
|
* Depending on default config, client starts loading automatically when a source is set.
|