hls.js 1.5.13-0.canary.10406 → 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 +1 -1
- package/src/hls.ts +11 -4
package/dist/hls.light.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();
|
@@ -20670,7 +20670,7 @@ class Hls {
|
|
20670
20670
|
* Get the video-dev/hls.js package version.
|
20671
20671
|
*/
|
20672
20672
|
static get version() {
|
20673
|
-
return "1.5.13-0.canary.
|
20673
|
+
return "1.5.13-0.canary.10408";
|
20674
20674
|
}
|
20675
20675
|
|
20676
20676
|
/**
|
@@ -20753,7 +20753,7 @@ class Hls {
|
|
20753
20753
|
this.emeController = void 0;
|
20754
20754
|
this.cmcdController = void 0;
|
20755
20755
|
this._media = null;
|
20756
|
-
this.
|
20756
|
+
this._url = null;
|
20757
20757
|
this.triggeringException = void 0;
|
20758
20758
|
const logger = this.logger = enableLogs(userConfig.debug || false, 'Hls instance');
|
20759
20759
|
const config = this.config = mergeConfig(Hls.DefaultConfig, userConfig, logger);
|
@@ -20889,7 +20889,7 @@ class Hls {
|
|
20889
20889
|
this.detachMedia();
|
20890
20890
|
this.removeAllListeners();
|
20891
20891
|
this._autoLevelCapping = -1;
|
20892
|
-
this.
|
20892
|
+
this._url = null;
|
20893
20893
|
this.networkControllers.forEach(component => component.destroy());
|
20894
20894
|
this.networkControllers.length = 0;
|
20895
20895
|
this.coreComponents.forEach(component => component.destroy());
|
@@ -20927,8 +20927,8 @@ class Hls {
|
|
20927
20927
|
loadSource(url) {
|
20928
20928
|
this.stopLoad();
|
20929
20929
|
const media = this.media;
|
20930
|
-
const loadedSource = this.
|
20931
|
-
const loadingSource = this.
|
20930
|
+
const loadedSource = this._url;
|
20931
|
+
const loadingSource = this._url = urlToolkitExports.buildAbsoluteURL(self.location.href, url, {
|
20932
20932
|
alwaysNormalize: true
|
20933
20933
|
});
|
20934
20934
|
this._autoLevelCapping = -1;
|
@@ -20944,6 +20944,13 @@ class Hls {
|
|
20944
20944
|
});
|
20945
20945
|
}
|
20946
20946
|
|
20947
|
+
/**
|
20948
|
+
* Gets the currently loaded URL
|
20949
|
+
*/
|
20950
|
+
get url() {
|
20951
|
+
return this._url;
|
20952
|
+
}
|
20953
|
+
|
20947
20954
|
/**
|
20948
20955
|
* Start loading data from the stream source.
|
20949
20956
|
* Depending on default config, client starts loading automatically when a source is set.
|