How to play a video in Exoplayer using a specific display mode from the supported Display Modes

Viewed 11

I am using a Sony Xperia 1 IV mobile to play videos using Exoplayer. The phone supports video resolution of 3840 x 1644. When I get the supported display modes in exoplayer, I get 4 Modes :

  • Mode 1: 1096x2560/60.0fps
  • Mode 2: 1096x2560/120.0fps
  • Mode 3: 1644x3840/60.0fps
  • Mode 4: 1644x3840/120.0fps

By Default the video plays in Mode 2. When I try to change the preferred display mode using params.preferredDisplayModeId() as such, it doesn't work. But I am able to change to the display to mode 1 by turning off the high refresh rate (we can disable 120fps in device settings). But I am unable to do so for mode 3 and 4 which is of a higher resolution.

Is there a way to play the video in the desired resolution?

0 Answers
Related