diff options
author | Jaewan Kim <jaewan@google.com> | 2018-03-07 15:16:55 +0900 |
---|---|---|
committer | Sungsoo Lim <sungsoo@google.com> | 2018-03-07 16:31:56 +0900 |
commit | 87086f59ad7263facde0d17404c70e5311cde29c (patch) | |
tree | 46bc982a6c00eeec815ee77ae963a32e10380c3c /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 4d4a8c95ae9cb49413aa13ec19dcef5068ea710f (diff) |
MediaSession2: Add SessionCallback#onCurrentMediaItemChanged()
Added callback for session to know the currently playing media item has
changed.
Note that the callback is called in response to the
MediaPlayerBase#PlayerEventCallback#onCurrentDataSourceChanged(mpb, dsd
is called. Session will translate dsd to the media item and calls
onCurrentMediaItemChanged().
Following changes are also included
- Removed MediaPlaylistController#getCurrentPlaylistItem(),
because currently playing item is managed by the MediaPlayerBase.
- Renamed ControllerCallback#onCurrentPlaylistItemChanged() to the
ControllerCallback#onCurrentMediaItemChanged(), to make it more
obvious that the event is from MediaPlayerBase, not
MediaPlaylistController.
- Added SessionCallback#onCurrentMediaItemChanged()
Bug: 64098437
Test: Run MediaComponents test
Change-Id: I78b124a7da0f968b097b2576507b9a73e36081ec
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions