Home > DeveloperSection > Interviews > How to add video and audio in HTML5?

Posted on    October-08-2012 3:07 AM

 HTML5 HTML5 
Ratings:
 1 Answer(s)
  2551  View(s)
Rate this:

AVADHESH PATEL

Total Post:257

Points:1285
Posted on    October-08-2012 12:00 AM

Like below we can add video in html5

<video width="320" height="240" controls="controls">
   <source src="pcds.mp4" type="video/mp4" />
   <source src="pcds.ogg" type="video/ogg" />
   </video>
 And audie like this
 <audio controls="controls">
   <source src="song.ogg" type="audio/ogg" />
   <source src="song.mp3" type="audio/mpeg" />
   </audio>


Don't want to miss updates? Please click the below button!

Follow MindStick