Current Android Release version:
Version Code: Pie
Version: 9
API level: 28

How to add video and audio in HTML5?

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 audio like this 
<audio controls="controls">

     <source src="song.ogg" type="audio/ogg" />
     <source src="song.mp3"  type="audio/mpeg" />
</audio>


No comments:

Post a Comment