Informasi Sains    
   
Daftar Isi
(Sebelumnya) Comparison of layout engines ( ...Comparison of layout engines ( ... (Berikutnya)

Perbandingan -- layout engines (HTML5 media)

The HTML5 draft specification defines several tags which allow video and audio to be included natively and semantically in HTML markup. This page compares support for aspects of this specification among layout engines.

Contents

Explanation of the tables

Engine nomenclature

Rather than the names of web browsers, the names of the underlying engines are used. The browsers that use the various engines are listed below.

Layout engineRelease versionPreview versionUsed by
Amaya11.3.111.3-preAmaya
Gecko19.020.0All Mozilla software, including Firefox; SeaMonkey and Galeon; Camino; K-Meleon; Flock (up to 2.x); Debian IceWeasel; GNU IceCat (formerly GNU IceWeasel); Icedove, Iceape and Iceowl; Fennec. Also used by the Maple platform in 2010 and 2011 Samsung "SmartTV" devices which are based on the build used in Firefox 3.0.
KHTML N/AKonqueror
Presto2.10.2292.10.238Opera; Opera Mobile, Nintendo DS & DSi Browser; Internet Channel
Tasman(IE 5.2.3 for Mac)none (aborted in 2003)Internet Explorer 5+ for Mac OS X
Trident6.0 (IE 10)6.0 (IE 10)Internet Explorer and other Internet Explorer shells like Maxthon (Microsoft Windows operating systems only), Windows Phone 8
WebKit534.20r146740Tizen (both OS and browser), Safari (both desktop and mobile), Google Chrome, Maxthon 3, Shiira, iCab 4, OmniWeb 5.5+, Web, Adobe AIR, Midori, Adobe Dreamweaver CS4 and CS5, Android browser, Palm webOS browser, Symbian S60 browser, OWB, Steam, Rekonq, Arora, Flock (version 3+), RockMelt, Dolphin Browser, Sleipnir, Konqueror, rekonq. Used by the LG Smart TV platform to enable web content on TVs.

In Konqueror, the user can switch layout engine.

Values

Values indicate the level of support in the most recent version of the layout engine, or (if a version number is given) in the specified version. Version numbers without any other value indicate the version at which the layout engine first fully supported the feature.

ValueMeaning
YesIndicates that the layout engine fully supports this property/element when valid values are used.
NoIndicates that the property/element is completely ignored.
PartialIndicates that the property/element is understood, but that not all values are supported. Supported values are implemented correctly.
IncorrectIndicates that the property/element is understood, but that it is not implemented correctly in all cases.
ExperimentalIndicates that the property/element is understood, but supported under an alternate name. May be incomplete or buggy.
DroppedIndicates that the property/element is no longer supported.
Nightly buildIndicates that the property/element is supported to some extent in an experimental/nightly build. Future support is expected.
DependsIndicates that the property/element is supported only on certain platforms, or if certain settings are configured.

Element attributes

Media elements allow some attributes to be set directly in the tag.

TridentGeckoWebKitPresto
<audio> attributes
src5.0[t 1]1.9.15252.5
preload2.0[note 1][g 1]Experimental[note 1]
autoplay1.9.12.5
loop11.0[g 2]
controls1.9.1
<video> attributes
src5.0[t 1]1.9.15252.5
preload2.0[note 1][g 1]Experimental[note 1]
autoplay1.9.12.5
loop11.0[g 2]
controls1.9.1
poster1.9.2[g 3]
width1.9.1
height
<source> attributes
src5.0[t 1]1.9.1525[w 1]2.5
type
media15.0[g 4]
<track> attributes
kind6.0[t 2]No[g 5]Yes[w 2]No
label
src
srclang

DOM attributes

Some attributes related to media elements are exposed in the DOM.

TridentGeckoWebKitPresto[p 1]
Error state
MediaError5.0 [t 3]1.9.1 ?2.5
Network state
src5.0[t 1]1.9.1 ?2.5
currentSrc
networkState
preload2.0[note 1][g 1]No
buffered2.0[g 6]
load()1.9.12.5
canPlayType()533[w 3]
Ready state
readyState5.0[t 1]1.9.1 ?2.5
seeking
Playback state
currentTime5.0[t 1]1.9.1 ?2.5
startTimeNo
duration1.9.1
paused
defaultPlaybackRate20.0[g 7]No
playbackRate
played15.0[g 8]
seekable8.0[g 9]
ended1.9.12.5
autoplay
loop11.0[g 2]
play()1.9.1
pause()
Controls
controls5.0[t 1]1.9.1 ?2.5
volume
muted

DOM events

Media elements introduce new events to handle conditions which apply only to those elements, such as pausing/resuming.

TridentGecko[g 10]WebKitPresto
loadstart5.0[t 4]1.9.1 ? ?
progress
suspend1.9.2
abort1.9.1
error
emptied
stalled8.0[g 11]
play1.9.1
pause
loadedmetadata
loadeddata
waiting
playingNo
canplay1.9.1
canplaythrough
seeking
seeked
timeupdate
ended
ratechange
durationchange
volumechange

Video format support

This table documents support for video codecs by the <video> element.

TridentGeckoWebKitPresto
Ogg TheoraManual install[note 2]1.9.1[g 12]Depends[note 3]2.5
H.2645.0[t 7]No[g 13]Depends (525)[note 3][w 9]Depends[note 4]
WebM VP8Manual install[note 5][note 6]

[note 7]

2.0[g 14][g 15]Depends (534)[w 10]2.6.30[p 3][p 4][p 5]

Audio format support

This table documents support for audio codecs by the <audio> element.

TridentGeckoWebKitPresto
Ogg VorbisNo1.9.1[g 12]Depends[note 3]2.5
WAV PCM525[note 3]2.0
MP35.0[t 11]No[g 16]Depends[note 4]
AACNo
SpeexNoNo[g 17]Depends[note 3]No
OpusNo15.0[g 18]Depends[note 3]No

See also

Notes

  1. ^ a b c d e Supports preload under the older name autobuffer.
  2. ^ Supported if OpenCodecs is installed. Also possible with Google Chrome Frame[t 5][t 6]
  3. ^ a b c d e f WebKit on Mac OS X uses QuickTime, and supports whatever formats that does.[w 4] By default, this includes H.264, MP3, AAC and WAV PCM, but not Ogg Theora or Vorbis. These are supported only if installed as third-party codecs, such as XiphQT. Google Chrome supports Theora, Vorbis, WebM, and MP3.[w 5] Chromium can be compiled to support anything that ffmpeg supports, and may or may not support patented formats such as H.264 and MP3.[w 6] Origyn Web Browser for MorphOS uses also FFMpeg for playing HTML5 media content.[w 7][w 8]
  4. ^ a b On Linux and FreeBSD, Presto 2.5 uses the system version of the GStreamer library, and is able to play any formats supported by GStreamer (including H.264, MP3, AAC and others, if codecs are installed). On other platforms, it only supports Ogg Theora for video; and Ogg Vorbis and WAVE PCM for sound.[p 2]
  5. ^ Google released a WebM component for Media Foundation to allow the playback of WebM files in IE9 through the standard HTML5 <video> tag.[t 8]
  6. ^ Possible if the user has installed a VP8 codec on Windows for IE9.[t 9]
  7. ^ Internet Explorer 9 will support VP8 only if the appropriate codecs are installed on the user's computer.[t 10]

References

Trident references

  1. ^ a b c d e f g Internet Explorer Platform Preview Guide for Developers, Microsoft, http://msdn.microsoft.com/en-us/ie/ff 468705.aspx
  2. ^ track element, Microsoft, http://msdn.microsoft.com/en-us/libra ry/ie/hh772556
  3. ^ MSDN HTMLMediaError Object for Internet Explorer 9, Microsoft, http://msdn.microsoft.com/en-us/libra ry/gg130962(v=VS.85).aspx
  4. ^ , Microsoft, http://msdn.microsoft.com/en-us/libra ry/ff975073
  5. ^ Kevin Carle and Chris Zacharias (2010-01-20), Introducing YouTube HTML5 Supported Videos, Official YouTube Blog, http://youtube-global.blogspot.com/20 10/01/introducing-youtube-html5-suppo rted.html, retrieved 2010-03-12
  6. ^ Dougherty, Brad (2010-01-21), Try our new HTML5 player!, Vimeo Staff Blog, http://vimeo.com/blog:268, retrieved 2010-03-12
  7. ^ McCracken, Harry (2010-03-16), Microsoft Previews the Revamped Internet Explorer 9 Platform, Technologizer, http://technologizer.com/2010/03/16/i e9-platform-preview/
  8. ^ Jazayeri, Mike (2011-01-14), More about the Chrome HTML Video Codec Change, Google, http://blog.chromium.org/2011/01/more -about-chrome-html-video-codec.html
  9. ^ Hachamovitch, Dean (2010-05-19), Another Follow-up on HTML5 Video in IE9, Microsoft, http://blogs.msdn.com/ie/archive/2010 /05/19/another-follow-up-on-html5-vid eo-in-ie9.aspx
  10. ^ Hachamovitch, Dean (2010-05-19), Another Follow-up on HTML5 Video in IE9, Microsoft, http://blogs.msdn.com/b/ie/archive/20 10/05/19/another-follow-up-on-html5-v ideo-in-ie9.aspx
  11. ^ Branscombe, Mary (2010-03-16), Microsoft previews Internet Explorer 9, TechRadar UK, http://www.techradar.com/news/interne t/web/microsoft-steps-towards-faster- internet-explorer-9-677263

Gecko references

  1. ^ a b c Bug 548523 - HTML 5 media attribute 'autobuffer' has been renamed to 'preload', Mozilla, https://bugzilla.mozilla.org/show_bug .cgi?id=548523
  2. ^ a b c Bug 449157 - Implement the looping attributes in media elements, Mozilla, https://bugzilla.mozilla.org/show_bug .cgi?id=449157
  3. ^ Bug 449156 - Implement the poster attribute for the <video> element, Mozilla, https://bugzilla.mozilla.org/show_bug .cgi?id=449156
  4. ^ Bug 449363 - Support media attribute of <source> elements, Mozilla, https://bugzilla.mozilla.org/show_bug .cgi?id=449363
  5. ^ Bug 629350 - Implement the track element, Mozilla, https://bugzilla.mozilla.org/show_bug .cgi?id=629350
  6. ^ Bug 462957 - Implement nsIDOMHTMLMediaElement::GetBuffered(), Mozilla, https://bugzilla.mozilla.org/show_bug .cgi?id=462957
  7. ^ Bug 495040 - Implement playbackRate, Mozilla, https://bugzilla.mozilla.org/show_bug .cgi?id=495040
  8. ^ Bug 462959 - Implement nsIDOMHTMLMediaElement::GetPlayed(), Mozilla, https://bugzilla.mozilla.org/show_bug .cgi?id=462959
  9. ^ Bug 462960 - Implement nsIDOMHTMLMediaElement::GetSeekable(), Mozilla, https://bugzilla.mozilla.org/show_bug .cgi?id=462960
  10. ^ Using audio and video in Firefox - Media events, Mozilla, https://developer.mozilla.org/En/Usin g_audio_and_video_in_Firefox#Media_ev ents
  11. ^ Bug 481082 - Video controls should listen for |stalled| event, Mozilla, https://bugzilla.mozilla.org/show_bug .cgi?id=481082
  12. ^ a b Shepherd, Eric (2010-01-28), Media formats supported by the audio and video elements, Mozilla, https://developer.mozilla.org/En/Medi a_formats_supported_by_the_audio_and_ video_elements, retrieved 2009-10-11
  13. ^ Bug 541286 - MPEG2 and MPEG4/H264 support for HTML5 <video>, Mozilla, https://bugzilla.mozilla.org/show_bug .cgi?id=541286
  14. ^ Bug 566243 - Merge mozilla-webmedia repository to mozilla-central, Mozilla, https://bugzilla.mozilla.org/show_bug .cgi?id=566243
  15. ^ Firefox WebM Builds, Mozilla, http://nightly.mozilla.org/webm/
  16. ^ Bug 562730 - Reproducing Mp3 files with html5, Mozilla, https://bugzilla.mozilla.org/show_bug .cgi?id=562730
  17. ^ Bug 476752 - support the speex voice codec in <audio> and <video> elements, Mozilla, https://bugzilla.mozilla.org/show_bug .cgi?id=476752
  18. ^ Bug 674225 - support the Opus voice codec in <audio> and <video> elements, Mozilla, https://bugzilla.mozilla.org/show_bug .cgi?id=674225

WebKit references

Presto references

External links

(Sebelumnya) Comparison of layout engines ( ...Comparison of layout engines ( ... (Berikutnya)