From 2594691950ea0e6921b2d8d2c787804f4d037d76 Mon Sep 17 00:00:00 2001 From: huangdarwin Date: Mon, 12 Feb 2024 08:22:54 -0800 Subject: [PATCH] Clarify speedchange javadoc to mention duration. The speed is that value only until the next one PiperOrigin-RevId: 606258937 --- .../java/androidx/media3/common/audio/SpeedProvider.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/common/src/main/java/androidx/media3/common/audio/SpeedProvider.java b/libraries/common/src/main/java/androidx/media3/common/audio/SpeedProvider.java index ba55abf513..7d78522ac4 100644 --- a/libraries/common/src/main/java/androidx/media3/common/audio/SpeedProvider.java +++ b/libraries/common/src/main/java/androidx/media3/common/audio/SpeedProvider.java @@ -23,7 +23,10 @@ import androidx.media3.common.util.UnstableApi; public interface SpeedProvider { /** - * Returns the media speed at the provided timestamp. + * Returns the media speed from the provided timestamp. + * + *

The media speed will stay the same until {@linkplain #getNextSpeedChangeTimeUs the next + * specified speed change}. * * @param timeUs The timestamp of the media. * @return The speed that the media should be played at.