PlaybackMetrics
data class PlaybackMetrics(val sessionId: String, val bandwidth: Long, val indicatedBitrate: Long, val playbackDuration: Duration, val bufferingDuration: Duration, val stallCount: Int, val stallDuration: Duration, val loadDuration: PlaybackMetrics.LoadDuration, val totalLoadTime: Duration, val totalBytesLoaded: Long, val url: Uri?, val videoFormat: Format?, val audioFormat: Format?, val surfaceSize: Size, val totalDroppedFrames: Int)
Represents a generic event, which contains metrics about the current media stream.
Constructors
Link copied to clipboard
constructor(sessionId: String, bandwidth: Long, indicatedBitrate: Long, playbackDuration: Duration, bufferingDuration: Duration, stallCount: Int, stallDuration: Duration, loadDuration: PlaybackMetrics.LoadDuration, totalLoadTime: Duration, totalBytesLoaded: Long, url: Uri?, videoFormat: Format?, audioFormat: Format?, surfaceSize: Size, totalDroppedFrames: Int)
Properties
Link copied to clipboard
The current audio format selected by the player.
Link copied to clipboard
The duration the session spent in buffering.
Link copied to clipboard
The bitrate of the video and audio format, in bits per second.
Link copied to clipboard
The load duration that could be computed.
Link copied to clipboard
The duration the session spent playing.
Link copied to clipboard
The number of stalls that have occurred, not as a result of a seek.
Link copied to clipboard
The total duration of the stalls.
Link copied to clipboard
The size of the surface connected to the player. Size.ZERO if not connected.
Link copied to clipboard
The total bytes loaded to compute bandwidth.
Link copied to clipboard
The total frame dropped.
Link copied to clipboard
The load time to compute bandwidth.
Link copied to clipboard
The current video format selected by the player.
Link copied to clipboard
Video size of videoFormat if applicable.