Skip to content

Commit

Permalink
Improved player streaming #3831 #3835 #3773
Browse files Browse the repository at this point in the history
  • Loading branch information
fast4x committed Oct 3, 2024
1 parent 9e1dea2 commit 21eb40b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ import androidx.media3.datasource.cache.LeastRecentlyUsedCacheEvictor
import androidx.media3.datasource.cache.NoOpCacheEvictor
import androidx.media3.datasource.cache.SimpleCache
import androidx.media3.datasource.okhttp.OkHttpDataSource
import androidx.media3.exoplayer.DefaultRenderersFactory
import androidx.media3.exoplayer.ExoPlayer
import androidx.media3.exoplayer.RenderersFactory
import androidx.media3.exoplayer.analytics.AnalyticsListener
Expand Down Expand Up @@ -539,7 +540,7 @@ class PlayerService : InvincibleService(),
downloadCache = DownloadUtil.getDownloadSimpleCache(applicationContext) as SimpleCache

player = ExoPlayer.Builder(this, createRendersFactory(), createMediaSourceFactory())
//.setRenderersFactory(DefaultRenderersFactory(this).setEnableDecoderFallback(true))
.setRenderersFactory(DefaultRenderersFactory(this).setEnableDecoderFallback(true))
.setAudioAttributes(
AudioAttributes.Builder()
.setContentType(C.AUDIO_CONTENT_TYPE_MUSIC)
Expand Down

0 comments on commit 21eb40b

Please sign in to comment.