# Enumerations

The following enumerations are available globally.

- `BroadpeakStreamingSessionOptions`

  List of options that can be used to configure Broadpeak.

  Note

  Some of the options have specific values that can be found in the SmartLib documentation.
  See more

  #### Declaration

  Swift

      public enum BroadpeakStreamingSessionOptions : Int32

### DownloadState

- `DownloadState`

  Lifecycle states of a download task.

  See more

  #### Declaration

  Swift

      public enum DownloadState : String, Codable

### PlayerEngine

- `PlayerEngine`

  Player engine

  See more

  #### Declaration

  Swift

      public enum PlayerEngine : String, Codable

### ContentType

- `ContentType`

  The content type or “AUTO” if the player should use auto-detection on the content URL.

  See more

  #### Declaration

  Swift

      public enum ContentType : String, Codable, CaseIterable

### DrmType

- `DrmType`

  The type of DRM configuration that can be expected.

  #### Declaration

  Swift

      public enum DrmType : String, Codable, CaseIterable

### DrmSystem

- `DrmSystem`

  The type of DRM System that should be enforced.

  #### Declaration

  Swift

      public enum DrmSystem : String, Codable, CaseIterable

### TrackType

- `TrackType`

  The track type.

  See more

  #### Declaration

  Swift

      public enum TrackType : String, Codable, CaseIterable

### Environment

- `Environment`

  The DRM-Today environment.

  #### Declaration

  Swift

      public enum Environment : String, Codable, CaseIterable

### VideoCodec

- `VideoCodec`

  Video codecs.

  #### Declaration

  Swift

      public enum VideoCodec : String, Codable, CaseIterable

### AudioCodec

- `AudioCodec`

  Audio codecs.

  #### Declaration

  Swift

      public enum AudioCodec : String, Codable, CaseIterable

### Hoster

- `Hoster`

  The host location of the content.

  #### Declaration

  Swift

      public enum Hoster : String, Codable, CaseIterable

### TextFormat

- `TextFormat`

  Subtitle format types.

  #### Declaration

  Swift

      public enum TextFormat : String, Codable, CaseIterable

### ThumbnailsEngine

- `ThumbnailsEngine`

  Thumbnails engine

  See more

  #### Declaration

  Swift

      public enum ThumbnailsEngine : String, Codable

- `CastState`

  Represents high-level casting lifecycle and playback states.

  See more

  #### Declaration

  Swift

      public enum CastState : Equatable, CustomStringConvertible

### DRMState

- `DRMState`

  Represents the outcome of DRM license acquisition and readiness.

  See more

  #### Declaration

  Swift

      public enum DRMState : Equatable

### CLDecryptorAPI

- `SampleInfoEvent`

  Event returned while reading decrypted audio samples.

  See more

  #### Declaration

  Swift

      public enum SampleInfoEvent

- `AudioSampleContainer`

  Framing/container format of decrypted compressed audio sample payloads.

  See more

  #### Declaration

  Swift

      public enum AudioSampleContainer

- `AudioDiscontinuityKind`

  Type of audio stream discontinuity.

  See more

  #### Declaration

  Swift

      public enum AudioDiscontinuityKind

### ErrorSeverity

- `ErrorSeverity`

  Represents the severity level of an error, indicating how critical the error is and what kind of action may be needed.

  See more

  #### Declaration

  Swift

      public enum ErrorSeverity : Int

### ErrorCategory

- `ErrorCategory`

  `ErrorCategory` defines a set of categories representing the broad classification of errors within the SDK.

  See more

  #### Declaration

  Swift

      public enum ErrorCategory : Int

### ErrorType

- `ErrorType`

  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.

  See more

  #### Declaration

  Swift

      public enum ErrorType : Int, CaseIterable

- `PlayerDefaults`

  Global default values applied to newly created player instances.

  #### Declaration

  Swift

      public enum PlayerDefaults

### ResizeMode

- `ResizeMode`

  Describes how video content is scaled to fit the player bounds.

  This is a semantic, engine-agnostic abstraction over `AVLayerVideoGravity`.

  See more

  #### Declaration

  Swift

      public enum ResizeMode : Equatable

### PlaybackState

- `PlaybackState`

  Playback state.

  See more

  #### Declaration

  Swift

      @objc
      public enum PlaybackState : Int, Equatable, CustomStringConvertible

### AutoSelectTextTrackMode

- `AutoSelectTextTrackMode`

  Modes for automatic selection of text tracks.

  See more

  #### Declaration

  Swift

      public enum AutoSelectTextTrackMode : Int, Codable, Equatable

- `SideloadedTrackState`

  Loading states of a sideloaded track.

  See more

  #### Declaration

  Swift

      public enum SideloadedTrackState