Home / DeveloperSection / Interviews / How to add video and audio in HTML5?
You haven’t finished your post yet. Are you sure you want to leave and discard your draft?
Can you answer this question?
AVADHESH PATEL
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>
You have need login or register for voting of answers or question.
AVADHESH PATEL
08-Oct-2012Like 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>