LiveContent
public struct LiveContent : Codable
Live content type definition
-
init(channelId:
channelName: eventId: eventName: genre: bitrates: uri: duration: type: framesPerSecondNominal: channelIdSource: ) Live Content Constructor
Declaration
Swift
public init (channelId: String, channelName: String, eventId: String? = nil, eventName: String? = nil, genre:[String]? = nil, bitrates: [Int]? = nil, uri: String? = nil, duration: TimeInterval? = nil, type:String = "LIVE", framesPerSecondNominal: Int? = nil, channelIdSource: String? = nil)
Parameters
channelId
Unique ID of the channel
channelIdSource
Source of channel ID (epg, local, …)
channelName
Name fo the channel
eventId
ID of the event in the channel
eventName
Name of the event
genre
Genre(s) of the content
bitrates
Available Bitrates of the content asset/stream
uri
URI of the content
duration
Duration of the content
framesPerSecondNominal
Expected frame rate for this content
-
Declaration
Swift
public func encode(to encoder: Encoder) throws