SourceType

@objc(BMPSourceType)
public enum SourceType : Int

Types of media which can be handled by the Bitmovin Player.

  • Indicates a missing source type.

    Declaration

    Swift

    case none = 0
  • hls

    Indicates media of type HLS.

    Declaration

    Swift

    case hls
  • Indicates media of type DASH.

    Declaration

    Swift

    case dash
  • Indicates media of type Progressive MP4.

    Declaration

    Swift

    case progressive
  • Indicates already downloaded media in Apple’s movpkg format.

    This type could be used to playback a locally stored asset. E.g. an asset that was not downloaded using our OfflineManager.

    The url provided to the SourceConfig has to be a file url starting with file://. Serving a movpkg via HTTP is not supported. If a HTTP url (starting with http(s)://) is provided the initializer will fail and throw an exception.

    AirPlay of a movpkg is supported when the device has an active network connection.

    Limitations:

    • Casting a source of type movpkg is not supported.
    • Playback of a partially downloaded movpkg, e.g. playback while still downloading, is not supported.

    Declaration

    Swift

    case movpkg