Google is committed to advancing racial equity for Black communities. See how.

TrackInfo

class TrackInfo : SessionPlayer.TrackInfo
androidx.media2.common.SessionPlayer.TrackInfo
   ↳ androidx.media2.player.MediaPlayer.TrackInfo

Class for the player to return each audio/video/subtitle track's metadata.

Summary

Inherited constants
Public methods
MediaFormat?

Inherited functions

Public methods

getFormat

@Nullable fun getFormat(): MediaFormat?