普通文本  |  27行  |  1.38 KB

## 3.14\. Media UI


If device implementations include the UI framework that supports third-party
apps that depend on [`MediaBrowser`](
http://developer.android.com/reference/android/media/browse/MediaBrowser.html)
and [`MediaSession`](
http://developer.android.com/reference/android/media/session/MediaSession.html)
, they:

*    [C-1-1] MUST display [MediaItem](
     http://developer.android.com/reference/android/media/browse/MediaBrowser.MediaItem.html)
     icons and notification icons unaltered.
*    [C-1-2] MUST display those items as described by MediaSession, e.g.,
     metadata, icons, imagery.
*    [C-1-3] MUST show app title.
*    [C-1-4] MUST have drawer to present [MediaBrowser](
     http://developer.android.com/reference/android/media/browse/MediaBrowser.html)
     hierarchy.
*    [C-1-5] MUST consider double tap of [`KEYCODE_HEADSETHOOK`](
     https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_HEADSETHOOK)
     or [`KEYCODE_MEDIA_PLAY_PAUSE`](
     https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_PLAY_PAUSE)
     as [`KEYCODE_MEDIA_NEXT`](
     https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_NEXT)
     for [`MediaSession.Callback#onMediaButtonEvent`](
     https://developer.android.com/reference/android/media/session/MediaSession.Callback.html#onMediaButtonEvent%28android.content.Intent%29).