fixed bug related to audio offload mode
This commit is contained in:
parent
bc1b758510
commit
824893cbfc
|
@ -76,6 +76,7 @@ class ExoPlayerWrapper internal constructor(private val context: Context) {
|
||||||
val audioOffloadPreferences = AudioOffloadPreferences.Builder()
|
val audioOffloadPreferences = AudioOffloadPreferences.Builder()
|
||||||
.setAudioOffloadMode(AudioOffloadPreferences.AUDIO_OFFLOAD_MODE_ENABLED) // Add additional options as needed
|
.setAudioOffloadMode(AudioOffloadPreferences.AUDIO_OFFLOAD_MODE_ENABLED) // Add additional options as needed
|
||||||
.setIsGaplessSupportRequired(true)
|
.setIsGaplessSupportRequired(true)
|
||||||
|
.setIsSpeedChangeSupportRequired(true)
|
||||||
.build()
|
.build()
|
||||||
exoPlayer = ExoPlayer.Builder(context, DefaultRenderersFactory(context))
|
exoPlayer = ExoPlayer.Builder(context, DefaultRenderersFactory(context))
|
||||||
.setTrackSelector(trackSelector)
|
.setTrackSelector(trackSelector)
|
||||||
|
|
Loading…
Reference in New Issue