# ErrorType Enumeration

    public enum ErrorType : Int, CaseIterable

Enumerates all possible error types that may occur within the SDK, including licensing, network, DRM, storage, playback, and other system-level errors.

Each case represents a specific category or scenario where an error might be thrown. These allow detailed handling and easy identification of operational issues.

- `sdk_license_invalid`

  The SDK license is invalid or has not been recognized.

  #### Declaration

  Swift

      case sdk_license_invalid = 0

- `sdk_license_bad_format`

  The SDK license format is malformed or unreadable.

  #### Declaration

  Swift

      case sdk_license_bad_format = 1

- `sdk_license_bad_payload`

  The SDK license payload is corrupted or incorrectly formed.

  #### Declaration

  Swift

      case sdk_license_bad_payload = 2

- `sdk_license_invalid_signature`

  The digital signature of the SDK license did not validate.

  #### Declaration

  Swift

      case sdk_license_invalid_signature = 3

- `sdk_license_bundle_id_mismatch`

  The app’s bundle ID does not match the one registered in the license.

  #### Declaration

  Swift

      case sdk_license_bundle_id_mismatch = 4

- `sdk_license_user_id_not_informed`

  The user ID needed for the license is missing or not provided.

  #### Declaration

  Swift

      case sdk_license_user_id_not_informed = 5

- `sdk_license_missing`

  The required SDK license file is missing.

  #### Declaration

  Swift

      case sdk_license_missing = 6

- `sdk_license_network_error`

  There was a network error when trying to validate or download the SDK license.

  #### Declaration

  Swift

      case sdk_license_network_error = 7

- `sdk_jailbroken_device_detected`

  The device appears to be jailbroken, which is not supported.

  #### Declaration

  Swift

      case sdk_jailbroken_device_detected = 8

- `downloader_id_already_in_use`

  The specified downloader ID is already being used by another process.

  #### Declaration

  Swift

      case downloader_id_already_in_use = 9

- `downloader_id_not_found`

  The downloader ID requested was not found in the system.

  #### Declaration

  Swift

      case downloader_id_not_found = 10

- `downloader_no_content_to_be_removed`

  There is no content to remove—requested delete operation is redundant.

  #### Declaration

  Swift

      case downloader_no_content_to_be_removed = 11

- `downloader_not_available_for_this_format`

  The requested download is not supported for the given format.

  #### Declaration

  Swift

      case downloader_not_available_for_this_format = 12

- `downloader_request_creation_failed`

  Failed to create a download request (possibly due to configuration or input errors).

  #### Declaration

  Swift

      case downloader_request_creation_failed = 13

- `downloader_asset_tracks_cannot_be_loaded`

  Asset tracks could not be loaded, possibly due to missing or corrupt media information.

  #### Declaration

  Swift

      case downloader_asset_tracks_cannot_be_loaded = 14

- `downloader_media_selection_cannot_be_loaded`

  Media selection options could not be loaded during download preparation.

  #### Declaration

  Swift

      case downloader_media_selection_cannot_be_loaded = 15

- `downloader_offline_key_not_retrieved`

  The offline key needed for download was not retrieved successfully.

  #### Declaration

  Swift

      case downloader_offline_key_not_retrieved = 16

- `downloader_cellular_access_disallowed`

  Downloading over cellular data is not allowed by app or system settings.

  #### Declaration

  Swift

      case downloader_cellular_access_disallowed = 17

- `storage_error_while_removing_file`

  An error occurred while removing a file from storage.

  #### Declaration

  Swift

      case storage_error_while_removing_file = 18

- `storage_error_reading`

  An error occurred during file reading operations.

  #### Declaration

  Swift

      case storage_error_reading = 19

- `storage_error_writing`

  An error occurred during file writing operations.

  #### Declaration

  Swift

      case storage_error_writing = 20

- `network_error`

  A generic network error occurred (e.g., connection lost, timeout, etc.).

  #### Declaration

  Swift

      case network_error = 21

- `network_http_bad_status_code`

  HTTP response returned a bad or unexpected status code (not 2xx).

  #### Declaration

  Swift

      case network_http_bad_status_code = 22

- `method_not_implemented`

  The requested method is not implemented or supported in the current context.

  #### Declaration

  Swift

      case method_not_implemented = 23

- `hls_playlist_invalid`

  The HLS playlist is invalid or could not be parsed. DEPRECATED: “Will be removed in 4.2.0, use `manifest_error` instead.”

  #### Declaration

  Swift

      case hls_playlist_invalid = 24

- `manifest_error`

  There was an error in parsing or accessing the manifest file.

  #### Declaration

  Swift

      case manifest_error = 25

- `manifest_url_not_set`

  No manifest URL has been set when one was required.

  #### Declaration

  Swift

      case manifest_url_not_set = 26

- `player_open_error`

  Failed to open the player, likely due to resource or initialization issues.

  #### Declaration

  Swift

      case player_open_error = 27

- `player_resource_unavailable`

  The requested player resource is unavailable (e.g., file missing, access denied).

  #### Declaration

  Swift

      case player_resource_unavailable = 28

- `player_avplayer_error`

  AVPlayer communicated a critical error.

  #### Declaration

  Swift

      case player_avplayer_error = 29

- `player_avplayer_stall`

  AVPlayer has stalled, likely due to buffering or connectivity issues.

  #### Declaration

  Swift

      case player_avplayer_stall = 30

- `drm_fairplay_key_error`

  A FairPlay DRM key error occurred during playback.

  #### Declaration

  Swift

      case drm_fairplay_key_error = 31

- `drm_acquisition_terminated`

  DRM acquisition process was terminated unexpectedly.

  #### Declaration

  Swift

      case drm_acquisition_terminated = 32

- `drm_malformed_request`

  The DRM request was malformed or not as expected by the server.

  #### Declaration

  Swift

      case drm_malformed_request = 33

- `drm_missing_key_uri`

  The URI for the DRM key is missing from the configuration.

  #### Declaration

  Swift

      case drm_missing_key_uri = 34

- `drm_missing_licensing_url`

  Licensing URL required for DRM was not provided.

  #### Declaration

  Swift

      case drm_missing_licensing_url = 35

- `drm_local_internal_error`

  A local (device-side) DRM internal error occurred.

  #### Declaration

  Swift

      case drm_local_internal_error = 36

- `drm_server_internal_error`

  The DRM server reported an internal error.

  #### Declaration

  Swift

      case drm_server_internal_error = 37

- `drm_server_licensing_error`

  The DRM server responded with a licensing error (e.g., invalid license, expired, etc.).

  #### Declaration

  Swift

      case drm_server_licensing_error = 38

- `drm_license_expired`

  The DRM license has expired and is no longer valid.

  #### Declaration

  Swift

      case drm_license_expired = 39

- `drm_second_screen_detected`

  A prohibited second screen (e.g., AirPlay, HDMI output) was detected during playback.

  #### Declaration

  Swift

      case drm_second_screen_detected = 40

- `drm_screen_recording_detected`

  Screen recording was detected, which is disallowed for DRM protected content.

  #### Declaration

  Swift

      case drm_screen_recording_detected = 41

- `drm_unsupported_system`

  The device or platform does not support the required DRM system.

  #### Declaration

  Swift

      case drm_unsupported_system = 42

- `drm_today`

  DRM Today error occurred.

  #### Declaration

  Swift

      case drm_today = 43

- `network_request_cancelled`

  The network request was cancelled by the user or system.

  #### Declaration

  Swift

      case network_request_cancelled = 44

- `system`

  A general system error occurred.

  #### Declaration

  Swift

      case system = 45

- `system_internet_connection_available`

  Internet connection is available.

  #### Declaration

  Swift

      case system_internet_connection_available = 46

- `system_internet_connection_unavailable`

  Internet connection is unavailable.

  #### Declaration

  Swift

      case system_internet_connection_unavailable = 47

- `text_content_invalid`

  The provided text content is invalid or corrupted.

  #### Declaration

  Swift

      case text_content_invalid = 48

- `text_track_already_loaded`

  The requested text track is already loaded and cannot be loaded again.

  #### Declaration

  Swift

      case text_track_already_loaded = 49

- `thumbnails_content_invalid`

  The thumbnails content is invalid or cannot be used.

  #### Declaration

  Swift

      case thumbnails_content_invalid = 50

- `thumbnails_image_missing`

  An expected thumbnail image is missing.

  #### Declaration

  Swift

      case thumbnails_image_missing = 51

- `ads_error`

  An error occurred with the ad system or ad playback.

  #### Declaration

  Swift

      case ads_error = 52

- `cast_error`

  An error occurred when casting content to another device.

  #### Declaration

  Swift

      case cast_error = 53

- `playlist_error`

  An error occurred with the playlist or its parsing.

  #### Declaration

  Swift

      case playlist_error = 54

- `player_behind_live_window`

  Error raised when the current playback position is behind the live edge in a live stream.

  #### Declaration

  Swift

      case player_behind_live_window = 55

- `player_state_timeout`

  Error raised when the player remains in the same state beyond the configured timeout.

  #### Declaration

  Swift

      case player_state_timeout = 57

- `sdk_internal_session_error`

  Internal session inconsistency error

  #### Declaration

  Swift

      case sdk_internal_session_error = 56

- `system_media_services_reset`

  Media services were reset by the system.

  #### Declaration

  Swift

      case system_media_services_reset = 58

- `media_demuxing_error`

  The media could not be demuxed into readable samples.

  #### Declaration

  Swift

      case media_demuxing_error = 59

- `open_error`

  Failed to open the component, likely due to resource or initialization issues.

  #### Declaration

  Swift

      case open_error = 60

- `resource_unavailable`

  The requested resource is unavailable (e.g., file missing, access denied).

  #### Declaration

  Swift

      case resource_unavailable = 61