MediaFile

@objc(THEOplayerMediaFile)
public protocol MediaFile

Represents the metadata of a media file with ad content.

Remark

This metadata is retrieved from the VAST file.
  • The delivery type.

    Remark

    • Can be either ‘progressive’ or ‘streaming’.
    • Currently we only support ‘progressive’.

    Declaration

    Swift

    var delivery: String { get }
  • The URI of the VAST content.

    Declaration

    Swift

    var resourceURI: String { get }
  • The MIME type for the file container.

    Declaration

    Swift

    var type: String { get }
  • The native height of the video file, in pixels.

    Declaration

    Swift

    var height: Int { get }
  • The native width of the video file, in pixels.

    Declaration

    Swift

    var width: Int { get }