mirror of
https://github.com/samsonjs/media.git
synced 2026-04-05 11:15:46 +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.
|
||||
*/
|
||||
public Builder experimentalSetForegroundModeTimeoutMs(long timeoutMs) {
|
||||
Assertions.checkState(!buildCalled);
|
||||
setForegroundModeTimeoutMs = timeoutMs;
|
||||
return this;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -263,6 +263,7 @@ public class SimpleExoPlayer extends BasePlayer
|
|||
* @param timeoutMs The time limit in milliseconds.
|
||||
*/
|
||||
public Builder experimentalSetForegroundModeTimeoutMs(long timeoutMs) {
|
||||
Assertions.checkState(!buildCalled);
|
||||
foregroundModeTimeoutMs = timeoutMs;
|
||||
return this;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue