mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add missing checks to ExoPlayer Builders
PiperOrigin-RevId: 368851903
This commit is contained in:
parent
19c267b15b
commit
62eb54532b
2 changed files with 2 additions and 0 deletions
|
|
@ -436,6 +436,7 @@ public interface ExoPlayer extends Player {
|
||||||
* @param timeoutMs The time limit in milliseconds.
|
* @param timeoutMs The time limit in milliseconds.
|
||||||
*/
|
*/
|
||||||
public Builder experimentalSetForegroundModeTimeoutMs(long timeoutMs) {
|
public Builder experimentalSetForegroundModeTimeoutMs(long timeoutMs) {
|
||||||
|
Assertions.checkState(!buildCalled);
|
||||||
setForegroundModeTimeoutMs = timeoutMs;
|
setForegroundModeTimeoutMs = timeoutMs;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -263,6 +263,7 @@ public class SimpleExoPlayer extends BasePlayer
|
||||||
* @param timeoutMs The time limit in milliseconds.
|
* @param timeoutMs The time limit in milliseconds.
|
||||||
*/
|
*/
|
||||||
public Builder experimentalSetForegroundModeTimeoutMs(long timeoutMs) {
|
public Builder experimentalSetForegroundModeTimeoutMs(long timeoutMs) {
|
||||||
|
Assertions.checkState(!buildCalled);
|
||||||
foregroundModeTimeoutMs = timeoutMs;
|
foregroundModeTimeoutMs = timeoutMs;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue