1

i am using exoplayer library in my android tv application, i need to make the resolution of the video better , i tried to set setMAxVideoSize(1920,1080) but not working, also trying to set the minimunBitrate value to Integer.Max_value but not working also

below is my code

    player.setTrackSelectionParameters(
            player.getTrackSelectionParameters()
                    .buildUpon()
                    .setPreferredAudioLanguages(languages)
                    .setPreferredTextLanguage("ar")
                    .setMaxVideoSize(1920, 1080)
                    .setMinVideoSize(1920, 1080)
                    .setMinVideoBitrate(Integer.MAX_VALUE)
                    .setMaxVideoBitrate(Integer.MAX_VALUE)
                    .build());
Malo
  • 1,232
  • 2
  • 17
  • 28

1 Answers1

0

Just to clarify, what's the resolution of the actual video that you're trying do display? Is it actually 1080p? And what's the bitrate?

No matter what settings you use, you can't make it have a higher resolution or bitrate than what the video actually has

user496854
  • 6,461
  • 10
  • 47
  • 84
  • Yes the video has resolution 1920 1080 retuned by gettrackgroup and track format the problem is the code above doesnt make this resolution selected by default ... – Malo Oct 20 '22 at 21:36
  • 1
    can i play high resolution to low or medium resolution video in exoplayer – karan Dec 08 '22 at 07:07
  • Can i make thr resolution lower than the actual video resolutio ?? I tried setvideoSize but it keep load the bigger resolution...i need to lower it @user496854 – Malo Feb 03 '23 at 12:44