Remove stray reference to ExoPlayer

PiperOrigin-RevId: 401741416
This commit is contained in:
olly 2021-10-08 12:42:12 +01:00 committed by bachinger
parent b03ebbeb89
commit 3b77816001

View File

@ -63,8 +63,8 @@ public final class LeanbackPlayerAdapter extends PlayerAdapter implements Runnab
* {@link Player} instance. The caller remains responsible for releasing the player when it's no * {@link Player} instance. The caller remains responsible for releasing the player when it's no
* longer required. * longer required.
* *
* @param context The current context (activity). * @param context The current {@link Context} (activity).
* @param player Instance of your exoplayer that needs to be configured. * @param player The {@link Player} being used.
* @param updatePeriodMs The delay between player control updates, in milliseconds. * @param updatePeriodMs The delay between player control updates, in milliseconds.
*/ */
public LeanbackPlayerAdapter(Context context, Player player, final int updatePeriodMs) { public LeanbackPlayerAdapter(Context context, Player player, final int updatePeriodMs) {
@ -267,9 +267,9 @@ public final class LeanbackPlayerAdapter extends PlayerAdapter implements Runnab
callback.onError( callback.onError(
LeanbackPlayerAdapter.this, LeanbackPlayerAdapter.this,
error.errorCode, error.errorCode,
// This string was probably tailored for MediaPlayer, whose callback takes 2 ints as // This string was probably tailored for MediaPlayer, whose error callback takes two
// error code. Since ExoPlayer provides a single error code, we just pass 0 as the // int arguments (int what, int extra). Since PlaybackException defines a single error
// extra. // code, we pass 0 as the extra.
context.getString( context.getString(
R.string.lb_media_player_error, /* formatArgs...= */ error.errorCode, 0)); R.string.lb_media_player_error, /* formatArgs...= */ error.errorCode, 0));
} }