forked from video-dev/hls.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrors.js
34 lines (32 loc) · 1.81 KB
/
errors.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export var ErrorTypes = {
// Identifier for a network error (loading error / timeout ...)
NETWORK_ERROR : 'hlsNetworkError',
// Identifier for a media Error (video/parsing/mediasource error)
MEDIA_ERROR : 'hlsMediaError',
// Identifier for all other errors
OTHER_ERROR : 'hlsOtherError'
};
export var ErrorDetails = {
// Identifier for a manifest load error - data: { url : faulty URL, response : XHR response}
MANIFEST_LOAD_ERROR : 'manifestLoadError',
// Identifier for a manifest load timeout - data: { url : faulty URL, response : XHR response}
MANIFEST_LOAD_TIMEOUT : 'manifestLoadTimeOut',
// Identifier for a manifest parsing error - data: { url : faulty URL, reason : error reason}
MANIFEST_PARSING_ERROR : 'manifestParsingError',
// Identifier for playlist load error - data: { url : faulty URL, response : XHR response}
LEVEL_LOAD_ERROR : 'levelLoadError',
// Identifier for playlist load timeout - data: { url : faulty URL, response : XHR response}
LEVEL_LOAD_TIMEOUT : 'levelLoadTimeOut',
// Identifier for a level switch error - data: { level : faulty level Id, event : error description}
LEVEL_SWITCH_ERROR : 'levelSwitchError',
// Identifier for fragment load error - data: { frag : fragment object, response : XHR response}
FRAG_LOAD_ERROR : 'fragLoadError',
// Identifier for fragment loop loading error - data: { frag : fragment object}
FRAG_LOOP_LOADING_ERROR : 'fragLoopLoadingError',
// Identifier for fragment load timeout error - data: { frag : fragment object}
FRAG_LOAD_TIMEOUT : 'fragLoadTimeOut',
// Identifier for a fragment parsing error event - data: parsing error description
FRAG_PARSING_ERROR : 'fragParsingError',
// Identifier for a fragment appending error event - data: appending error description
FRAG_APPENDING_ERROR : 'fragAppendingError'
};