hls.js 1.5.14-0.canary.10658 → 1.5.14-0.canary.10659
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.js +16 -15
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +16 -15
- 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 +15 -15
- 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 +14 -15
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/package.json +1 -1
- package/src/exports-named.ts +17 -9
- package/src/loader/fragment-loader.ts +13 -12
package/dist/hls.mjs
CHANGED
@@ -421,7 +421,7 @@ function enableLogs(debugConfig, context, id) {
|
|
421
421
|
// Some browsers don't allow to use bind on console object anyway
|
422
422
|
// fallback to default if needed
|
423
423
|
try {
|
424
|
-
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.14-0.canary.
|
424
|
+
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.14-0.canary.10659"}`);
|
425
425
|
} catch (e) {
|
426
426
|
/* log fn threw an exception. All logger methods are no-ops. */
|
427
427
|
return createLogger();
|
@@ -8922,7 +8922,7 @@ class FragmentLoader {
|
|
8922
8922
|
};
|
8923
8923
|
// Assign frag stats to the loader's stats reference
|
8924
8924
|
frag.stats = loader.stats;
|
8925
|
-
|
8925
|
+
const callbacks = {
|
8926
8926
|
onSuccess: (response, stats, context, networkDetails) => {
|
8927
8927
|
this.resetLoader(frag, loader);
|
8928
8928
|
let payload = response.data;
|
@@ -8976,18 +8976,17 @@ class FragmentLoader {
|
|
8976
8976
|
networkDetails,
|
8977
8977
|
stats
|
8978
8978
|
}));
|
8979
|
-
},
|
8980
|
-
onProgress: (stats, context, data, networkDetails) => {
|
8981
|
-
if (onProgress) {
|
8982
|
-
onProgress({
|
8983
|
-
frag,
|
8984
|
-
part: null,
|
8985
|
-
payload: data,
|
8986
|
-
networkDetails
|
8987
|
-
});
|
8988
|
-
}
|
8989
8979
|
}
|
8990
|
-
}
|
8980
|
+
};
|
8981
|
+
if (onProgress) {
|
8982
|
+
callbacks.onProgress = (stats, context, data, networkDetails) => onProgress({
|
8983
|
+
frag,
|
8984
|
+
part: null,
|
8985
|
+
payload: data,
|
8986
|
+
networkDetails
|
8987
|
+
});
|
8988
|
+
}
|
8989
|
+
loader.load(loaderContext, loaderConfig, callbacks);
|
8991
8990
|
});
|
8992
8991
|
}
|
8993
8992
|
loadPart(frag, part, onProgress) {
|
@@ -11092,7 +11091,7 @@ function concatUint8Arrays(chunks, dataLength) {
|
|
11092
11091
|
return result;
|
11093
11092
|
}
|
11094
11093
|
|
11095
|
-
const version = "1.5.14-0.canary.
|
11094
|
+
const version = "1.5.14-0.canary.10659";
|
11096
11095
|
|
11097
11096
|
// ensure the worker ends up in the bundle
|
11098
11097
|
// If the worker should not be included this gets aliased to empty.js
|
@@ -30251,5 +30250,5 @@ class Hls {
|
|
30251
30250
|
}
|
30252
30251
|
Hls.defaultConfig = void 0;
|
30253
30252
|
|
30254
|
-
export { AbrController, AttrList, AudioStreamController, AudioTrackController, BasePlaylistController, BaseSegment, BaseStreamController, BufferController, CMCDController, CapLevelController, ChunkMetadata, ContentSteeringController, DateRange, EMEController, ErrorActionFlags, ErrorController, ErrorDetails, ErrorTypes, Events, FPSController, Fragment, Hls, HlsSkip, HlsUrlParameters, KeySystemFormats, KeySystems, LevelDetails, LevelKey, LoadStats, MetadataSchema, NetworkErrorAction, Part, PlaylistLevelType, SubtitleStreamController, SubtitleTrackController, TimelineController, Hls as default, getMediaSource, isMSESupported, isSupported };
|
30253
|
+
export { AbrController, AttrList, AudioStreamController, AudioTrackController, BasePlaylistController, BaseSegment, BaseStreamController, BufferController, CMCDController, CapLevelController, ChunkMetadata, ContentSteeringController, Cues, DateRange, EMEController, ErrorActionFlags, ErrorController, ErrorDetails, ErrorTypes, Events, FPSController, FetchLoader, Fragment, Hls, HlsSkip, HlsUrlParameters, KeySystemFormats, KeySystems, Level, LevelDetails, LevelKey, LoadStats, MetadataSchema, NetworkErrorAction, Part, PlaylistLevelType, SubtitleStreamController, SubtitleTrackController, TimelineController, XhrLoader, Hls as default, fetchSupported, getMediaSource, isMSESupported, isSupported, requestMediaKeySystemAccess };
|
30255
30254
|
//# sourceMappingURL=hls.mjs.map
|