The control attribute is for adding play, pause, and volume controls.It is also always a good idea to include the width and height attributes. Insert content between the <video> and </video> tags for browsers that do not support the video element which uses an Ogg file, and will work in Firefox, Opera and Chrome. To make the video work in Safari, the video file must be of type MPEG4. The video element allows multiple source elements. Source elements can link to different video files. The browser will use the first recognized format.

<video width=”320″ height=”240″ controls=”controls”>
<source src=”movie.ogg” type=”video/ogg” />
<source src=”movie.mp4″ type=”video/mp4″ />
Your browser does not support the video tag.
</video>

 

<video src=”http://thejollybutcher.com/wp-content/uploads/video/gmg.ogv” controls>
Your browser does not support the <code>video</code> element.
</video>

Check it out with Safari browser

Internet Explorer 8 does not support the video element. In IE 9, there will be support for video element using MPEG4.

Attribute Value Description
autoplay autoplay Specifies that the video will start playing as soon as it is ready
controls controls Specifies that controls will be displayed, such as a play button.
height pixels Specifies the height of the video player
loop loop Specifies that the media file will start over again, every time it is finished.
preload preload Specifies that the video will be loaded at page load, and ready to run. Ignored if “autoplay” is present.
src url Specifies that the URL of the video to play
width pixels Specifies the width of the video player

encode your videos to ogv/ogg format

Use Firefogg on your site

To use Firefogg on your site, you have to use the Firefogg Javascript api. There are two modes you can integrate Firefogg. one uploads data while the video is encoded. The other encodes the video and starts a regular multipart HTTP POST after that.

Example encoding and uploading at the same time
Example sending a multipart POST request once encoding is done

Browser plugin: http://firefogg.org

OGG Video Converter converts MP4 files to OGV quickly. With a simple and user-friendly interface, OGG Video Converter makes MP4 to OGV conversion quite easy.

OGG Video Converter is a professional and easy-to-use video conversion software that converts video files at fast speed and high quality. The software converts any formats to popular video formats such as 3G2, 3GP, OGG, OGV, MP4, VOB, H.264, etc. It could convert ASF to OGG, WMV to OGM, AVI to OGG, TS to OGG, FLV to OGG, and so on.

OGG Video Converter supports batch conversion and, is full compatible with 32-bit and 64-bit editions of Vista and Windows 7.

MP4 to OGV Software is compatible with Windows 7, Vista, 2008, 2003, and 2000
Download: http://www.ogg-converter.net/ogv/convert-mp4-to-ogv.htm

http://thejollybutcher.com/wp-content/uploads/video/gmg.ogv

Print this entry