MetricsCollector
Playback stats metrics Compute playback stats metrics likes stalls, playtime, bitrate, etc...
Functions
Link copied to clipboard
Add listener
Link copied to clipboard
Get current metrics
Link copied to clipboard
Get metrics for session
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onAudioDisabled(eventTime: AnalyticsListener.EventTime, decoderCounters: DecoderCounters)
Link copied to clipboard
Link copied to clipboard
open override fun onAudioInputFormatChanged(eventTime: AnalyticsListener.EventTime, format: Format, decoderReuseEvaluation: DecoderReuseEvaluation?)
Link copied to clipboard
open override fun onAudioPositionAdvancing(eventTime: AnalyticsListener.EventTime, playoutStartSystemTimeMs: Long)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onBandwidthEstimate(eventTime: AnalyticsListener.EventTime, totalLoadTimeMs: Int, totalBytesLoaded: Long, bitrateEstimate: Long)
Link copied to clipboard
open fun onBlockedTimeRangeReached(eventTime: AnalyticsListener.EventTime, blockedTimeRange: BlockedTimeRange)
On blocked time range reached
Link copied to clipboard
onChapterChanged
is called when either:
Link copied to clipboard
onCreditChanged
is called when either:
Link copied to clipboard
Link copied to clipboard
open override fun onCurrentSessionChanged(oldSession: PlaybackSessionManager.SessionInfo?, newSession: PlaybackSessionManager.SessionInfo?)
On current session changed from oldSession to newSession. onSessionDestroyed with oldSession is called right after.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onDroppedVideoFrames(eventTime: AnalyticsListener.EventTime, droppedFrames: Int, elapsedMs: Long)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onLoadCompleted(eventTime: AnalyticsListener.EventTime, loadEventInfo: LoadEventInfo, mediaLoadData: MediaLoadData)
Link copied to clipboard
open override fun onLoadError(eventTime: AnalyticsListener.EventTime, loadEventInfo: LoadEventInfo, mediaLoadData: MediaLoadData, error: IOException, wasCanceled: Boolean)
Link copied to clipboard
Link copied to clipboard
open override fun onLoadStarted(eventTime: AnalyticsListener.EventTime, loadEventInfo: LoadEventInfo, mediaLoadData: MediaLoadData)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onPositionDiscontinuity(p0: AnalyticsListener.EventTime, p1: Player.PositionInfo, p2: Player.PositionInfo, p3: Int)
Link copied to clipboard
open override fun onRenderedFirstFrame(eventTime: AnalyticsListener.EventTime, output: Any, renderTimeMs: Long)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
On session created
Link copied to clipboard
On session destroyed. The session won't be current anymore.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onSmoothSeekingEnabledChanged(eventTime: AnalyticsListener.EventTime, smoothSeekingEnabled: Boolean)
On smooth seeking enabled changed
Link copied to clipboard
A Stall occurs when the player is Player.STATE_BUFFERING after being Player.STATE_READY during playback without user interactions.
Link copied to clipboard
open override fun onSurfaceSizeChanged(eventTime: AnalyticsListener.EventTime, width: Int, height: Int)
Link copied to clipboard
Link copied to clipboard
On tracking enabled changed
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onVideoDisabled(eventTime: AnalyticsListener.EventTime, decoderCounters: DecoderCounters)
On video disabled is called when releasing the player
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onVideoInputFormatChanged(eventTime: AnalyticsListener.EventTime, format: Format, decoderReuseEvaluation: DecoderReuseEvaluation?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Remove listener
Link copied to clipboard
Set player at PillarboxExoPlayer creation.