mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Change experimental method naming for throwWhenStuckBuffering.
PiperOrigin-RevId: 325795485
This commit is contained in:
parent
69c2a76d01
commit
78424efc90
4 changed files with 7 additions and 7 deletions
|
|
@ -240,7 +240,7 @@ public interface ExoPlayer extends Player {
|
||||||
* @param throwWhenStuckBuffering Whether to throw when the player detects it's stuck buffering.
|
* @param throwWhenStuckBuffering Whether to throw when the player detects it's stuck buffering.
|
||||||
* @return This builder.
|
* @return This builder.
|
||||||
*/
|
*/
|
||||||
public Builder experimental_setThrowWhenStuckBuffering(boolean throwWhenStuckBuffering) {
|
public Builder experimentalSetThrowWhenStuckBuffering(boolean throwWhenStuckBuffering) {
|
||||||
this.throwWhenStuckBuffering = throwWhenStuckBuffering;
|
this.throwWhenStuckBuffering = throwWhenStuckBuffering;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
@ -413,7 +413,7 @@ public interface ExoPlayer extends Player {
|
||||||
player.experimental_setReleaseTimeoutMs(releaseTimeoutMs);
|
player.experimental_setReleaseTimeoutMs(releaseTimeoutMs);
|
||||||
}
|
}
|
||||||
if (!throwWhenStuckBuffering) {
|
if (!throwWhenStuckBuffering) {
|
||||||
player.experimental_disableThrowWhenStuckBuffering();
|
player.experimentalDisableThrowWhenStuckBuffering();
|
||||||
}
|
}
|
||||||
|
|
||||||
return player;
|
return player;
|
||||||
|
|
|
||||||
|
|
@ -205,8 +205,8 @@ import java.util.concurrent.TimeoutException;
|
||||||
* <p>This method is experimental, and will be renamed or removed in a future release. It should
|
* <p>This method is experimental, and will be renamed or removed in a future release. It should
|
||||||
* only be called before the player is used.
|
* only be called before the player is used.
|
||||||
*/
|
*/
|
||||||
public void experimental_disableThrowWhenStuckBuffering() {
|
public void experimentalDisableThrowWhenStuckBuffering() {
|
||||||
internalPlayer.experimental_disableThrowWhenStuckBuffering();
|
internalPlayer.experimentalDisableThrowWhenStuckBuffering();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
|
|
@ -258,7 +258,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
this.releaseTimeoutMs = releaseTimeoutMs;
|
this.releaseTimeoutMs = releaseTimeoutMs;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void experimental_disableThrowWhenStuckBuffering() {
|
public void experimentalDisableThrowWhenStuckBuffering() {
|
||||||
throwWhenStuckBuffering = false;
|
throwWhenStuckBuffering = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -449,7 +449,7 @@ public class SimpleExoPlayer extends BasePlayer
|
||||||
* @param throwWhenStuckBuffering Whether to throw when the player detects it's stuck buffering.
|
* @param throwWhenStuckBuffering Whether to throw when the player detects it's stuck buffering.
|
||||||
* @return This builder.
|
* @return This builder.
|
||||||
*/
|
*/
|
||||||
public Builder experimental_setThrowWhenStuckBuffering(boolean throwWhenStuckBuffering) {
|
public Builder experimentalSetThrowWhenStuckBuffering(boolean throwWhenStuckBuffering) {
|
||||||
this.throwWhenStuckBuffering = throwWhenStuckBuffering;
|
this.throwWhenStuckBuffering = throwWhenStuckBuffering;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
@ -620,7 +620,7 @@ public class SimpleExoPlayer extends BasePlayer
|
||||||
wifiLockManager.setEnabled(builder.wakeMode == C.WAKE_MODE_NETWORK);
|
wifiLockManager.setEnabled(builder.wakeMode == C.WAKE_MODE_NETWORK);
|
||||||
deviceInfo = createDeviceInfo(streamVolumeManager);
|
deviceInfo = createDeviceInfo(streamVolumeManager);
|
||||||
if (!builder.throwWhenStuckBuffering) {
|
if (!builder.throwWhenStuckBuffering) {
|
||||||
player.experimental_disableThrowWhenStuckBuffering();
|
player.experimentalDisableThrowWhenStuckBuffering();
|
||||||
}
|
}
|
||||||
|
|
||||||
sendRendererMessage(C.TRACK_TYPE_AUDIO, Renderer.MSG_SET_AUDIO_ATTRIBUTES, audioAttributes);
|
sendRendererMessage(C.TRACK_TYPE_AUDIO, Renderer.MSG_SET_AUDIO_ATTRIBUTES, audioAttributes);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue