|
|
Line 108: |
Line 108: |
|
| |
|
| The table below lists the results of <code>canPlayType(type)</code> for different browsers. It does not necessary relate to what the browsers actually ''can'' play. | | The table below lists the results of <code>canPlayType(type)</code> for different browsers. It does not necessary relate to what the browsers actually ''can'' play. |
|
| |
| '''Note: The spec has replaced "no" with "", but not all implementations have updated to reflect this yet.'''
| |
|
| |
|
| <!-- | | <!-- |
|
| |
|
| Generated with http://software.hixie.ch/utilities/js/live-dom-viewer/saved/187 | | Generated with http://software.hixie.ch/utilities/js/live-dom-viewer/saved/786 |
|
| |
|
| Save the mime types into types.txt and the results for each browser in *.txt, produce the table (sans header) with: | | Save the mime types into types.txt and the results for each browser in *.txt, produce the table (sans header) with: |
|
| |
|
| $ paste types.txt firefox.txt safari.txt chrome.txt | awk -F\\t '{printf "| <code>%s</code>\n| %s\n| %s\n| %s\n|-\n", $1, $2, $3, $4}' | sed 's/| ""/| style="background:LightPink" | ""/;s/| "no"/| style="background:LightPink" | "no"/;s/| "maybe"/| style="background:SkyBlue" | "maybe"/;s/| "probably"/| style="background:GreenYellow" | "probably"/' | | $ paste types.txt opera.txt firefox.txt chromium.txt safari.txt | awk -F\\t '{printf "| <code>%s</code>\n| %s\n| %s\n| %s\n|-\n", $1, $2, $3, $4}' | sed 's/| ""/| style="background:LightPink" | ""/;s/| "no"/| style="background:LightPink" | "no"/;s/| "maybe"/| style="background:SkyBlue" | "maybe"/;s/| "probably"/| style="background:GreenYellow" | "probably"/' |
|
| |
|
| --> | | --> |
Line 123: |
Line 121: |
| {| style="text-align:center" | | {| style="text-align:center" |
| ! MIME | | ! MIME |
| ! width="100" | Firefox 3.5 <!-- Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 (.NET CLR 3.5.30729) --> | | ! width="100" | Opera 11 <!-- Opera/9.80 (X11; Linux i686; U; en) Presto/2.7.62 Version/11.00 --> |
| ! width="100" | Safari 4 <!-- Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9.1 --> | | ! width="100" | Firefox 4 <!-- Mozilla/5.0 (X11; Linux i686; rv:2.0b9) Gecko/20100101 Firefox/4.0b9 --> |
| ! width="100" | Chrome 3 <!-- Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.3 Safari/532.0 --> | | ! width="100" | Chromium 9 <!-- Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.595.0 Safari/534.13 --> |
| |-
| | ! width="100" | Safari 5 <!-- Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4 --> |
| | <code>application/ogg</code>
| | |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>application/ogg; codecs=bogus</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:LightPink" | ""
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>application/mp4</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:LightPink" | ""
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>application/mp4; codecs=bogus</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:LightPink" | ""
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>application/octet-stream</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:LightPink" | ""
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/3gpp</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:LightPink" | ""
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/3gpp2</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:LightPink" | ""
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/aac</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/x-aac</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/aiff</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/x-aiff</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/ac3</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/x-ac3</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/basic</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/flac</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:LightPink" | ""
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/x-flac</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:LightPink" | ""
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/mid</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/midi</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/x-midi</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/mpeg</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/x-mpeg</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/mpegurl</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/x-mpegurl</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/mp4</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:SkyBlue" | "maybe"
| |
| |-
| |
| | <code>audio/mp4; codecs=bogus</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:SkyBlue" | "maybe"
| |
| |-
| |
| | <code>audio/ogg</code>
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| | style="background:SkyBlue" | "maybe"
| |
| |-
| |
| | <code>audio/ogg; codecs=bogus</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:LightPink" | ""
| |
| | style="background:SkyBlue" | "maybe"
| |
| |-
| |
| | <code>audio/wav</code>
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/wav; codecs=0</code>
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/wav; codecs=1</code>
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/wav; codecs=2</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/wave</code>
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/wave; codecs=0</code>
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/wave; codecs=1</code>
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:LightPink" | ""
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/wave; codecs=2</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:LightPink" | ""
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/x-wav</code>
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/x-wav; codecs=0</code>
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/x-wav; codecs=1</code>
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/x-wav; codecs=2</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/x-pn-wav</code>
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/x-pn-wav; codecs=0</code>
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/x-pn-wav; codecs=1</code>
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:LightPink" | ""
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>audio/x-pn-wav; codecs=2</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:LightPink" | ""
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>video/3gpp</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>video/3gpp2</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>video/avi</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>video/mpeg</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>video/x-mpeg</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>video/mp4</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:SkyBlue" | "maybe"
| |
| |-
| |
| | <code>video/mp4; codecs=bogus</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:SkyBlue" | "maybe"
| |
| |-
| |
| | <code>video/msvideo</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>video/x-msvideo</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>video/quicktime</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>video/ogg</code>
| |
| | style="background:SkyBlue" | "maybe"
| |
| | style="background:LightPink" | ""
| |
| | style="background:SkyBlue" | "maybe"
| |
| |-
| |
| | <code>video/ogg; codecs=bogus</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:LightPink" | ""
| |
| | style="background:SkyBlue" | "maybe"
| |
| |-
| |
| | <code>video/mp4; codecs="avc1.42E01E, mp4a.40.2"</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:GreenYellow" | "probably"
| |
| |-
| |
| | <code>video/mp4; codecs="avc1.58A01E, mp4a.40.2"</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:GreenYellow" | "probably"
| |
| |-
| |
| | <code>video/mp4; codecs="avc1.4D401E, mp4a.40.2"</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:GreenYellow" | "probably"
| |
| |-
| |
| | <code>video/mp4; codecs="avc1.64001E, mp4a.40.2"</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:GreenYellow" | "probably"
| |
| |-
| |
| | <code>video/mp4; codecs="mp4v.20.8, mp4a.40.2"</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:SkyBlue" | "maybe"
| |
| |-
| |
| | <code>video/mp4; codecs="mp4v.20.240, mp4a.40.2"</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:SkyBlue" | "maybe"
| |
| |-
| |
| | <code>video/3gpp; codecs="mp4v.20.8, samr"</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:LightPink" | ""
| |
| |-
| |
| | <code>video/ogg; codecs="theora, vorbis"</code>
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:LightPink" | ""
| |
| | style="background:GreenYellow" | "probably"
| |
| |-
| |
| | <code>video/ogg; codecs="theora, speex"</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:LightPink" | ""
| |
| | style="background:SkyBlue" | "maybe"
| |
| |-
| |
| | <code>audio/ogg; codecs=vorbis</code>
| |
| | style="background:GreenYellow" | "probably"
| |
| | style="background:LightPink" | ""
| |
| | style="background:GreenYellow" | "probably"
| |
| |-
| |
| | <code>audio/ogg; codecs=speex</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:LightPink" | ""
| |
| | style="background:SkyBlue" | "maybe"
| |
| |-
| |
| | <code>audio/ogg; codecs=flac</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:LightPink" | ""
| |
| | style="background:SkyBlue" | "maybe"
| |
| |-
| |
| | <code>video/ogg; codecs="dirac, vorbis"</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:LightPink" | ""
| |
| | style="background:SkyBlue" | "maybe"
| |
| |-
| |
| | <code>video/x-matroska; codecs="theora, vorbis"</code>
| |
| | style="background:LightPink" | "no"
| |
| | style="background:LightPink" | ""
| |
| | style="background:LightPink" | ""
| |
| |- | | |- |
| |} | | |} |