damontecres / StashAppAndroidTV

Android TV App for Stash
GNU Affero General Public License v3.0
74 stars 4 forks source link

[FEA] - Resolution switching #235

Open p45L opened 4 months ago

p45L commented 4 months ago

Description

Resolution switching based on resolution of video. Refresh switching would be nice too.

damontecres commented 4 months ago

What do you by "resolution switching based on resolution of video"?

And I have to research more about refresh rate switching.

damontecres commented 4 months ago

Some docs on refresh rate switching for my future reference:

p45L commented 4 months ago

What do you by "resolution switching based on resolution of video"?

And I have to research more about refresh rate switching.

Basically like refresh switching but for the resolution of the video. So if a video is 1080 then it will set the screen to 1080p resolution. This is done so the display can do the upscaling and not the device.

damontecres commented 4 months ago

From my research it seems that resolution switching on a per-app basis is not well supported or documented. Supposedly, Plex and Kodi use some old/unsupported APIs to do it, but there's references to Android 12 supporting it somehow. But I cannot find any obvious APIs.

I think a better way to ensure your TV does the upscaling would be to globally set the device resolution on the Android TV device: Settings->Device Preferences->Display & Sound->Resolution. But some devices don't support this.

So with all that said, I don't think I plan to pursue resolution switching.