ContentInfoHolder
public class ContentInfoHolder : NSObject
The ContentInfoHolder class contains the representation of the metadata for a single content item.
The metadata for one item consists of:
- contentId - a unique identifier for this content, used to fetch licence and encryption keys
- channelId - channel ID (mostly for live streams)
- channelName - channel name (mostly for live streams)
- eventId - the event identifier within the channel
- eventName - the event name
- uri - URI for accessing this asset
- type - a string containing more details about the content (e.g., codecs, tracks, etc.)
- contentName - the content name
- genre - a list content genres
- bitrates - an array of integers of available bitrates (in Kbps)
- duration - duration of content (ms)
-
This initializer should be used for LIVE content
Declaration
Swift
public init(channelId: String, channelName: String, eventId: String? = nil, eventName: String? = nil, genre: [String]? = nil, bitrates: [Int]? = nil, uri: String? = nil, duration: Int? = nil, type: String)
-
This initializer should be used for VOD content
Declaration
Swift
public init (contentId: String, contentName: String, genre: [String]? = nil, bitrates: [Int]? = nil, uri: String? = nil, duration: Int? = nil)