Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/blundell/videoratioproblemperdevice

Issue with the MediaPlayer not playing videos at the correct ratio
https://github.com/blundell/videoratioproblemperdevice

Last synced: 24 days ago
JSON representation

Issue with the MediaPlayer not playing videos at the correct ratio

Awesome Lists containing this project

README

        

VideoRatioProblemPerDevice
==========================

~~Issue with the Samsung Galaxy S3 not playing videos at the correct ratio~~

Issue with the MediaPlayer not retrieving the correct video width x height.

**I have now updated this repo with a fix for this issue by hard coding the WxH.**
Obviously not the best fix because I still haven't worked out why it is not returning this WxH from the MediaPlayer.

Here is the video information, as you can see the WxH is 640x480 but the recommended size is 853x480
(I would say the recommended size is the correct size).

![5](http://img.photobucket.com/albums/v230/blundell/Untitled-4_zpsad1c4313.png)

I now think all the screenshots below had an incorrect ratio,
just by coincidence the Galaxy Nexus was pretty close to correct! but not quite.

~~Galaxy Nexus Full Screen correct ratio:~~

![1](http://img.photobucket.com/albums/v230/blundell/gn_correct_ratio_zpsbdca7c75.png)

~~Galaxy S3 Full Screen incorrect ratio:~~

![2](http://img.photobucket.com/albums/v230/blundell/s3_wrong_ratio_zps7f9c0a76.png)

~~Galaxy Nexus Half Screen correct ratio:~~

![3](http://img.photobucket.com/albums/v230/blundell/gn_half_correct_ratio_zps341dfcfe.png)

~~Galaxy S3 Half Screen correct ratio (or is it?):~~

![4](http://img.photobucket.com/albums/v230/blundell/s3_half_correct_ratio_zps025aca6f.png)