Jump to content

  • Free consultations and support
  • Live chatClick Here for Live Chat
  • Call ico 1888-906-1888
    Phone support: Open

    Ready for your call :)

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams

    Phone support: Closed

    We are back in: 1h 20m

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams


HTML5 Video

html5 video

  • Please log in to reply
 

#1 DesGuru

DesGuru

    Senior Member

  • Designer
  • 220 posts

Posted 02 November 2012 - 04:21 PM

HTML5 uses <video>, which is a new element to specify a standard method of embedding. Browsers such as Firefox, IE9, Chrome, Opera and Safari all support the new <video> element.
Ex. of displaying a video in HTML5
<video width="300" height="210" controls="controls">
<source src="movie1.mp4" type="video/mp4">
<source src="movie1.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
The control attribute adds the video controls, such as play, pause, or volume. You can link to different video files with the <source>. The <video> element allows several <source> elements. The browser will then use the first recognized format.
There are Currently 3 supported video formats for the <video> element (MP4, WebM, and Ogg)
HTML5 uses properties, DOM methods, and events for the <audio> and <video> elements. These also enable the manipulation of <video> and <audio> elements with JavaScript.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users