
Currently onTimelineChanged doesn't allow to distinguish easily between the different reasons why it's being called. Especially, finding out whether a new media source has been prepared or the current source refreshed dynamically was impossible without tightly coupling the player operations with the listener. The new reasons provide this disdinction by either indicating a newly initialized media source, a dynamic update to an existing timeline or manifest, or a reset of the player (which usually results in an empty timeline). The original onTimelineChanged method without reason is kept in the DefaultEventListener as deprecated to prevent the need to update all existing listeners in one go. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=176478701
ExoPlayer Leanback extension
This Leanback Extension provides a PlayerAdapter implementation for ExoPlayer.
Getting the extension
The easiest way to use the extension is to add it as a gradle dependency:
compile 'com.google.android.exoplayer:extension-leanback:rX.X.X'
where rX.X.X
is the version, which must match the version of the ExoPlayer
library being used.
Alternatively, you can clone the ExoPlayer repository and depend on the module locally. Instructions for doing this can be found in ExoPlayer's top level README.
Links
- Javadoc: Classes matching
com.google.android.exoplayer2.ext.leanback.*
belong to this module.