From a2087ba5bb86fe04d5a02ed9d157d81fbd92cc55 Mon Sep 17 00:00:00 2001 From: kimvde Date: Tue, 2 Jul 2024 02:47:48 -0700 Subject: [PATCH] Improve Javadoc of VideoSink.registerInputFrame/queueBitmap Document that the stream must be registered before PiperOrigin-RevId: 648648650 --- .../java/androidx/media3/exoplayer/video/VideoSink.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/video/VideoSink.java b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/video/VideoSink.java index 8a563c4eb4..f2b4c600c5 100644 --- a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/video/VideoSink.java +++ b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/video/VideoSink.java @@ -238,7 +238,8 @@ public interface VideoSink { * Informs the video sink that a frame will be queued to its {@linkplain #getInputSurface() input * surface}. * - *

Must be called after the sink is {@linkplain #initialize(Format) initialized}. + *

Must be called after the corresponding stream is {@linkplain #registerInputStream(int, + * Format) registered}. * * @param framePresentationTimeUs The frame's presentation time, in microseconds. * @param isLastFrame Whether this is the last frame of the video stream. @@ -251,7 +252,8 @@ public interface VideoSink { /** * Provides an input {@link Bitmap} to the video sink. * - *

Must be called after the sink is {@linkplain #initialize(Format) initialized}. + *

Must be called after the corresponding stream is {@linkplain #registerInputStream(int, + * Format) registered}. * * @param inputBitmap The {@link Bitmap} queued to the video sink. * @param timestampIterator The times within the current stream that the bitmap should be shown