Clarify speedchange javadoc to mention duration.

The speed is that value only until the next one

PiperOrigin-RevId: 606258937
This commit is contained in:
huangdarwin 2024-02-12 08:22:54 -08:00 committed by Copybara-Service
parent 1a5eb4eecd
commit 2594691950

View File

@ -23,7 +23,10 @@ import androidx.media3.common.util.UnstableApi;
public interface SpeedProvider { public interface SpeedProvider {
/** /**
* Returns the media speed at the provided timestamp. * Returns the media speed from the provided timestamp.
*
* <p>The media speed will stay the same until {@linkplain #getNextSpeedChangeTimeUs the next
* specified speed change}.
* *
* @param timeUs The timestamp of the media. * @param timeUs The timestamp of the media.
* @return The speed that the media should be played at. * @return The speed that the media should be played at.