mirror of
https://github.com/androidx/media.git
synced 2025-05-12 18:19:50 +08:00
Fix deprecated reference to Player.EventListener in the dev guide
#minor-release PiperOrigin-RevId: 417961565
This commit is contained in:
parent
086688ed3c
commit
fa419f21a9
@ -6,7 +6,7 @@ title: Retrieving metadata
|
|||||||
|
|
||||||
The metadata of the media can be retrieved during playback in multiple ways. The
|
The metadata of the media can be retrieved during playback in multiple ways. The
|
||||||
most straightforward is to listen for the
|
most straightforward is to listen for the
|
||||||
`Player.EventListener#onMediaMetadataChanged` event; this will provide a
|
`Player.Listener#onMediaMetadataChanged` event; this will provide a
|
||||||
[`MediaMetadata`][] object for use, which has fields such as `title` and
|
[`MediaMetadata`][] object for use, which has fields such as `title` and
|
||||||
`albumArtist`. Alternatively, calling `Player#getMediaMetadata` returns the same
|
`albumArtist`. Alternatively, calling `Player#getMediaMetadata` returns the same
|
||||||
object.
|
object.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user