8

i am creating IPTV app. In this use Exoplayer for video streaming and now requirement is change Quality of video at runtime (Auto, 720p, 1080p, HD) like Youtube.

i have found 2-3 solution but i don't understand how to implement that.

enter image description here

Ankit Dubariya
  • 918
  • 7
  • 17

1 Answers1

2

ExoPlayer will do this automatically if the requirement is simply to match the bitrate/quality to the device capabilities and current network conditions.

If you actually want to allow the user to select it manually, that is also supported using the track selector functionality in Exoplayer2:

The demo app available in GitHub includes TrackSelector functionality which you can look at and modify as you need - most apps just use the DefaultTrackSelector: https://github.com/google/ExoPlayer

Mick
  • 19,483
  • 1
  • 40
  • 91