ExoPlayer2.8.1-2
Modification
Change the declaration of ExoPlayerManager
Don't worry 😄
very simple change
Before
val playerManager: ExoPlayerManager = ExoPlayerManager(context)
After
val playerManager: ExoPlayerManager = ExoPlayerManager.Builder(context).run {
build(
renderersFactory = createRenderersFactory(), // You can set your RenderersFactory(not need to set)
loadControl = createDefaultLoadControl( // You can set your LoadControl (not need to set)
minBufferMs = 15000,
maxBufferMs = 50000,
bufferForPlaybackMs = 2500,
bufferForPlaybackAfterRebufferMs = 5000
)
)
}
=> simple declaration if you don't set params
val playerManager: ExoPlayerManager = ExoPlayerManager.Builder(context).build()