Change quality of video streaming in ExoPlayer
Asked Answered
G

1

9

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

Goofy answered 2/6, 2019 at 15:40 Comment(0)
P
3

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

Palish answered 5/6, 2019 at 12:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.