Package com.castlabs.android.player
Interface VideoMetadataListener
public interface VideoMetadataListener
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onVideoFrameAboutToBeRendered
(long presentationTimeUs, long releaseTimeNs, com.google.android.exoplayer2.Format format, MediaFormat mediaFormat) Called when the video frame is about to be rendered.
-
Method Details
-
onVideoFrameAboutToBeRendered
void onVideoFrameAboutToBeRendered(long presentationTimeUs, long releaseTimeNs, @NonNull com.google.android.exoplayer2.Format format, @Nullable MediaFormat mediaFormat) Called when the video frame is about to be rendered.- Parameters:
presentationTimeUs
- The presentation time of the output buffer, 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 the best effort.format
- The format associated with the frame.mediaFormat
- The framework media format associated with the frame, ornull
if not known or not applicable (e.g., because the frame was not output by aMediaCodec
).
-