Check If Android Device Support 4k Video?
Solution 1:
First of all, you have to remember 4k is just a resolution, but you have to also remember about bitrate.
Here's a method to test whether resolution/bitrate combination is achievable on a certain device:
booleanareSizeAndRateSupported(int width, int height, double frameRate)
There's also:
isSizeSupported(int width, int height)
The only downside of these methods is that it's supported from API level 21.
You can also check codec capabilities using this method:
MediaCodecInfo.VideoCapabilities.getVideoCapabilities()
But as far as I know, they can return lower resolution than actually supported.
From the other hand, in your case, devices below android lollipop most likely aren't fast enough to play 4k video. Or even if they can, their resolution is too low to actually get any benefit from 4k resolution.
So, in my opinion, the most elegant solution is to assume 4k is not supported below android 5.0 and use a method from above check whether it's supported on android 5.0+.
Solution 2:
You can download this app and get batter performance then other app this app will supports all formate of videos
aatmanirbhar bharat app https://play.google.com/store/apps/details?id=com.hdvideoplayer.elogic
Post a Comment for "Check If Android Device Support 4k Video?"