TPESystem/Media/MediaSupportFileFormat: Difference between revisions

 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:


===Media Supported File Format===
===Media Supported File Format===
Some tips/clues shown below can help you know why the newly-added file is not seen or cannot be played.
These tips/clues are shown below can help you know why the newly-added file is not seen or cannot be played.
For videos, usually if the thumbnail of a file cannot be generated, it cannot be shown in Gallery or Video APP.
For videos, usually if the thumbnail of a file cannot be generated, it cannot be shown in Gallery or Video APP.
Related bugis: {{bug|942078}} <br>  
Related bugis: {{bug|942078}} <br>  
MDN: [https://developer.mozilla.org/en-US/docs/How_Mozilla_determines_MIME_Types Mozilla MIME Type}<br>
 
Wikipedia: [http://en.wikipedia.org/wiki/Internet_media_type Internet Media Type] <br>
FxOS Media Type: [[FirefoxOS/MultimediaPlatform/MediaFormats|Media Formats]] <br>
QA Test Plan: [[B2G/QA/WebAPI Test Plan/Media Playback | Media Playback Test Plan]]
QA Test Plan: [[B2G/QA/WebAPI Test Plan/Media Playback | Media Playback Test Plan]] <br>




Line 13: Line 13:
Files are categorized in 3 groups, pictures, music, and videos @http://dxr.mozilla.org/mozilla-central/source/toolkit/content/devicestorage.properties  
Files are categorized in 3 groups, pictures, music, and videos @http://dxr.mozilla.org/mozilla-central/source/toolkit/content/devicestorage.properties  
You need to check if your file extension is in the following list. Otherwise it will be not recognized as media files. <br>
You need to check if your file extension is in the following list. Otherwise it will be not recognized as media files. <br>
Detail Media Type (Google Docs): [https://docs.google.com/a/mozilla.com/spreadsheets/d/1y_wrPKu2RmxLUb3Ab-CIKQwEsez07Y7cjorkPcXV5Oo/edit?usp=sharing Supported Chart] <br>


* Pictures:
* Pictures:
''*.jpe; *.jpg; *.jpeg; *.gif; *.png; *.bmp''
''*.jpe; *.jpg; *.jpeg; *.gif; *.png; *.bmp''
{| class="wikitable sortable"
|-
! Format !! Media Type !! Implemented version
|-
| .jpe .jpg .jpeg || image/jpeg ||
|-
| .gif  || image/gif ||
|-
| .png || image/png ||
|-
| .bmp || image/bmp ||
|-
|}


* Music:
* Music:
''*.mp3; *.ogg; *.m4a; *.m4b; *.m4p; *.m4r; *.3gp; *.mp4; *.m3u; *.pls; *.opus; *.amr''
''*.mp3; *.ogg; *.m4a; *.m4b; *.m4p; *.m4r; *.3gp; *.mp4; *.m3u; *.pls; *.opus; *.amr''
{| class="wikitable sortable"
|-
! Format !! Media Type !! Implemented version
|-
| .mp4 .m4r .m4a .m4b .m4p || audio/mp4 ||
|-
| .mp3 .m3u  || audio/mpeg ||
|-
| .ogg || audio/ogg ||
|-
| .opus || audio/opus ||
|-
| .3gp .amr || audio/3gpp ||
|-
| .pls || audio/x-scpls ||
|-
| .webm || audio/webm ||
|-
|}


* Videos:
* Videos:
''*.mp4; *.mpeg; *.mpg; *.ogv; *.ogx; *.webm; *.3gp; *.ogg; *.m4v;''
''*.mp4; *.mpeg; *.mpg; *.ogv; *.ogx; *.webm; *.3gp; *.ogg; *.m4v;''
{| class="wikitable sortable"
|-
! Format !! Media Type !! Implemented version
|-
| .mp4 .m4v || video/mp4 ||
|-
| .mpeg .mpg || video/mpeg ||
|-
| .ogv .ogx .ogg || video/ogg ||
|-
| .webm || video/webm ||
|-
| .3gp .3g2 || video/3gpp ||
|-
| .mp4 || video/mp4 ||
|-
| .avi || video/avi || No
|-
| || video/quicktime || No
|-
| .mkv || video/x-matroska || No
|-
| .wmv || video/x-ms-wmv || No
|-
| .flv || video/x-flv || No
|-
|}


<LI>'''MIME Type Get''' <br>
<LI>'''MIME Type Get''' <br>
Confirmed users
243

edits