From 4dfea6193a7e53450e3c50903f7441582fdaffc2 Mon Sep 17 00:00:00 2001 From: Adam Waldron Date: Mon, 6 May 2024 09:36:05 -0700 Subject: [PATCH] feat: refactor error consts (#8719) * feat: refactor error consts * fix: add failed --- src/js/consts/errors.js | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/js/consts/errors.js b/src/js/consts/errors.js index a0ab2246d7..67e14c0f99 100644 --- a/src/js/consts/errors.js +++ b/src/js/consts/errors.js @@ -1,12 +1,16 @@ export default { - UnsupportedSidxContainer: 'unsupported-sidx-container-error', - DashManifestSidxParsingError: 'dash-manifest-sidx-parsing-error', - HlsPlaylistRequestError: 'hls-playlist-request-error', - SegmentUnsupportedMediaFormat: 'segment-unsupported-media-format-error', - UnsupportedMediaInitialization: 'unsupported-media-initialization-error', - SegmentSwitchError: 'segment-switch-error', - SegmentExceedsSourceBufferQuota: 'segment-exceeds-source-buffer-quota-error', - SegmentAppendError: 'segment-append-error', - VttLoadError: 'vtt-load-error', - VttCueParsingError: 'vtt-cue-parsing-error' + NetworkBadStatus: 'networkbadstatus', + NetworkRequestFailed: 'networkrequestfailed', + NetworkRequestAborted: 'networkrequestaborted', + NetworkRequestTimeout: 'networkrequesttimeout', + NetworkBodyParserFailed: 'networkbodyparserfailed', + StreamingHlsPlaylistParserError: 'streaminghlsplaylistparsererror', + StreamingDashManifestParserError: 'streamingdashmanifestparsererror', + StreamingContentSteeringParserError: 'streamingcontentsteeringparsererror', + StreamingVttParserError: 'streamingvttparsererror', + StreamingFailedToSelectNextSegment: 'streamingfailedtoselectnextsegment', + StreamingFailedToDecryptSegment: 'streamingfailedtodecryptsegment', + StreamingFailedToTransmuxSegment: 'streamingfailedtotransmuxsegment', + StreamingFailedToAppendSegment: 'streamingfailedtoappendsegment', + StreamingCodecsChangeError: 'streamingcodecschangeerror' };