- Methods for controlling the behavior, such as play(), pause(), etc.;
- Properties (duration, current position, etc.), either in read/write mode (such as volume), or in read-only mode (such as encoding, duration, etc.);
- var video = document.createElement(‘video’);
- video.src = ‘video.mp4’;
- video.controls = true;
This will create a complete video player for the file “video.mp4”, with control buttons, and will add it to the <body> element of the page.