ExoPlayer 2 - Track selection
Olly Woodman

In my case I am adding three different urls 1) 720p url 2) 480p url 3) 360p url


MergingMediaSource mergedSource =
new MergingMediaSource(mediaSources);

In adaptive streaming its auto selecting url.

  1. I want to play only 720p url for first time, so how should I restrict that?
  2. I want to change source from 720p url to 320p url, how can I manually change media source from merging media source?
  3. In adaptive factory how can I get current track index?

I tried using FixedTrackSelection.Factory but no luck.

Show your support

Clapping shows how much you appreciated Sandesh Lasnapure ’s story.