title: Maximum playable video resolution on Android
body: <p>Is there a way to extract the maximum video resolution Android can play? We have MP4 files we download from the camera and I would like to show some error to the user before playing. Because if the resolution is too high, Android will just give you a black screen.</p>
  
  <p>I tried using the camcorder profile, but this one is giving me most of the time 1920x1080 even on devices that can handle higher resolutions such as the Galaxy S5.</p>
  
  <pre><code> CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH);
  </code></pre>
  
  <p>Any help is really appreciated!</p>