Fix Javadoc of VideoSink.setStreamOffsetAndAdjustmentUs

PiperOrigin-RevId: 646942034
This commit is contained in:
kimvde 2024-06-26 07:37:58 -07:00 committed by Copybara-Service
parent 6244d8605f
commit 25b8385cff
2 changed files with 6 additions and 6 deletions

View File

@ -1460,7 +1460,7 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer
/** /**
* Returns the timestamp that is added to the buffer presentation time (the player decoding * Returns the timestamp that is added to the buffer presentation time (the player decoding
* position) to the frame presentation time, in microseconds. * position) to get the frame presentation time, in microseconds.
*/ */
protected long getBufferTimestampAdjustmentUs() { protected long getBufferTimestampAdjustmentUs() {
return -startPositionUs; return -startPositionUs;

View File

@ -192,12 +192,12 @@ public interface VideoSink {
void setPendingVideoEffects(List<Effect> videoEffects); void setPendingVideoEffects(List<Effect> videoEffects);
/** /**
* Sets the stream offset and buffer time adjustment, in microseconds. * Sets the stream offset and buffer time adjustment.
* *
* @param streamOffsetUs The offset that is added to the video frames presentation timestamps from * @param streamOffsetUs The offset that is added to the buffer presentation timestamps by the
* the player. * player, in microseconds.
* @param bufferTimestampAdjustmentUs The timestamp adjustment to convert the player position to * @param bufferTimestampAdjustmentUs The timestamp adjustment to add to the buffer presentation
* the frame presentation timestamp. * timestamps to convert them to frame presentation timestamps, in microseconds.
*/ */
void setStreamOffsetAndAdjustmentUs(long streamOffsetUs, long bufferTimestampAdjustmentUs); void setStreamOffsetAndAdjustmentUs(long streamOffsetUs, long bufferTimestampAdjustmentUs);