/** @group Enums */ declare enum ErrorCode { /***********************************************************/ /***********************************************************/ /** Error raised when playback data download failed. */ MediaDownloadingFailed = 1000, /** * Error raised when a DRM key could not be fetched successfully. * This is usually caused when offline licenses are loaded. */ DrmKeyDownloadingFailed = 1001, /** * Error raised when downloading playback data * and no network connectivity is available. */ ConnectivityLost = 1003, /** * Error raised when the player lost connectivity (ConnectivityLost), * once connectivity was re-gained. */ ConnectivityGained = 1004, /** Error raised when DNS lookup fails. */ DnsLookupFailed = 1006, /** Error raised when a network timeout occurs. */ TimeoutOccurred = 1007, /************************************************************************/ /************************************************************************/ /** Error raised when all text tracks are filtered out as unsupported. */ TextUnsupported = 2001, /** Error raised when the text track already initialized. */ TextTrackAlreadyLoaded = 2003, /*********************************************************************************/ /*********************************************************************************/ /** Error raised when the player reports a general playback error. */ MediaError = 3001, /** Error raised when the audio track can not be initialized. */ AudioTrackInitializationFailed = 3002, /** Error raised when the audio decoder can not be initialized. */ AudioDecoderInitializationFailed = 3003, /** Error raised when writing to the audio buffer fails. */ AudioWriteError = 3004, /** Error raised when the video decoder can not be initialized. */ VideoDecoderInitialization = 3005, /** Error raised when all audio tracks are filtered out as unsupported. */ AudioUnsupported = 3006, /** Error raised if all video tracks are filtered out as unsupported. */ VideoUnsupported = 3007, /** * Error raised when the applied filters were not able to find any viable * content that can be displayed on the current device. */ NoPlayableContent = 3008, /*********************************************************/ /*********************************************************/ /** Error raised when loading the stream manifest fails. */ ManifestLoadingFailed = 4001, /** Error raised when parsing the stream manifest fails. */ ManifestParsingFailed = 4002, /** * Error raised when the player found a semantic issue with a manifest. * This could be due to a change in between manifest updates deemed * as illegal by the corresponding specification. */ ManifestInvalid = 4003, /*********************************************************/ /*********************************************************/ /** * Error raised when the current playback position * is behind the live edge in a live stream. */ BehindLiveWindow = 5001, /** * Error raised when the player fails to load the stream, likely due to resource or initialization issues. */ StreamLoadingFailed = 5002, /***************************************************/ /***************************************************/ /** * Error raised when fetching a DRM license fails. * * Note that this error usually occurs during license acquisition and * before any decryption errors are reported by the decoder. */ DrmError = 6001, /** Error raised when device provisioning fails. */ DrmProvisioningFailed = 6002, /** * Error raised when an exception occurred while the player was * communicating with DRMToday to fetch a license. */ DrmTodayError = 6003, /** * Error raised when an error occurs while decrypting audio data. */ AudioDecryptionFailed = 6004, /** * Error raised when an error occurs while decrypting video data. */ VideoDecryptionFailed = 6005, /** Error raised when attempting to use a DRM system that is not supported by the device. */ DrmUnsupported = 6006, /** * Error raised when a secondary display is detected and the current * configuration does not permit playback on that display. */ SecondaryDisplayForbidden = 6007, /** * Error raised if a DRM key expires during playback. */ KeyExpired = 6008, /** * Error raised after the player sees changes in HDCP connectivity. */ HdcpConnectionWarning = 6009, /** * Error raised when concurrent stream limiting reaches maximum clients. */ CslLimitReached = 6010, /** * Error raised when there's a network error with the concurrent stream * limiting service. */ CslNetworkError = 6011, /******************************************************************/ /******************************************************************/ /** General player error. */ PlayerError = 7001, /** * Error raised when no plugin was found that can be used to create a renderer * to playback a given DRM and content combination. */ NoRendererFound = 7005, /** * Error raised when the player configuration is invalid. */ InvalidConfiguration = 7013, /** * Error raised when the player instance can't be found for the given ID */ PlayerNotFound = 7014, /** * Error raised when the request or response completer instance can't be found for the given ID */ CompleterNotFound = 7015, /** * Error raised when a player extension is not found */ PlayerExtensionNotFound = 7016, /** * Error raised when a player extension is already added */ PlayerExtensionAlreadyAdded = 7017, /****************************************************/ /****************************************************/ /*******************************************************/ /*******************************************************/ /** Error raised when the thumbnails content is invalid. */ ThumbnailsContentInvalid = 9001, /** Error raised when the thumbnails image is missing. */ ThumbnailsImageMissing = 9002, /** Error raised when the userID is mandatory and has not been provided. */ UserIdNotProvided = 9003, /** * AirPlay Plugin, range between 9020-9030. */ /** Error raised when the casting failed. */ AirPlayConnectingFailed = 9020, /*****************************************************/ /*****************************************************/ /** Error raised when a general error occurs at initializing or during an Ad. */ AdError = 10001, /** Error raised when trying to play Ads but the current Player setup doesn't support it. */ AdRequestUnsupported = 10002, /*********************************************************/ /*********************************************************/ /** Error raised when the file removal failed. */ StorageRemovingFailed = 11001, /** Error raised when reading from storage failed. */ StorageReadingFailed = 11002, /** Error raised when writing to storage failed. */ StorageWritingFailed = 11003, /*****************************************************/ /*****************************************************/ /** Error raised when the SDK could not be initialised successfully. */ SdkInitializationFailed = 12001, /** Error raised when the SDK was not initialized before calling a method. */ SdkNotInitialized = 12002, /** * Error raised when the Castlabs player license is invalid or expired. * Please contact support if you see this error unexpectedly. * Note that if this error occurs, playback is prevented and * the player will stop working. */ SdkInvalidLicence = 12003, /** * Error raised if a method is called that is not supported * on the current API level. */ PlatformApiMismatch = 12004, /*****************************************************************/ /*****************************************************************/ /** Error raised when the provided download ID is already in use. */ DownloadIdAlreadyInUse = 13001, /** Error raised when a download with the given ID cannot be found. */ DownloadNotFound = 13002, /** Error raised when the download failed. */ DownloadFailed = 13003 } export default ErrorCode;