HTML5 video and audio elements
Two of the most anticipated HTML5 features are now supported in Internet Explorer 9: the elements of video and audio. These two elements are discussed in the Embedded Content defines the HTML5 specification and described without a specific video format. Internet Explorer 9 support playback of H.264 video over the HTML5 video tag and playing VP8 video, when the user has VP8 codec installed under Windows.
The elements of video and audio embed video and audio content in HTML pages - without a plug-in is required. Developers can specify various attributes for the two elements. A corresponding markup might look like this:
Code:
<video ="400" width height src ="300" ="video.avi" posters ="frame.png" AutoPlay controls loop>
This text is displayed when the video tag, or the codec is not supported.
</ Video>
In Internet Explorer 9, with the markup, an area of 400 x 300 pixels (width and height attributes) are displayed. While the video is loaded, see the picture "frame.png" to (attribute poster). The video file video.avi "(src attribute) will play automatically when the page loads (autoplay), and there are controls for the video display (attribute controls). When the video reaches its end, it is repeated (attribute loop). If the video format support is not, then the element is the text within the video ("This text is ...") instead of the video display. The video element also supports the element preload. This element tells the browser how the developer presents the best display. An example of the video element in action, visit the Internet Explorer Test Drive Web site.
Internet Explorer 9 also supports video elements with multiple sources. The sources are documented by the sub-element source specified. This can be especially useful when developing for multiple browsers and file formats. The audio element is exactly like the video element defined. The attributes, height and width, however, posters are missing. An example of the audio element in action, visit the Internet Explorer Test Drive Web site.
Bookmarks