Html5 video player with simple controls (play and pause only)

somehow there are very few tutorials for playing html5 video and audio.

I just want to embed video and audio files with custom controls. However, the controls should be fairly simple. I only need a play button. If you click, the game will be replaced by a pause. what all!

however, I don’t even know how to embed / display a video without “presets”. Somehow, if I just installed (without preinstalled controls), Firefox doesn't even show anything. Chrome shows a black window.

I would really like to use jquery to control the video play and pause button. Maybe you have a little approach for me!

Thank you very much!

+3
source share
3 answers

Basically everything is said here: HTML 5 user controls

+3
source

There is an article in issue 203 of .net that tells you exactly how to do this. The article itself does not seem to be online.

So here is an article written by one of the authors (Bruce Lawson) from the above article, which, if you scroll down, will show you how to create your own controls: Introduction to HTML5 video .

+1
source

:

$('video').trigger('play');
$('video').trigger('pause');

: http://wonderdesigners.com/?p=219

0

Source: https://habr.com/ru/post/1748646/


All Articles