MediaFile
@objc(AASDKMediaFile)
public protocol MediaFile
The MediaFile
public protocol.
-
URI for the media file.
Declaration
Swift
var uri: String { get }
-
MIME type for the file container. Popular MIME types include, but are not limited to “video/mp4” for MP4, “audio/mpeg” and “audio/aac” for audio ads.
Declaration
Swift
var type: String { get }
-
The codec used to encode the file, which can take values as specified by RFC 4281: http://tools.ietf.org/html/rfc4281.
Declaration
Swift
var codec: String? { get }
-
An identifier for the media file as it is set in the VAST response.
Declaration
Swift
var id: String? { get }
-
For progressive load audio, the bitrate value specifies the average bitrate for the media file.
Declaration
Swift
var bitrate: NSNumber? { get }
-
Minimum bitrates for audio files.
Declaration
Swift
var minBitrate: NSNumber? { get }
-
Maximum bitrates for audio files.
Declaration
Swift
var maxBitrate: NSNumber? { get }
-
Required. The native width of the video file, in pixels. (0 for audio ads).
Declaration
Swift
var width: NSNumber { get }
-
Required. The native height of the video file, in pixels. (0 for audio ads).
Declaration
Swift
var height: NSNumber { get }
-
Helps eliminate the need to calculate the size based on bitrate and duration. Measured in bytes.
Declaration
Swift
var fileSize: NSNumber? { get }