mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

- Remove NETWORK_TYPE_NOT_ROAMING and NETWORK_TYPE_METERED because JobScheduler doesn't support them, and they're probably not useful to many people (data when roaming is normally enabled/disabled at the OS level, and restricting to *only* metered networks seems niche) - Convert network requirements proper flags - Stop persisting requirements in DownloadIndex. The direction we're headed to solve the manager start/stop problem is going to involve state in DownloadManager determining whether downloads actually start, and if we're doing that then it's no worse to do it for this as well PiperOrigin-RevId: 242713196
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.