Skip to content

Commit

Permalink
Revert wakemode for audio player service
Browse files Browse the repository at this point in the history
  • Loading branch information
VishalNehra committed Dec 21, 2023
1 parent bc5c7e6 commit 5aebda6
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ import com.google.android.exoplayer2.C
import com.google.android.exoplayer2.ExoPlayer
import com.google.android.exoplayer2.MediaItem
import com.google.android.exoplayer2.PlaybackParameters
import com.google.android.exoplayer2.Player
import com.google.android.exoplayer2.audio.AudioAttributes
import org.slf4j.Logger
import org.slf4j.LoggerFactory
Expand Down Expand Up @@ -611,7 +610,6 @@ class AudioPlayerService : Service(), ServiceOperationCallback, OnPlayerRepeatin

private fun initializePlayer() {
exoPlayer = ExoPlayer.Builder(this).build()
exoPlayer?.setWakeMode(Player.STATE_READY)
// reset playback parameter
getAppCommonSharedPreferences().edit()
.remove(PreferencesConstants.KEY_PLAYBACK_SEMITONES).apply()
Expand Down

0 comments on commit 5aebda6

Please sign in to comment.