AdaptiveStreaming
@objc
public protocol AdaptiveStreaming
Network analytics related to adaptive streaming
-
Returns an array of bitrates available in the playlist
Note
This function will make a seperate request for the Master playlist to return all the availableBitrates. This request is only done once you call this function and only on the first time you call it for that contnet. Every subsiquent call on the same content does not requst the playlist again.Declaration
Swift
func availableBitrates() -> [Int]?
Return Value
an array of bitrates available in the playlist, or nil if unknown
-
Returns the bitrate from the playlist that has been selected for playback, in bits per second
Declaration
Swift
func selectedBitrate() -> Double
Return Value
the bitrate from the playlist that has been selected for playback, or 0 if unknown
-
Returns the number of times the bitrate has switched.
Declaration
Swift
func bitrateSwitches() -> Int
Return Value
the number of times the bitrate has switched.
-
Returns the number of times the bitrate has switched to a lower bitrate.
Declaration
Swift
func bitrateDowngrade() -> Int
Return Value
the number of times the bitrate has switched to a lower bitrate.
-
Returns the Video and Audio track’s average bit rate, in bits per second.
Declaration
Swift
func averageBitrate() -> Int
Return Value
the Video and Audio track’s average bit rate, in bits per second.
-
Returns the video track’s average bit rate, in bits per second.
Declaration
Swift
func averageVideoBitrate() -> Int
Return Value
the video track’s average bit rate, in bits per second.
-
Returns the audio track’s average bit rate, in bits per second.
Declaration
Swift
func averageAudioBitrate() -> Int
Return Value
the audio track’s average bit rate, in bits per second.