Update ExoPlayer.Builder#build() to return ExoPlayer (instead of SEP)

Users who need a (deprecated) SimpleExoPlayer instance should use
(the also deprecated) SimpleExoPlayer.Builder.

PiperOrigin-RevId: 403108197
This commit is contained in:
ibaker 2021-10-14 17:03:28 +01:00 committed by Oliver Woodman
parent 746ad2e6aa
commit 21cfd62cfd

View File

@ -352,7 +352,7 @@ public interface ExoPlayer extends Player {
} }
/** /**
* A builder for {@link SimpleExoPlayer} instances. * A builder for {@link ExoPlayer} instances.
* *
* <p>See {@link #Builder(Context)} for the list of default values. * <p>See {@link #Builder(Context)} for the list of default values.
*/ */
@ -818,11 +818,11 @@ public interface ExoPlayer extends Player {
} }
/** /**
* Builds a {@link SimpleExoPlayer} instance. * Builds an {@link ExoPlayer} instance.
* *
* @throws IllegalStateException If this method has already been called. * @throws IllegalStateException If this method has already been called.
*/ */
public SimpleExoPlayer build() { public ExoPlayer build() {
return wrappedBuilder.build(); return wrappedBuilder.build();
} }
} }