Kamis, 09 Juli 2015

HTML5 Video Tag

HTML 5 natively support Video tag , so no more lengthy coding  or dependence on .flv format for streaming Video. Now your HTML 5 enable browser supports .ogv, .ogg , .mp4  format.

Browser Compatibility :
IE 9, Firefox, Opera, Chrome, and Safari support the <video> element.




Coding Structure
<video width="480" height="320" controls="controls">
  <source src="intro.mp4" type="video/mp4" />
  <source src="intro.ogv" type="video/ogv" />
  Your browser does not support the video tag.
</video> 

Its very simple to implement on your web page.

HTML5 <video> - Methods, Properties, and Events

The table below lists the video methods, properties, and events supported by most browsers:
MethodsPropertiesEvents
play()currentSrcplay
pause()currentTimepause
load()videoWidthprogress
canPlayTypevideoHeighterror
durationtimeupdate
endedended
errorabort
pausedempty
mutedemptied
seekingwaiting
volumeloadedmetadata
height
width
To Know more  visit W3SCHOOLs

Tidak ada komentar:

Posting Komentar