hls.js 1.5.12-0.canary.10367 → 1.5.12-0.canary.10368
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 +12 -12
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +2 -2
- package/dist/hls.light.min.js +1 -1
- package/dist/hls.light.mjs +2 -2
- package/dist/hls.min.js +1 -1
- package/dist/hls.min.js.map +1 -1
- package/dist/hls.mjs +12 -12
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/package.json +1 -1
- package/src/utils/hash.ts +10 -0
- package/src/utils/webvtt-parser.ts +1 -11
- package/src/types/general.ts +0 -6
package/dist/hls.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.12-0.canary.
|
423
|
+
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.12-0.canary.10368"}`);
|
424
424
|
} catch (e) {
|
425
425
|
/* log fn threw an exception. All logger methods are no-ops. */
|
426
426
|
return createLogger();
|
@@ -22153,6 +22153,16 @@ class VTTParser {
|
|
22153
22153
|
}
|
22154
22154
|
}
|
22155
22155
|
|
22156
|
+
// From https://github.com/darkskyapp/string-hash
|
22157
|
+
function hash(text) {
|
22158
|
+
let hash = 5381;
|
22159
|
+
let i = text.length;
|
22160
|
+
while (i) {
|
22161
|
+
hash = hash * 33 ^ text.charCodeAt(--i);
|
22162
|
+
}
|
22163
|
+
return (hash >>> 0).toString();
|
22164
|
+
}
|
22165
|
+
|
22156
22166
|
const LINEBREAKS = /\r\n|\n\r|\n|\r/g;
|
22157
22167
|
|
22158
22168
|
// String.prototype.startsWith is not supported in IE11
|
@@ -22173,16 +22183,6 @@ const cueString2millis = function cueString2millis(timeString) {
|
|
22173
22183
|
return ts;
|
22174
22184
|
};
|
22175
22185
|
|
22176
|
-
// From https://github.com/darkskyapp/string-hash
|
22177
|
-
const hash = function hash(text) {
|
22178
|
-
let _hash = 5381;
|
22179
|
-
let i = text.length;
|
22180
|
-
while (i) {
|
22181
|
-
_hash = _hash * 33 ^ text.charCodeAt(--i);
|
22182
|
-
}
|
22183
|
-
return (_hash >>> 0).toString();
|
22184
|
-
};
|
22185
|
-
|
22186
22186
|
// Create a unique hash id for a cue based on start/end times and text.
|
22187
22187
|
// This helps timeline-controller to avoid showing repeated captions.
|
22188
22188
|
function generateCueId(startTime, endTime, text) {
|
@@ -29272,7 +29272,7 @@ class Hls {
|
|
29272
29272
|
* Get the video-dev/hls.js package version.
|
29273
29273
|
*/
|
29274
29274
|
static get version() {
|
29275
|
-
return "1.5.12-0.canary.
|
29275
|
+
return "1.5.12-0.canary.10368";
|
29276
29276
|
}
|
29277
29277
|
|
29278
29278
|
/**
|