hls.js 1.6.1-0.canary.11101 → 1.6.1-0.canary.11104
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 +8 -11
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +8 -11
- 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 +8 -11
- 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 +8 -11
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/package.json +2 -2
- package/src/controller/buffer-controller.ts +12 -10
package/dist/hls.light.js
CHANGED
@@ -1165,7 +1165,7 @@
|
|
1165
1165
|
// Some browsers don't allow to use bind on console object anyway
|
1166
1166
|
// fallback to default if needed
|
1167
1167
|
try {
|
1168
|
-
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.1-0.canary.
|
1168
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.1-0.canary.11104");
|
1169
1169
|
} catch (e) {
|
1170
1170
|
/* log fn threw an exception. All logger methods are no-ops. */
|
1171
1171
|
return createLogger();
|
@@ -5903,27 +5903,24 @@
|
|
5903
5903
|
err: error,
|
5904
5904
|
fatal: false
|
5905
5905
|
};
|
5906
|
+
var mediaError = (_this12$media = _this12.media) == null ? void 0 : _this12$media.error;
|
5906
5907
|
if (error.code === DOMException.QUOTA_EXCEEDED_ERR) {
|
5907
5908
|
// QuotaExceededError: http://www.w3.org/TR/html5/infrastructure.html#quotaexceedederror
|
5908
5909
|
// let's stop appending any segments, and report BUFFER_FULL_ERROR error
|
5909
5910
|
event.details = ErrorDetails.BUFFER_FULL_ERROR;
|
5910
|
-
} else if (error.code === DOMException.INVALID_STATE_ERR && _this12.mediaSourceOpenOrEnded && !
|
5911
|
+
} else if (error.code === DOMException.INVALID_STATE_ERR && _this12.mediaSourceOpenOrEnded && !mediaError) {
|
5911
5912
|
// Allow retry for "Failed to execute 'appendBuffer' on 'SourceBuffer': This SourceBuffer is still processing" errors
|
5912
5913
|
event.errorAction = createDoNothingErrorAction(true);
|
5913
|
-
} else if (error.name === TRACK_REMOVED_ERROR_NAME) {
|
5914
|
+
} else if (error.name === TRACK_REMOVED_ERROR_NAME && _this12.sourceBufferCount === 0) {
|
5914
5915
|
// Do nothing if sourceBuffers were removed (media is detached and append was not aborted)
|
5915
|
-
|
5916
|
-
event.errorAction = createDoNothingErrorAction(true);
|
5917
|
-
} else {
|
5918
|
-
++_this12.appendErrors[type];
|
5919
|
-
}
|
5916
|
+
event.errorAction = createDoNothingErrorAction(true);
|
5920
5917
|
} else {
|
5921
5918
|
var appendErrorCount = ++_this12.appendErrors[type];
|
5922
5919
|
/* with UHD content, we could get loop of quota exceeded error until
|
5923
5920
|
browser is able to evict some data from sourcebuffer. Retrying can help recover.
|
5924
5921
|
*/
|
5925
|
-
_this12.warn("Failed " + appendErrorCount + "/" + _this12.hls.config.appendErrorMaxRetry + " times to append segment in \"" + type + "\" sourceBuffer");
|
5926
|
-
if (appendErrorCount >= _this12.hls.config.appendErrorMaxRetry) {
|
5922
|
+
_this12.warn("Failed " + appendErrorCount + "/" + _this12.hls.config.appendErrorMaxRetry + " times to append segment in \"" + type + "\" sourceBuffer (" + (mediaError ? mediaError : 'no media error') + ")");
|
5923
|
+
if (appendErrorCount >= _this12.hls.config.appendErrorMaxRetry || !!mediaError) {
|
5927
5924
|
event.fatal = true;
|
5928
5925
|
}
|
5929
5926
|
}
|
@@ -20417,7 +20414,7 @@
|
|
20417
20414
|
return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
|
20418
20415
|
}
|
20419
20416
|
|
20420
|
-
var version = "1.6.1-0.canary.
|
20417
|
+
var version = "1.6.1-0.canary.11104";
|
20421
20418
|
|
20422
20419
|
// ensure the worker ends up in the bundle
|
20423
20420
|
// If the worker should not be included this gets aliased to empty.js
|