mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Make ExoPlayerImpl an ExoPlayer implementation
All the functionality of SimpleExoPlayer has moved to ExoPlayerImpl. Hence, ExoPlayerImpl can fulfil its own name and become an ExoPlayer implementation. As a result, ExoPlayer.Builder can return ExoPlayerImpl directly without using SimpleExoPlayer at all. PiperOrigin-RevId: 427947028
This commit is contained in:
parent
4633e404fc
commit
216fd6407c
2 changed files with 209 additions and 142 deletions
|
|
@ -993,7 +993,9 @@ public interface ExoPlayer extends Player {
|
||||||
* @throws IllegalStateException If this method has already been called.
|
* @throws IllegalStateException If this method has already been called.
|
||||||
*/
|
*/
|
||||||
public ExoPlayer build() {
|
public ExoPlayer build() {
|
||||||
return buildSimpleExoPlayer();
|
checkState(!buildCalled);
|
||||||
|
buildCalled = true;
|
||||||
|
return new ExoPlayerImpl(/* builder= */ this, /* wrappingPlayer= */ null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* package */ SimpleExoPlayer buildSimpleExoPlayer() {
|
/* package */ SimpleExoPlayer buildSimpleExoPlayer() {
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue