public class Rendition : Equatable
Base rendition metadata shared by audio/video rendition variants.
public class Rendition : Equatable
Base rendition metadata shared by audio/video rendition variants.
init(id:trackId:bitrate:codec:roles:properties:protected:supported:filtered:blocked:drmLicenseExpected:drmLicenseAvailable:selectable:drmInfo:sampleRate:)
Creates a rendition descriptor.
Swift
public init(
id: String,
trackId: String,
bitrate: Int64 = -1,
codec: String = "",
roles: Roles = Roles(),
properties: Properties = Properties(),
protected: Bool = false,
supported: Bool = false,
filtered: Bool = false,
blocked: Bool = false,
drmLicenseExpected: Bool = false,
drmLicenseAvailable: Bool = false,
selectable: Bool = false,
drmInfo: [DrmInfo] = [DrmInfo](),
sampleRate: Int64 = -1)
id
|
Stable rendition identifier. |
trackId
|
Parent track identifier. |
bitrate
|
Peak bitrate in bits per second. |
codec
|
Codec identifier string. |
roles
|
Role metadata map. |
properties
|
Extra property metadata map. |
protected
|
Whether rendition is DRM-protected. |
supported
|
Whether rendition is supported by current runtime. |
filtered
|
Whether rendition was filtered by policy. |
blocked
|
Whether rendition is blocked from selection. |
drmLicenseExpected
|
Whether license is expected. |
drmLicenseAvailable
|
Whether license is currently available. |
selectable
|
Whether rendition is currently selectable. |
drmInfo
|
DRM metadata records. |
sampleRate
|
Audio sample rate in Hz when applicable. |
Stable rendition identifier.
Swift
public var id: String
Parent track identifier.
Swift
public var trackId: String
Peak bitrate in bits per second.
Swift
public let bitrate: Int64
Codec string (e.g. avc1, hvc1, mp4a).
Swift
public let codec: String
Role metadata.
Swift
public let roles: Roles
Extra property metadata.
Swift
public let properties: Properties
Whether rendition is DRM-protected.
Swift
public let protected: Bool
Whether rendition is supported by current platform/engine.
Swift
public let supported: Bool
Whether rendition was filtered out by policy.
Swift
public let filtered: Bool
Whether rendition is currently blocked from selection.
Swift
public let blocked: Bool
Whether DRM license is expected for playback.
Swift
public let drmLicenseExpected: Bool
Whether DRM license is currently available.
Swift
public let drmLicenseAvailable: Bool
Whether rendition can currently be selected.
Swift
public let selectable: Bool
DRM info entries associated with this rendition.
Swift
public let drmInfo: [DrmInfo]
Audio sample rate in Hz where applicable.
Swift
public let sampleRate: Int64
Compares two renditions field-by-field.
Swift
public static func == (lhs: Rendition, rhs: Rendition) -> Bool