D
D
Dmitry2019-03-04 21:26:38
css
Dmitry, 2019-03-04 21:26:38

How to implement crossbrowsed custom controls in video tag?

Greetings! Is it possible to get the following result without resorting to magic: it is necessary that in the fullscreen of the video tag only custom controls are shown with the native controls completely disabled (in safari they have one look, in chrome the second, in mozilla the third), YouTube can be an example and other sites with online video viewing. I've tried quite a few ready-made solutions, but they mostly don't work in safari either at all or not the way they should. at the moment I use hls.js and custom play/pause, quality selection and fullscreen disclosure written by myself. also, by the way, I tried, as they say in the guides, to reassign the styles of the user agent - also unsuccessfully ...
in general, the main problems: I can’t hide native controls in safari and display custom ones through z-index.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dima Pautov, 2019-03-04
@bootd

https://videojs.com/ - I have never seen a better player in my life

Y
Yuri Oliyarnyk, 2016-10-21
@tripcollor

Set prefixes
safari just doesn't want to work with flex
https://css-tricks.com/using-flexbox/

M
Max Pushkarev, 2016-10-21
@maximpushkarev75

Try it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question