Skip to content

ExoPlayer2.8.1-2

Compare
Choose a tag to compare
@AAkira AAkira released this 12 Jun 06:49
· 6 commits to master since this release
3b782c6

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()

DRM support

#18