Class FilteringMediaSource

  • All Implemented Interfaces:
    MediaSource

    @Deprecated
    public class FilteringMediaSource
    extends WrappingMediaSource
    Deprecated.
    com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
    A MediaSource that filters the available track types.

    Media sources loading muxed media, e.g. progressive streams with muxed video and audio, are still likely to parse all of these streams even if the tracks are not made available to the player.