Home > HTML5, Video, Web > HTML5 Video

HTML5 Video

HTML5 video support means Flash is no longer the default choice when distributing video over the web. Native video support means:

  • No need for 3rd party plug-ins.
  • Cross-browser compliance
  • Current specification does not declar a standard video codec (H.264, VP8, OGG Theora)

<video src=”myVideo.mp4″ width=”320″ height=”240″ controls preload=”false”></video>

  • controls: adds play, pause, button, volume slider

To ensure a browser will play the video, the video can be defined with multiple video sources using different codecs:

  • <video width=”320″ height=”240″ controls preload=”false”>
    <source src=”video1.mp4″ type=”video/mp4″ />
    <source src=”video1.ogv” type=”video/ogg” />
Categories: HTML5, Video, Web Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: