Get best possible video resolution

Hi guys,
is it possible to get the best possible video resolution of the device?
I made a video player that downloads the content after selecting it but as an example the Samsung Galaxy S6 support 4k while the S4 only supports HD. Is there some way to get this resolution?

How’s this?

As long as I know it is possible to play a video that is bigger then the screen resolution.
Movie textures are a good example. It is possible to play as many videos at the same time as long the max. resolution is reached. The Galaxy S6 is able to play 4k so it is possible to play 2 2k videos at the same time.

Another thing to point out is this:

Oh. Does this one work?

I see this a pretty old post, but… did you find a solution? I’m trying to run 360º videos in my app and I would like to play the best possible resolution per device. So far, haven’t been able to find out how to do so… when the resolution is too high, I just get a black screen in non-compatible devices…

For iOS, you’re dealing only with first party devices and can reason more definitively about the resolution of the device you’re running on.

For Android, you can try pulling the display metrics from the Java side: Android Display Metrics in Unity 3D – ginik