Back to Exoplayer

VideoFrameMetadataListener (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/video/VideoFrameMetadataListener.html

latest2.3 KB
Original Source

Package com.google.android.exoplayer2.video

Interface VideoFrameMetadataListener


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceVideoFrameMetadataListener

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

A listener for metadata corresponding to video frames being rendered.

Method Summary

All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | void | onVideoFrameAboutToBeRendered​(long presentationTimeUs, long releaseTimeNs, Format format, MediaFormat mediaFormat) | Deprecated.

Called on the playback thread when a video frame is about to be rendered. |

Method Detail

- 

onVideoFrameAboutToBeRendered

void onVideoFrameAboutToBeRendered​(long presentationTimeUs,
                                   long releaseTimeNs,[Format](../Format.html "class in com.google.android.exoplayer2")format,
                                   @Nullable[MediaFormat](https://developer.android.com/reference/android/media/MediaFormat.html "class or interface in android.media")mediaFormat)

Deprecated.

Called on the playback thread when a video frame is about to be rendered. Parameters:presentationTimeUs - The presentation time of the frame, in microseconds.releaseTimeNs - The wallclock time at which the frame should be displayed, in nanoseconds. If the platform API version of the device is less than 21, then this is a best effort.format - The format associated with the frame.mediaFormat - The framework media format associated with the frame, or null if not known or not applicable (e.g., because the frame was not output by a MediaCodec).