From 106294158abdc3efbd1cb041ae3cef6b4f40e445 Mon Sep 17 00:00:00 2001 From: olly Date: Thu, 1 Apr 2021 15:49:52 +0100 Subject: [PATCH] Fix SimpleExoPlayer documentation I've removed the "by default" statements, since this now depends on how the builder was configured. PiperOrigin-RevId: 366249995 --- .../com/google/android/exoplayer2/SimpleExoPlayer.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java b/library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java index a98e3475af..67a12f05dc 100644 --- a/library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java +++ b/library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java @@ -144,7 +144,7 @@ public class SimpleExoPlayer extends BasePlayer *
  • {@link PriorityTaskManager}: {@code null} (not used) *
  • {@link AudioAttributes}: {@link AudioAttributes#DEFAULT}, not handling audio focus *
  • {@link C.WakeMode}: {@link C#WAKE_MODE_NONE} - *
  • {@code handleAudioBecomingNoisy}: {@code true} + *
  • {@code handleAudioBecomingNoisy}: {@code false} *
  • {@code skipSilenceEnabled}: {@code false} *
  • {@link C.VideoScalingMode}: {@link C#VIDEO_SCALING_MODE_DEFAULT} *
  • {@code useLazyPreparation}: {@code true} @@ -1047,8 +1047,6 @@ public class SimpleExoPlayer extends BasePlayer * href="https://developer.android.com/guide/topics/media-apps/volume-and-earphones#becoming-noisy">audio * becoming noisy documentation for more information. * - *

    This feature is not enabled by default. - * * @param handleAudioBecomingNoisy Whether the player should pause automatically when audio is * rerouted from a headset to device speakers. */ @@ -1718,10 +1716,6 @@ public class SimpleExoPlayer extends BasePlayer * playback can occur when the screen is off (e.g. background audio playback). It is not useful if * the screen will always be on during playback (e.g. foreground video playback). * - *

    This feature is not enabled by default. If enabled, a WakeLock is held whenever the player - * is in the {@link #STATE_READY READY} or {@link #STATE_BUFFERING BUFFERING} states with {@code - * playWhenReady = true}. - * * @param handleWakeLock Whether the player should use a {@link android.os.PowerManager.WakeLock} * to ensure the device stays awake for playback, even when the screen is off. * @deprecated Use {@link #setWakeMode(int)} instead.