MetricsCollector

This class is responsible for collecting and computing playback statistics metrics such as:

  • Stalls (count and duration)

  • Playtime

  • Bitrate (estimated and indicated)

  • Loading times (manifest, asset, source, DRM)

  • Video and audio format information

  • Dropped video frames

  • Surface size

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
interface Listener

A listener interface for receiving updates about playback metrics.

Functions

Link copied to clipboard

Registers a listener to receive events.

Link copied to clipboard

Retrieves the current playback metrics.

Link copied to clipboard

Retrieves playback metrics for a given playback session.

Link copied to clipboard

Removes the specified listener from the list of listeners.

Link copied to clipboard

Sets the PillarboxExoPlayer instance to be used for analytics and session management.