Make ExoPlayer.Builder#build return SimpleExoPlayer

In a future change it will be updated to return ExoPlayer

We no longer need separate methods to build Player and ExoPlayer, so
buildExoPlayer will be removed shortly.

PiperOrigin-RevId: 401441016
This commit is contained in:
ibaker 2021-10-07 08:39:56 +01:00 committed by bachinger
parent ee71c8387c
commit f440aed4e9

View File

@ -838,12 +838,12 @@ public interface ExoPlayer extends Player {
}
/**
* Builds a {@link Player} instance.
* Builds a {@link SimpleExoPlayer} instance.
*
* @throws IllegalStateException If this method or {@link #buildExoPlayer()} has already been
* called.
*/
public Player build() {
public SimpleExoPlayer build() {
return buildExoPlayer();
}