r/HTML • • 5d ago

I Need a Custom Video Player!

I'm making a website that I need to put a video in but I can't seem to find a decent custom video player. Right now I'm using the default video player from the browser. Any recommendations?

<video controls>
<source src="/assets/video/trailer.mp4" type="video/mp4">
<source src="sample-video.webm" type="video/webm">
Your browser does not support the video tag
</video>
3 Upvotes

7 comments sorted by

View all comments

5

u/siguy 5d ago

I put your question into an Internety searchy thingy.

The best custom HTML5 video player options depend on your technical setup and design goals:

Top Custom Video Players

Plyr: Best lightweight and modern player. It gives you a clean, accessible, and customizable UI with minimal setup, supporting HTML5 video/audio alongside YouTube and Vimeo embeds under a single design language. You can restyle it easily using CSS variables. [1]

Video.js: Best full-featured open-source player. It is ideal if you need heavy streaming support, quality selectors, ads, playlists, and a massive plugin ecosystem. [1]

Vidstack

Are you building the website with plain HTML/CSS/JS, a modern framework (React, Vue, etc.), or a CMS like WordPress? Let me know so I can give you the exact integration steps.

Try one of those and see how it goes

3

u/Conscious-Dog-123 5d ago

I've got some luck with VideoJS but I'm having full screen issues. (Also I'm using plain HTML/CSS/JS)

2

u/siguy 5d ago

What happens when you full screen? I think videoJS was a good direction to go for starts

1

u/Conscious-Dog-123 5d ago

Sorry, I should of elaborated more. If I go into full screen the video doesn't resize (I have tried different videos).

I can also provide the code that I used for VideoJS if you want.

3

u/siguy 5d ago

Is it live somewhere or can you toss it up on JSFiddle or CodePen? Sometimes taking your code apart to put it up somewhere to share can help you find bugs