Fix Javadoc of VideoSink.setStreamOffsetAndAdjustmentUs
PiperOrigin-RevId: 646942034
This commit is contained in:
parent
6244d8605f
commit
25b8385cff
@ -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;
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user