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
channelIdUnique ID of the channel
channelIdSourceSource of channel ID (epg, local, …)
channelNameName fo the channel
eventIdID of the event in the channel
eventNameName of the event
genreGenre(s) of the content
bitratesAvailable Bitrates of the content asset/stream
uriURI of the content
durationDuration of the content
framesPerSecondNominalExpected frame rate for this content
-
Declaration
Swift
public func encode(to encoder: Encoder) throws