public final class

MediaPlayer.TrackInfo

extends SessionPlayer.TrackInfo

 java.lang.Object

androidx.versionedparcelable.CustomVersionedParcelable

androidx.media2.common.SessionPlayer.TrackInfo

↳androidx.media2.player.MediaPlayer.TrackInfo

Overview

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

Summary

Fields
from SessionPlayer.TrackInfoMEDIA_TRACK_TYPE_AUDIO, MEDIA_TRACK_TYPE_METADATA, MEDIA_TRACK_TYPE_SUBTITLE, MEDIA_TRACK_TYPE_UNKNOWN, MEDIA_TRACK_TYPE_VIDEO
Methods
public MediaFormatgetFormat()

Gets the of the track.

from SessionPlayer.TrackInfoequals, getId, getLanguage, getTrackType, hashCode, isSelectable, onPostParceling, onPreParceling, toString
from java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait

Methods

public MediaFormat getFormat()

Gets the of the track. If the format is unknown or could not be determined, null is returned.