Change experimental method naming of setReleaseTimeoutMs.

PiperOrigin-RevId: 325795609
This commit is contained in:
samrobinson 2020-08-10 14:59:45 +01:00 committed by kim-vde
parent 78424efc90
commit 63faf51c7e
3 changed files with 5 additions and 5 deletions

View file

@ -227,7 +227,7 @@ public interface ExoPlayer extends Player {
* *
* @param timeoutMs The time limit in milliseconds, or 0 for no limit. * @param timeoutMs The time limit in milliseconds, or 0 for no limit.
*/ */
public Builder experimental_setReleaseTimeoutMs(long timeoutMs) { public Builder experimentalSetReleaseTimeoutMs(long timeoutMs) {
releaseTimeoutMs = timeoutMs; releaseTimeoutMs = timeoutMs;
return this; return this;
} }
@ -410,7 +410,7 @@ public interface ExoPlayer extends Player {
looper); looper);
if (releaseTimeoutMs > 0) { if (releaseTimeoutMs > 0) {
player.experimental_setReleaseTimeoutMs(releaseTimeoutMs); player.experimentalSetReleaseTimeoutMs(releaseTimeoutMs);
} }
if (!throwWhenStuckBuffering) { if (!throwWhenStuckBuffering) {
player.experimentalDisableThrowWhenStuckBuffering(); player.experimentalDisableThrowWhenStuckBuffering();

View file

@ -195,8 +195,8 @@ import java.util.concurrent.TimeoutException;
* *
* @param timeoutMs The time limit in milliseconds, or 0 for no limit. * @param timeoutMs The time limit in milliseconds, or 0 for no limit.
*/ */
public void experimental_setReleaseTimeoutMs(long timeoutMs) { public void experimentalSetReleaseTimeoutMs(long timeoutMs) {
internalPlayer.experimental_setReleaseTimeoutMs(timeoutMs); internalPlayer.experimentalSetReleaseTimeoutMs(timeoutMs);
} }
/** /**

View file

@ -254,7 +254,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
handler = clock.createHandler(internalPlaybackThread.getLooper(), this); handler = clock.createHandler(internalPlaybackThread.getLooper(), this);
} }
public void experimental_setReleaseTimeoutMs(long releaseTimeoutMs) { public void experimentalSetReleaseTimeoutMs(long releaseTimeoutMs) {
this.releaseTimeoutMs = releaseTimeoutMs; this.releaseTimeoutMs = releaseTimeoutMs;
} }