VideoFrameMetadataListener
@UnstableApi
public interface VideoFrameMetadataListener
A listener for metadata corresponding to video frames being rendered.
Summary
Public methods |
|
|---|---|
abstract void |
onVideoFrameAboutToBeRendered(Called on the playback thread when a video frame is about to be rendered. |
Public methods
onVideoFrameAboutToBeRendered
abstract void onVideoFrameAboutToBeRendered(
long presentationTimeUs,
long releaseTimeNs,
Format format,
@Nullable MediaFormat mediaFormat
)
Called on the playback thread when a video frame is about to be rendered.
| Parameters | |
|---|---|
long presentationTimeUs |
The presentation time of the frame, in microseconds. |
long releaseTimeNs |
The system time at which the frame should be displayed, in nanoseconds. Can be compared to |
Format format |
The format associated with the frame. |
@Nullable MediaFormat mediaFormat |
The framework media format associated with the frame, or |