mirror of
https://github.com/androidx/media.git
synced 2025-05-04 22:20:47 +08:00

Previously, Robolectric's instrumentation updated all constructors to be public. This caused two main types of problems: 1) When non-public constructors were made public and added to the Android API, Robolectric allowed tests to incorrectly use the constructors on older SDK levels (where they were non-public). This most commonly occurs for AccessibiltyEvent and AccessibilityNodeInfo. 2) When reflection was used to instantiate classes that were instrumented by Robolectric, all constructors were accessible. Fix issues across Google3 Robolectric tests that were affected by this issue. A forthcoming change will fix the instrumentation in Robolectric to prevent this type of issue from occurring. Tested: TAP --sample ran all affected tests and none failed http://test/OCL:507861075:BASE:507805409:1675803313108:f2128fa4 PiperOrigin-RevId: 508087822
ExoPlayer module
This module provides ExoPlayer
, the Player
implementation for local media
playback on Android.
Getting the module
The easiest way to get the module is to add it as a gradle dependency:
implementation 'com.google.android.exoplayer:exoplayer-core:2.X.X'
where 2.X.X
is the version, which must match the version of the other media
modules being used.
Alternatively, you can clone this GitHub project and depend on the module locally. Instructions for doing this can be found in the top level README.
Using the module
The developer guide documents how to get started.