Commit b3904faf by olly Committed by Oliver Woodman

Add playlist query methods to 2.12

PiperOrigin-RevId: 331242049
parent 91a491ea
Showing with 4 additions and 5 deletions
...@@ -2,15 +2,13 @@ ...@@ -2,15 +2,13 @@
### dev-v2 (not yet released) ### dev-v2 (not yet released)
* `Player`:
* add `getMediaItemCount()` and `getMediaItemAt(int)`.
* Track selection: * Track selection:
* Add option to specify multiple preferred audio or text languages. * Add option to specify multiple preferred audio or text languages.
* Data sources: * Data sources:
* Add support for `android.resource` URI scheme in `RawResourceDataSource` * Add support for `android.resource` URI scheme in `RawResourceDataSource`
([#7866](https://github.com/google/ExoPlayer/issues/7866)). ([#7866](https://github.com/google/ExoPlayer/issues/7866)).
### 2.12.0 (not yet released - targeted for 2020-09-11) ### ### 2.12.0 (2020-09-11) ###
* Core library: * Core library:
* `Player`: * `Player`:
...@@ -18,8 +16,9 @@ ...@@ -18,8 +16,9 @@
([#6161](https://github.com/google/ExoPlayer/issues/6161)). The ([#6161](https://github.com/google/ExoPlayer/issues/6161)). The
new methods for playlist manipulation are `setMediaItem(s)`, new methods for playlist manipulation are `setMediaItem(s)`,
`addMediaItem(s)`, `moveMediaItem(s)`, `removeMediaItem(s)` and `addMediaItem(s)`, `moveMediaItem(s)`, `removeMediaItem(s)` and
`clearMediaItems`. This API should be used instead of `clearMediaItems`. The playlist can be queried using
`ConcatenatingMediaSource` in most cases. `getMediaItemCount` and `getMediaItemAt`. This API should be used
instead of `ConcatenatingMediaSource` in most cases.
* Add `getCurrentMediaItem` for getting the currently playing item * Add `getCurrentMediaItem` for getting the currently playing item
in the playlist. in the playlist.
* Add `EventListener.onMediaItemTransition` to report when * Add `EventListener.onMediaItemTransition` to report when
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment