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
* position) to the frame presentation time, in microseconds.
* position) to get the frame presentation time, in microseconds.
*/
protected long getBufferTimestampAdjustmentUs() {
return -startPositionUs;

View File

@ -192,12 +192,12 @@ public interface VideoSink {
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
* the player.
* @param bufferTimestampAdjustmentUs The timestamp adjustment to convert the player position to
* the frame presentation timestamp.
* @param streamOffsetUs The offset that is added to the buffer presentation timestamps by the
* player, in microseconds.
* @param bufferTimestampAdjustmentUs The timestamp adjustment to add to the buffer presentation
* timestamps to convert them to frame presentation timestamps, in microseconds.
*/
void setStreamOffsetAndAdjustmentUs(long streamOffsetUs, long bufferTimestampAdjustmentUs);