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.

  • The SDK license is invalid or has not been recognized.

    Declaration

    Swift

    case sdk_license_invalid
  • The SDK license format is malformed or unreadable.

    Declaration

    Swift

    case sdk_license_bad_format
  • The SDK license payload is corrupted or incorrectly formed.

    Declaration

    Swift

    case sdk_license_bad_payload
  • The digital signature of the SDK license did not validate.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    case sdk_license_user_id_not_informed
  • The required SDK license file is missing.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    case downloader_id_already_in_use
  • The downloader ID requested was not found in the system.

    Declaration

    Swift

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

    Declaration

    Swift

    case downloader_no_content_to_be_removed
  • The requested download is not supported for the given format.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    case downloader_asset_tracks_cannot_be_loaded
  • Media selection options could not be loaded during download preparation.

    Declaration

    Swift

    case downloader_media_selection_cannot_be_loaded
  • The offline key needed for download was not retrieved successfully.

    Declaration

    Swift

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

    Declaration

    Swift

    case downloader_cellular_access_disallowed
  • An error occurred while removing a file from storage.

    Declaration

    Swift

    case storage_error_while_removing_file
  • Some error occurred during file reading operations.

    Declaration

    Swift

    case storage_error_reading
  • Some error occurred during file writing operations.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    case method_not_implemented
  • The HLS playlist is invalid or could not be parsed.

    Declaration

    Swift

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

    Declaration

    Swift

    case manifest_error
  • No manifest URL has been set when one was required.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    case player_resource_unavailable
  • AVPlayer communicated a critical error.

    Declaration

    Swift

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

    Declaration

    Swift

    case player_avplayer_stall
  • A FairPlay DRM key error occurred during playback.

    Declaration

    Swift

    case drm_fairplay_key_error
  • DRM acquisition process was terminated unexpectedly.

    Declaration

    Swift

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

    Declaration

    Swift

    case drm_malformed_request
  • The URI for the DRM key is missing from the configuration.

    Declaration

    Swift

    case drm_missing_key_uri
  • Licensing URL required for DRM was not provided.

    Declaration

    Swift

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

    Declaration

    Swift

    case drm_local_internal_error
  • The DRM server reported an internal error.

    Declaration

    Swift

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

    Declaration

    Swift

    case drm_server_licensing_error
  • The DRM license has expired and is no longer valid.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    case drm_unsupported_system
  • DRM license is only valid for today (possibly temporary or test license).

    Declaration

    Swift

    case drm_today
  • The network request was cancelled by the user or system.

    Declaration

    Swift

    case network_request_cancelled
  • A general system error occurred.

    Declaration

    Swift

    case system
  • Internet connection is available.

    Declaration

    Swift

    case system_internet_connection_available
  • Internet connection is unavailable.

    Declaration

    Swift

    case system_internet_connection_unavailable
  • The provided text content is invalid or corrupted.

    Declaration

    Swift

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

    Declaration

    Swift

    case text_track_already_loaded
  • The thumbnails content is invalid or cannot be used.

    Declaration

    Swift

    case thumbnails_content_invalid
  • An expected thumbnail image is missing.

    Declaration

    Swift

    case thumbnails_image_missing
  • An error occurred with the ad system or ad playback.

    Declaration

    Swift

    case ads_error
  • An error occurred when casting content to another device.

    Declaration

    Swift

    case cast_error
  • An error occurred with the playlist or its parsing.

    Declaration

    Swift

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

    Declaration

    Swift

    case player_behind_live_window