Video/ Audio Player in HTML5

Tags Used

For video player

<video controls>
<
source src="Full path of your clip with extension" >
</
video>

For audio player

<audio controls>
<
source src="Full path of your clip with extension" >
</
audio>

Through simple use of these tags we can simply built our own players, here's the code :

Video Player In HTML5

<html>

<head>
    <title>Video Player|Abhishek Jaiswal </title>

</
head>
<
body>
    <video width="500" height="250" controls>

<
source src="Full path of your clip with extension" >
// ex: <source src="video.mp4" >

</
video>
</
body>
</
html>

Audio Player In HTML5

<html>

<head>
    <title>audio Player|Abhishek Jaiswal </title>

</
head>
<
body>
    <audio controls>

<
source src="Full path of your clip with extension" >
// ex: <source src="audio.mp3" >

</
audio>
</
body>
</
html>

Ebook Download
View all
Learn
View all