top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to add video and audio in HTML5

0 votes
225 views
How to add video and audio in HTML5
posted Nov 25, 2015 by Sathaybama

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

The canvas element is used to draw graphics images on a web page by using javascript like below
Like below we can add video in html5

<video width=“320″ height=“240″ controls=“controls”>
<source src=“mysong.mp4″ type=“video/mp4″ />
<source src=“mysong.ogg” type=“video/ogg” />
</video>

And audio like this

<audio controls=“controls”>
<source src=“mysong.ogg” type=“audio/ogg” />
<source src=“mysong.mp3″ type=“audio/mpeg” />
</audio>
answer Nov 25, 2015 by Shivaranjini
...