BMPSourceType

Objective-C

enum BMPSourceType : NSInteger {}

Swift

enum SourceType : Int

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

  • indicates a missing source type.

    Declaration

    Objective-C

    BMPSourceTypeNone = 0

    Swift

    case none = 0
  • Indicates media of type HLS.

    Declaration

    Objective-C

    BMPSourceTypeHls

    Swift

    case hls = 1
  • Indicates media of type DASH.

    Declaration

    Objective-C

    BMPSourceTypeDash

    Swift

    case dash = 2
  • Indicates media of type Progressive MP4.

    Declaration

    Objective-C

    BMPSourceTypeProgressive

    Swift

    case progressive = 3
  • 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

    Objective-C

    BMPSourceTypeMovpkg

    Swift

    case movpkg = 4