
- Redefine Scheduler interface to better describe what implementations do. The previous version was too general, in that it allowed concrete DownloadService implementations to pass different Requirements to the base class and to the Scheduler. It's also difficult to see how that version could ever support dynamic updates to Requirements, which is probably a feature we'll need to add quite soon. - Fix a (probably theoretical) problem where static fields in DownloadService assumed only a single concrete implementation. - Stop using PlatformScheduler pre-API-21 in demo app, because it will fail. - Define default Requirements that require network. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=194785751
ExoPlayer Firebase JobDispatcher extension
This extension provides a Scheduler implementation which uses Firebase JobDispatcher.
Getting the extension
The easiest way to use the extension is to add it as a gradle dependency:
implementation 'com.google.android.exoplayer:extension-jobdispatcher:2.X.X'
where 2.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.