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.light.js
CHANGED
@@ -493,7 +493,7 @@
|
|
493
493
|
// Some browsers don't allow to use bind on console object anyway
|
494
494
|
// fallback to default if needed
|
495
495
|
try {
|
496
|
-
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.13-0.canary.
|
496
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.13-0.canary.10408");
|
497
497
|
} catch (e) {
|
498
498
|
/* log fn threw an exception. All logger methods are no-ops. */
|
499
499
|
return createLogger();
|
@@ -21164,7 +21164,7 @@
|
|
21164
21164
|
this.emeController = void 0;
|
21165
21165
|
this.cmcdController = void 0;
|
21166
21166
|
this._media = null;
|
21167
|
-
this.
|
21167
|
+
this._url = null;
|
21168
21168
|
this.triggeringException = void 0;
|
21169
21169
|
var logger = this.logger = enableLogs(userConfig.debug || false, 'Hls instance');
|
21170
21170
|
var config = this.config = mergeConfig(Hls.DefaultConfig, userConfig, logger);
|
@@ -21329,7 +21329,7 @@
|
|
21329
21329
|
this.detachMedia();
|
21330
21330
|
this.removeAllListeners();
|
21331
21331
|
this._autoLevelCapping = -1;
|
21332
|
-
this.
|
21332
|
+
this._url = null;
|
21333
21333
|
this.networkControllers.forEach(function (component) {
|
21334
21334
|
return component.destroy();
|
21335
21335
|
});
|
@@ -21371,8 +21371,8 @@
|
|
21371
21371
|
_proto.loadSource = function loadSource(url) {
|
21372
21372
|
this.stopLoad();
|
21373
21373
|
var media = this.media;
|
21374
|
-
var loadedSource = this.
|
21375
|
-
var loadingSource = this.
|
21374
|
+
var loadedSource = this._url;
|
21375
|
+
var loadingSource = this._url = urlToolkitExports.buildAbsoluteURL(self.location.href, url, {
|
21376
21376
|
alwaysNormalize: true
|
21377
21377
|
});
|
21378
21378
|
this._autoLevelCapping = -1;
|
@@ -21388,13 +21388,16 @@
|
|
21388
21388
|
});
|
21389
21389
|
}
|
21390
21390
|
|
21391
|
+
/**
|
21392
|
+
* Gets the currently loaded URL
|
21393
|
+
*/;
|
21391
21394
|
/**
|
21392
21395
|
* Start loading data from the stream source.
|
21393
21396
|
* Depending on default config, client starts loading automatically when a source is set.
|
21394
21397
|
*
|
21395
21398
|
* @param startPosition - Set the start position to stream from.
|
21396
21399
|
* Defaults to -1 (None: starts from earliest point)
|
21397
|
-
|
21400
|
+
*/
|
21398
21401
|
_proto.startLoad = function startLoad(startPosition) {
|
21399
21402
|
if (startPosition === void 0) {
|
21400
21403
|
startPosition = -1;
|
@@ -21488,6 +21491,11 @@
|
|
21488
21491
|
* Get the complete list of audio tracks across all media groups
|
21489
21492
|
*/;
|
21490
21493
|
return _createClass(Hls, [{
|
21494
|
+
key: "url",
|
21495
|
+
get: function get() {
|
21496
|
+
return this._url;
|
21497
|
+
}
|
21498
|
+
}, {
|
21491
21499
|
key: "levels",
|
21492
21500
|
get: function get() {
|
21493
21501
|
var levels = this.levelController.levels;
|
@@ -22009,7 +22017,7 @@
|
|
22009
22017
|
* Get the video-dev/hls.js package version.
|
22010
22018
|
*/
|
22011
22019
|
function get() {
|
22012
|
-
return "1.5.13-0.canary.
|
22020
|
+
return "1.5.13-0.canary.10408";
|
22013
22021
|
}
|
22014
22022
|
}, {
|
22015
22023
|
key: "Events",
|