fixed bug related to audio offload mode

This commit is contained in:
Xilin Jia 2024-02-20 12:28:07 +01:00
parent bc1b758510
commit 824893cbfc
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ class ExoPlayerWrapper internal constructor(private val context: Context) {
val audioOffloadPreferences = AudioOffloadPreferences.Builder()
.setAudioOffloadMode(AudioOffloadPreferences.AUDIO_OFFLOAD_MODE_ENABLED) // Add additional options as needed
.setIsGaplessSupportRequired(true)
.setIsSpeedChangeSupportRequired(true)
.build()
exoPlayer = ExoPlayer.Builder(context, DefaultRenderersFactory(context))
.setTrackSelector(trackSelector)