Class TracksInfo

  • All Implemented Interfaces:
    Bundleable

    public final class TracksInfo
    extends Object
    implements Bundleable
    Information about groups of tracks.
    • Method Detail

      • isTypeSupportedOrEmpty

        public boolean isTypeSupportedOrEmpty​(@com.google.android.exoplayer2.C.TrackType int trackType)
        Returns true if at least one track of type trackType is supported or if there are no tracks of this type.
      • isTypeSupportedOrEmpty

        public boolean isTypeSupportedOrEmpty​(@com.google.android.exoplayer2.C.TrackType int trackType,
                                              boolean allowExceedsCapabilities)
        Returns true if at least one track of type trackType is supported or if there are no tracks of this type.
        Parameters:
        allowExceedsCapabilities - Whether to consider the track as supported if it has a supported MIME type, but otherwise exceeds the advertised capabilities of the device. For example, a video track for which there's a corresponding decoder whose maximum advertised resolution is exceeded by the resolution of the track. Such tracks may be playable in some cases.
      • isTypeSelected

        public boolean isTypeSelected​(@com.google.android.exoplayer2.C.TrackType int trackType)
        Returns true if at least one track of the type trackType is selected for playback.
      • equals

        public boolean equals​(@Nullable
                              Object other)
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toBundle

        public Bundle toBundle()
        Description copied from interface: Bundleable
        Returns a Bundle representing the information stored in this object.
        Specified by:
        toBundle in interface Bundleable