TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Video/ Audio Player in HTML5
Abhishek Jaiswal
Oct 21, 2019
3.8
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
This blog defines Video/Audio Player In HTML5.
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 the simple use of these tags we can simply build 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
>
Next Recommended Reading
Videojs Free Open Source Video Player for HTML 5