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.js
CHANGED
@@ -522,7 +522,7 @@
|
|
522
522
|
// Some browsers don't allow to use bind on console object anyway
|
523
523
|
// fallback to default if needed
|
524
524
|
try {
|
525
|
-
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.13-0.canary.
|
525
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.13-0.canary.10408");
|
526
526
|
} catch (e) {
|
527
527
|
/* log fn threw an exception. All logger methods are no-ops. */
|
528
528
|
return createLogger();
|
@@ -29952,7 +29952,7 @@
|
|
29952
29952
|
this.emeController = void 0;
|
29953
29953
|
this.cmcdController = void 0;
|
29954
29954
|
this._media = null;
|
29955
|
-
this.
|
29955
|
+
this._url = null;
|
29956
29956
|
this.triggeringException = void 0;
|
29957
29957
|
var logger = this.logger = enableLogs(userConfig.debug || false, 'Hls instance');
|
29958
29958
|
var config = this.config = mergeConfig(Hls.DefaultConfig, userConfig, logger);
|
@@ -30117,7 +30117,7 @@
|
|
30117
30117
|
this.detachMedia();
|
30118
30118
|
this.removeAllListeners();
|
30119
30119
|
this._autoLevelCapping = -1;
|
30120
|
-
this.
|
30120
|
+
this._url = null;
|
30121
30121
|
this.networkControllers.forEach(function (component) {
|
30122
30122
|
return component.destroy();
|
30123
30123
|
});
|
@@ -30159,8 +30159,8 @@
|
|
30159
30159
|
_proto.loadSource = function loadSource(url) {
|
30160
30160
|
this.stopLoad();
|
30161
30161
|
var media = this.media;
|
30162
|
-
var loadedSource = this.
|
30163
|
-
var loadingSource = this.
|
30162
|
+
var loadedSource = this._url;
|
30163
|
+
var loadingSource = this._url = urlToolkitExports.buildAbsoluteURL(self.location.href, url, {
|
30164
30164
|
alwaysNormalize: true
|
30165
30165
|
});
|
30166
30166
|
this._autoLevelCapping = -1;
|
@@ -30176,13 +30176,16 @@
|
|
30176
30176
|
});
|
30177
30177
|
}
|
30178
30178
|
|
30179
|
+
/**
|
30180
|
+
* Gets the currently loaded URL
|
30181
|
+
*/;
|
30179
30182
|
/**
|
30180
30183
|
* Start loading data from the stream source.
|
30181
30184
|
* Depending on default config, client starts loading automatically when a source is set.
|
30182
30185
|
*
|
30183
30186
|
* @param startPosition - Set the start position to stream from.
|
30184
30187
|
* Defaults to -1 (None: starts from earliest point)
|
30185
|
-
|
30188
|
+
*/
|
30186
30189
|
_proto.startLoad = function startLoad(startPosition) {
|
30187
30190
|
if (startPosition === void 0) {
|
30188
30191
|
startPosition = -1;
|
@@ -30276,6 +30279,11 @@
|
|
30276
30279
|
* Get the complete list of audio tracks across all media groups
|
30277
30280
|
*/;
|
30278
30281
|
return _createClass(Hls, [{
|
30282
|
+
key: "url",
|
30283
|
+
get: function get() {
|
30284
|
+
return this._url;
|
30285
|
+
}
|
30286
|
+
}, {
|
30279
30287
|
key: "levels",
|
30280
30288
|
get: function get() {
|
30281
30289
|
var levels = this.levelController.levels;
|
@@ -30797,7 +30805,7 @@
|
|
30797
30805
|
* Get the video-dev/hls.js package version.
|
30798
30806
|
*/
|
30799
30807
|
function get() {
|
30800
|
-
return "1.5.13-0.canary.
|
30808
|
+
return "1.5.13-0.canary.10408";
|
30801
30809
|
}
|
30802
30810
|
}, {
|
30803
30811
|
key: "Events",
|
package/dist/hls.js.d.ts
CHANGED
@@ -1372,7 +1372,7 @@ declare class Hls implements HlsEventEmitter {
|
|
1372
1372
|
private emeController;
|
1373
1373
|
private cmcdController;
|
1374
1374
|
private _media;
|
1375
|
-
private
|
1375
|
+
private _url;
|
1376
1376
|
private triggeringException?;
|
1377
1377
|
/**
|
1378
1378
|
* Get the video-dev/hls.js package version.
|
@@ -1431,6 +1431,10 @@ declare class Hls implements HlsEventEmitter {
|
|
1431
1431
|
* Set the source URL. Can be relative or absolute.
|
1432
1432
|
*/
|
1433
1433
|
loadSource(url: string): void;
|
1434
|
+
/**
|
1435
|
+
* Gets the currently loaded URL
|
1436
|
+
*/
|
1437
|
+
get url(): string | null;
|
1434
1438
|
/**
|
1435
1439
|
* Start loading data from the stream source.
|
1436
1440
|
* Depending on default config, client starts loading automatically when a source is set.
|