mirror of
https://github.com/samsonjs/media.git
synced 2026-04-09 11:55:46 +00:00
The `main` role distinguishes a track from an `alternate`, but unlike `SELECTION_FLAG_DEFAULT` it doesn't imply the track should be selected unless user preferences state otherwise. e.g. in the case of a text track, the player shouldn't enable subtitle rendering just because a `main` text track is present in the manifest. The `main`/`alternate` distinction is still available through `Format.roleFlags` and the `ROLE_FLAG_MAIN` and `ROLE_FLAG_ALTERNATE` values. This behaviour was originally [added in 2.2.0](7f967f3057), however at the time the `C.RoleFlags` IntDef did not exist. The IntDef was [added in 2.10.0](a86a9137be). PiperOrigin-RevId: 418937747
25 lines
1.2 KiB
Markdown
25 lines
1.2 KiB
Markdown
# Release notes
|
|
|
|
### 1.0.0-alpha01
|
|
|
|
AndroidX Media is the new home for media support libraries, including ExoPlayer.
|
|
The first alpha contains early, functional implementations of libraries for
|
|
implementing media use cases, including:
|
|
|
|
* ExoPlayer, an application-level media player for Android that is easy to
|
|
customize and extend.
|
|
* Media session functionality, for exposing and controlling playbacks. This
|
|
new session module uses the same `Player` interface as ExoPlayer.
|
|
* UI components for building media playback user interfaces.
|
|
* Modules wrapping functionality in other libraries for use with ExoPlayer,
|
|
for example, ad insertion via the IMA SDK.
|
|
|
|
ExoPlayer was previously hosted in a separate
|
|
[ExoPlayer GitHub project](https://github.com/google/ExoPlayer). In AndroidX
|
|
Media its package name is `androidx.media3.exoplayer`. We plan to continue to
|
|
maintain and release the ExoPlayer GitHub project for a while to give apps time
|
|
to migrate. AndroidX Media has replacements for all the ExoPlayer modules,
|
|
except for the legacy media2 and mediasession extensions, which are together
|
|
replaced by the new `media3-session` module. This provides direct integration
|
|
between players and media sessions without needing to use an adapter/connector
|
|
class.
|