hls.js 1.6.0-beta.3.0.canary.10974 → 1.6.0-beta.3.0.canary.10978
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 +53 -53
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +17 -17
- 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 +17 -17
- 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 +47 -47
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/dist/hls.worker.js.map +1 -1
- package/package.json +2 -2
package/dist/hls.js
CHANGED
@@ -1059,7 +1059,7 @@
|
|
1059
1059
|
// Some browsers don't allow to use bind on console object anyway
|
1060
1060
|
// fallback to default if needed
|
1061
1061
|
try {
|
1062
|
-
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.3.0.canary.
|
1062
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.3.0.canary.10978");
|
1063
1063
|
} catch (e) {
|
1064
1064
|
/* log fn threw an exception. All logger methods are no-ops. */
|
1065
1065
|
return createLogger();
|
@@ -10737,57 +10737,6 @@
|
|
10737
10737
|
};
|
10738
10738
|
}
|
10739
10739
|
|
10740
|
-
function toUint8(data, offset, length) {
|
10741
|
-
if (offset === void 0) {
|
10742
|
-
offset = 0;
|
10743
|
-
}
|
10744
|
-
if (length === void 0) {
|
10745
|
-
length = Infinity;
|
10746
|
-
}
|
10747
|
-
return view(data, offset, length, Uint8Array);
|
10748
|
-
}
|
10749
|
-
function view(data, offset, length, Type) {
|
10750
|
-
var buffer = unsafeGetArrayBuffer(data);
|
10751
|
-
var bytesPerElement = 1;
|
10752
|
-
if ('BYTES_PER_ELEMENT' in Type) {
|
10753
|
-
bytesPerElement = Type.BYTES_PER_ELEMENT;
|
10754
|
-
}
|
10755
|
-
// Absolute end of the |data| view within |buffer|.
|
10756
|
-
var dataOffset = isArrayBufferView(data) ? data.byteOffset : 0;
|
10757
|
-
var dataEnd = (dataOffset + data.byteLength) / bytesPerElement;
|
10758
|
-
// Absolute start of the result within |buffer|.
|
10759
|
-
var rawStart = (dataOffset + offset) / bytesPerElement;
|
10760
|
-
var start = Math.floor(Math.max(0, Math.min(rawStart, dataEnd)));
|
10761
|
-
// Absolute end of the result within |buffer|.
|
10762
|
-
var end = Math.floor(Math.min(start + Math.max(length, 0), dataEnd));
|
10763
|
-
return new Type(buffer, start, end - start);
|
10764
|
-
}
|
10765
|
-
function unsafeGetArrayBuffer(view) {
|
10766
|
-
if (view instanceof ArrayBuffer) {
|
10767
|
-
return view;
|
10768
|
-
} else {
|
10769
|
-
return view.buffer;
|
10770
|
-
}
|
10771
|
-
}
|
10772
|
-
function isArrayBufferView(obj) {
|
10773
|
-
return obj && obj.buffer instanceof ArrayBuffer && obj.byteLength !== undefined && obj.byteOffset !== undefined;
|
10774
|
-
}
|
10775
|
-
|
10776
|
-
function toArrayBuffer(view) {
|
10777
|
-
if (view instanceof ArrayBuffer) {
|
10778
|
-
return view;
|
10779
|
-
} else {
|
10780
|
-
if (view.byteOffset == 0 && view.byteLength == view.buffer.byteLength) {
|
10781
|
-
// This is a TypedArray over the whole buffer.
|
10782
|
-
return view.buffer;
|
10783
|
-
}
|
10784
|
-
// This is a 'view' on the buffer. Create a new buffer that only contains
|
10785
|
-
// the data. Note that since this isn't an ArrayBuffer, the 'new' call
|
10786
|
-
// will allocate a new buffer to hold the copy.
|
10787
|
-
return new Uint8Array(view).buffer;
|
10788
|
-
}
|
10789
|
-
}
|
10790
|
-
|
10791
10740
|
/**
|
10792
10741
|
* Encodes binary data to base64
|
10793
10742
|
*
|
@@ -10862,6 +10811,57 @@
|
|
10862
10811
|
return toPath.join('/');
|
10863
10812
|
}
|
10864
10813
|
|
10814
|
+
function toArrayBuffer(view) {
|
10815
|
+
if (view instanceof ArrayBuffer) {
|
10816
|
+
return view;
|
10817
|
+
} else {
|
10818
|
+
if (view.byteOffset == 0 && view.byteLength == view.buffer.byteLength) {
|
10819
|
+
// This is a TypedArray over the whole buffer.
|
10820
|
+
return view.buffer;
|
10821
|
+
}
|
10822
|
+
// This is a 'view' on the buffer. Create a new buffer that only contains
|
10823
|
+
// the data. Note that since this isn't an ArrayBuffer, the 'new' call
|
10824
|
+
// will allocate a new buffer to hold the copy.
|
10825
|
+
return new Uint8Array(view).buffer;
|
10826
|
+
}
|
10827
|
+
}
|
10828
|
+
|
10829
|
+
function toUint8(data, offset, length) {
|
10830
|
+
if (offset === void 0) {
|
10831
|
+
offset = 0;
|
10832
|
+
}
|
10833
|
+
if (length === void 0) {
|
10834
|
+
length = Infinity;
|
10835
|
+
}
|
10836
|
+
return view(data, offset, length, Uint8Array);
|
10837
|
+
}
|
10838
|
+
function view(data, offset, length, Type) {
|
10839
|
+
var buffer = unsafeGetArrayBuffer(data);
|
10840
|
+
var bytesPerElement = 1;
|
10841
|
+
if ('BYTES_PER_ELEMENT' in Type) {
|
10842
|
+
bytesPerElement = Type.BYTES_PER_ELEMENT;
|
10843
|
+
}
|
10844
|
+
// Absolute end of the |data| view within |buffer|.
|
10845
|
+
var dataOffset = isArrayBufferView(data) ? data.byteOffset : 0;
|
10846
|
+
var dataEnd = (dataOffset + data.byteLength) / bytesPerElement;
|
10847
|
+
// Absolute start of the result within |buffer|.
|
10848
|
+
var rawStart = (dataOffset + offset) / bytesPerElement;
|
10849
|
+
var start = Math.floor(Math.max(0, Math.min(rawStart, dataEnd)));
|
10850
|
+
// Absolute end of the result within |buffer|.
|
10851
|
+
var end = Math.floor(Math.min(start + Math.max(length, 0), dataEnd));
|
10852
|
+
return new Type(buffer, start, end - start);
|
10853
|
+
}
|
10854
|
+
function unsafeGetArrayBuffer(view) {
|
10855
|
+
if (view instanceof ArrayBuffer) {
|
10856
|
+
return view;
|
10857
|
+
} else {
|
10858
|
+
return view.buffer;
|
10859
|
+
}
|
10860
|
+
}
|
10861
|
+
function isArrayBufferView(obj) {
|
10862
|
+
return obj && obj.buffer instanceof ArrayBuffer && obj.byteLength !== undefined && obj.byteOffset !== undefined;
|
10863
|
+
}
|
10864
|
+
|
10865
10865
|
function decodeId3ImageFrame(frame) {
|
10866
10866
|
var metadataFrame = {
|
10867
10867
|
key: frame.type,
|
@@ -16358,7 +16358,7 @@
|
|
16358
16358
|
return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
|
16359
16359
|
}
|
16360
16360
|
|
16361
|
-
var version = "1.6.0-beta.3.0.canary.
|
16361
|
+
var version = "1.6.0-beta.3.0.canary.10978";
|
16362
16362
|
|
16363
16363
|
// ensure the worker ends up in the bundle
|
16364
16364
|
// If the worker should not be included this gets aliased to empty.js
|