FrameAboutToBeRendered

data class FrameAboutToBeRendered(val presentationTimeUs: Long, val releaseTimeNs: Long) : PlayerEvent

Emitted for every frame that will be rendered onto the video surface. This event needs to be enabled via setting the TweaksConfig.enableFrameAboutToBeRenderedEvent to true. The event will be emitted on the playback thread. It is very important that handling this event must be done very efficient to not block the playback thread.

Constructors

Link copied to clipboard
constructor(presentationTimeUs: Long, releaseTimeNs: Long)

Properties

Link copied to clipboard

In microseconds. DASH live streams: Relative to the period start. HLS live streams: Relative to PROGRAM_DATE_TIME. If PROGRAM_DATE_TIME is not set, relative to the first downloaded HLS segment. VoD streams: The current time of the stream. DASH VoD multi-period streams: The current time of the current period.

Link copied to clipboard

In nanoseconds. The wallclock time at which the frame should be displayed, in nanoseconds