error
The player has encountered a fatal error and cannot recover from it. This will result in an error message being displayed to the viewer. This error message can be tuned through player labels
warning
The player has encountered a non-fatal error. Either it could recover from the error or this warning may not interfere with playback (but may make some features unavailable)
errorData
getter (ErrorData)
const errorData = rmp.errorData;
This getter returns an ErrorData Object
representing the error that was just emitted
by the player. This ErrorData Object
will have the following properties:
{ code: Number, // the error number message: String, // the error message event: (Object|null), // the native DOM error or library-specific event if available }
warningData
getter (WarningData)
const warningData = rmp.warningData;
This getter returns an WarningData Object
representing the warning (non-fatal error) that was
just emitted by the player. This WarningData Object
will have the following properties:
{ code: Number, // the warning number message: String, // the warning message event: (Object|null), // the native DOM warning or library-specific event if available }
errorOnlyShowCustomText: Boolean
By default, when a fatal error is detected the player will display the following data: error code, error
details and custom error message (as read in hint.error.customErrorMessage
label). Setting
errorOnlyShowCustomText
to true will hide error code, error details to only show custom error
message. Default: false.
error
For values obtained through the errorData
getter:
100
: error on HTML5 media element104
: invalid license key105
: cannot find player container element on page106
: cannot find player container PARENT on page107
: no playback support200
: failed to load required library hls.js201
: hls.js fatal error - general error202
: Google IMA DAI backup stream not provided203
: hls.js fatal error - manifest parsing error204
: hls.js fatal error - network error205
: hls.js fatal error - incompatible codecs error206
: hls.js fatal error - decoding media error300
: failed to load required library Shaka player301
: Shaka player fatal error302
: cannot use Shaka player in this environment303
: Shaka player fatal error - error from the network stack304
: Shaka player fatal error - error from parsing text streams305
: Shaka player fatal error - error parsing or processing audio or video streams306
: Shaka player fatal error - error parsing the manifest307
: Shaka player fatal error - error related to streaming308
: Shaka player fatal error - errors related to DRM309
: Shaka player fatal error - error in the database storage (offline)500
: failed to load required library three.js (360 video)600
: FairPlay failed to retrieve the server certificate601
: FairPlay key system not supported602
: FairPlay could not create MediaKeys603
: FairPlay could not create key session604
: FairPlay license request failed700
: failed at loading playlistLoc URI701
: failed at parsing JSON playlist702
: failed at parsing JSON playlist - no playlist property703
: empty playlist - exit704
: cannot append playlist layout - missing rmp-playlist-container container705
: failed at setPlaylistData - invalid input706
: failed at setPlaylistData - internal error707
: failed at setPlaylistLoc - invalid input708
: failed at setPlaylistLoc - internal error709
: failed at setPlaylistItem - error while trying to load and play new item710
: failed at loading relatedLoc URI711
: failed at parsing JSON related712
: failed at parsing JSON related - no playlist property713
: empty related list - exit714
: failed at setRelatedData - invalid input715
: failed at setRelatedData - internal error716
: failed at setRelatedLoc - invalid input717
: failed at setRelatedLoc - internal error718
: failed at setRelatedItem - error while trying to load and play new item800
: cannot append transcript layout - wrong HTML layout801
: cannot get transcript VTT file from server802
: 'not a valid WebVTT file - errorwarning
For values obtained through the warningData
getter:
1000
: failed to load logo at provided URI1001
: failed to load poster at provided URI1002
: failed to load animated poster at provided URI1003
: invalid input for this API call1004
: player not ready - cannot execute API call1005
: autoplay requested but player failed at playing content1006
: init method already called for this player instance - exit1009
: failed to enter picture to picture mode1010
: warning on HTML5 media element1011
: videoPlayPromise on content has failed - error message follows1012
: not ready - cannot initiate playback - exit1013
: destroy method currently running - wait for destroycompleted event1014
: internal - call to play() API Promise has rejected - error message follows1015
: internal - call to stop() API Promise has rejected - error message follows1016
: internal - call to seekTo() API Promise has rejected - error message follows1017
: internal - call to setFullscreen() API Promise has rejected - error message follows
1018
: internal - call to dvrSeekTo() API Promise has rejected - error message follows1019
: internal - internal - call to syncToLiveEdge() API Promise has rejected - error message
follows1020
: internal - call to loadAds() API Promise has rejected - error message follows1021
: internal - call to stopAds() API Promise has rejected - error message follows1022
: internal - call to destroy() API Promise has rejected - error message follows1023
: internal - call to setPlaylistItem() API Promise has rejected - error message follows
1024
: internal - call to setRelatedItem() API Promise has rejected - error message follows
1025
: internal - call to setSrc() API Promise has rejected - error message follows1026
: cannot use setPlayerSize when player is in fullscreen - exit1027
: cannot use setPlayerSize with autoHeightMode or iframeMode settings - exit1028
: failed at locking orientation to landscape1031
: cannot use seekTo with a live stream - exit1032
: cannot use seekTo while a linear ad is playing - exit1033
: to seek into a DVR stream use dvrSeekTo method - exit1034
: seekTo error trying to set currentTime on HTML5 media element1035
: dvrSeekTo requires a DVR stream - exit1036
: cannot use dvrSeekTo while a linear ad is playing - exit1037
: cannot use syncToLiveEdge while a linear ad is on stage - exit1038
: cannot use dvrSeekTo - invalid content duration - exit1040
: cannot use seekToFrame - content is not on-demand - exit1041
: cannot use seekToFrame - invalid currentTime or duration - exit1050
: cannot use quality setter while a linear ad is playing2000
: hls.js warning3000
: Shaka player warning3001
: storage has not been initialized3002
: could not download offline content3003
: could not list offline downloaded content3004
: could not remove offline downloaded content3005
: could not load offline content - invalid input3006
: could not query temporary storage usage and availability3007
: offline storage is not supported in this environment3008
: could not abort download of offline content3009
: could not get Shaka Player thumbnails - no thumbnail will be displayed4000
: failed to load vtt.js4001
: vtt.js parsing error4002
: failed to load text track4003
: all text tracks could not be loaded - only those available will be presented to the
viewer6000
: FairPlay decryption key error was encountered6001
: FairPlay video playback error occured7000
: playlistCallback failed7001
: cannot call setPlaylistItem - no initial playlist input7010
: relatedCallback failed7011
: cannot call setRelatedItem - no initial related input8000
: failed to load VTT thumbnail file8001
: failed to load sprite image8002
: not a valid VTT thumbnail file - no further action taken8003
: could not parse thumbnails VTT file - corrupted data found9000
: error parsing JSON for custom icons9001
: error loading JSON for custom icons10000
: failed to load optional library rmp-vast - no ad will be shown10001
: failed to load optional library Google IMA SDK - no ad will be shown10003
: getAdBlock requested but ads setting is false and this is not a AWS Media Tailor
stream10004
: VAST parser does not exist yet - exit10005
: Ad API call cannot be executed - ads setting is set to false10012
: cannot use loadAds with Google IMA DAI stream10013
: cannot use loadAds while Google Cast is engaged10014
: Google Ima Display Container is not initialized - cannot use loadAds10015
: rmp-vast is not initialized - cannot use loadAds10016
: loadAds failed at loading and playing ad - query adErrorMessage, adVastErrorCode,
adErrorType, adErrorCode getters for more information10017
: stopAds called but no ad is on stage10018
: skipAd called but no ad is on stage10019
: Ad is not in a skippable state12000
: setSrc currently running - wait for srcchanged event12001
: no playback support -> cannot use setSrc - exit12002
: setSrc called but player is not ready - exit12003
: cannot use setSrc for FairPlay streaming, outstream ads - exit12004
: failed at changing player source13000
: Google tag is not installed on this page, cannot send data to Google Analytics14000
: floating feature requires an anchor element, disabling floating15000
: failed at loading chapters WEBVTT file15001
: not a valid WEBVTT file for chapters - exit16000
: failed to load cast_sender.js dependency16001
: castSession.loadMedia failed on receiving device16002
: failed at selecting receiver device16003
: failed at initializing Google Cast Cordova16004
: cast media is loading - prevented play on local player17000
: error entering fullscreen mode17001
: error exiting fullscreen mode17002
: already in fullscreen mode17003
: already in window mode (out of fullscreen mode)<script src="https://cdn.radiantmediatechs.com/rmp/10.1.4/js/rmp.min.js"></script> <div id="rmp"></div> <script> const src = { hls: 'https://your-hls-url.m3u8' }; const settings = { licenseKey: 'your-license-key', src, width: 640, height: 360, contentMetadata: { poster: [ 'https://your-poster-url.jpg' ] } }; const elementID = 'rmp'; const rmp = new RadiantMP(elementID); // Listening for error events rmp.on('error', () => { console.log('fatal error detected'); console.log(rmp.errorData); }); // Listening for warning events rmp.on('warning', () => { console.log('non-fatal error detected'); console.log(rmp.warningData); }); // Player initialisation async function initRmpPlayer() { try { await rmp.init(settings); } catch (error) { console.error('Radiant Media Player failed to initialize', error); } } initRmpPlayer(); </script>
hls.js and Shaka player offer advanced error data that are also exposed by the player.
The list of errors provided by hls.js in its API can be found here. Here is an example of how to extract those errors information in Radiant Media Player:
rmp.on('error', () => { const errorData = rmp.errorData; if (errorData.code === 201) { const data = errorData.event; if (data) { console.log(data.type); console.log(data.fatal); console.log(data.details); // Other properties from the data Object may be available - see hls.js docs } } });
In the same way we can listen for hls.js warning
rmp.on('warning', () => { const warningData = rmp.warningData; if (warningData.code === 2000) { const data = warningData.event; if (data) { console.log(data.type); console.log(data.fatal); console.log(data.details); // Other properties from the data Object may be available - see hls.js docs } } });
The list of errors provided by Shaka player in its API can be found here. Here is an example of how to extract those errors information in Radiant Media Player:
rmp.on('error', () => { const errorData = rmp.errorData; if (errorData.code === 301) { const data = errorData.event; if (data) { console.log(data.category); console.log(data.code); console.log(data.message); // Other properties from the data Object may be available - see Shaka player docs } } });
In the same way we can listen for hls.js warning
rmp.on('warning', () => { const warningData = rmp.warningData; if (warningData.code === 3000) { const data = warningData.event; if (data) { console.log(data.category); console.log(data.code); console.log(data.message); } } });
Due to the unique nature of video ads error handling, ad error management is dealt with for each VAST parser offered by the player:
©2015-2025 Radiant Media Player. All Rights Reserved. ✝