See the media player tutorial for more information. MediaPlayerThe MediaPlayer can be used to play audio files. Media Player (Core) List of types: MediaPlayer Version 1.0.3 of media2-:1.0.Press on the image to return to the main documentation page. Fixed a bug where MediaController#setVolumeTo() couldĬhange wrong stream volume.SessionResult will preserve the MediaItem from PlayerResult ( I927b0, b/154885520). Fixed timing issue when updating metadata ( I45567, b/143999611).Version 1.1.0-alpha01 contains these commits. Fix parceling of SessionPlayer.TrackInfoĪdia2:media2-*:1.1.0-alpha01 is released.Notify PlaybackStateCompat when a session’s current media item changed.Disable progress bar of MediaControlView when seek command is not allowed.Fix NPE for MediaController.getPlaylist().Add to manifest for media and media2 for Android 11.Fix crash when sending large data between a session and a controller.Send metadata and buffering state when connected.Reset current position when media item changes.Version 1.1.0-beta01 contains these commits. This is useful for Android Auto apps in particular. Added BIND_INCLUDE_CAPABILITIES flag when binding to the service, which allows headless media applications to access the location if they have the permission.Fixed an issue where media2 MediaSession did not set the active queue item id to PlaybackStateCompat ( aosp/1421652).Fixed an issue where MediaSessionImplBase#isClosed() could crash when calling getCurrentControllerInfo() on a released MediaSessionCompat.Fixed an issue where MediaController notified callbacks while holding a lock, leading to potential deadlocks ( I76c56.Version 1.1.0-rc01 contains these commits. Exposed MediaSessionCompat.Token via MediaSession#getSessionCompatToken()Īdia2:media2-*:1.1.0-rc01 is released.Better support of interoperability with AndroidX media library.Added more APIs for handling media tracks.Make the media notification be updated when the current media item is changed.Īdia2:media2-*:1.1.0 is released.Version 1.1.3 contains these commits.Īdia2:media2-*:1.1.2 is released. Fix interop with controller compat right after session is createdĪdia2:media2-*:1.1.3 is released.Make notification updated when current media item is changed.Allow onCurrentMediaItemChanged to take null media item.Reset the player when there are no playable items.Fix a deadlock issue caused by unnecessary synchronized blocks.Version 1.2.0-alpha01 contains these commits. Version 1.2.0-beta01 contains these commits.Īdia2:media2-*:1.2.0-alpha01 is released. Fixed ANR when dismissing media notification ( Ifdcc2, b/148011394)Īdia2:media2-*:1.2.0-beta01 is released.Version 1.2.0-rc01 contains these commits. Added MEDIA_URI_PATH_SET_MEDIA_URI and MEDIA_URI_QUERY_URI in MediaConstantsĪdia2:media2-*:1.2.0-rc01 is released.Support interoperability with AndroidX media of (prepare|play)From(MediaId|Uri|Search).Fix check for custom Parcelables when targeting API 33.Īdia2:media2-*:1.2.0 is released. You can add your vote to an existing issue byįor more information. In this library before you create a new one. Let us know if you discover new issues or have Implementation("dia2:media2-player:$media2_version")įor more information about dependencies, see Add Build Dependencies. Implementation("dia2:media2-widget:$media2_version") Implementation("dia2:media2-session:$media2_version") Implementation "dia2:media2-player:$media2_version" optional - Implementation of a SessionPlayer Implementation "dia2:media2-widget:$media2_version" optional - UI widgets for VideoView and MediaControlView Implementation "dia2:media2-session:$media2_version"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |