- Vanilla JavaScript(ES6), no any other JS Library
- HTML5(video, progress)
- CSS3
- Fontawesome 5
git clone https://github.com/uniquejava/FSD.git
cd FSD/lab01_html5_bootstrap4
npm i -g gulp-server-livereload # optional
livereload # optional
Open index.html directly in Chrome browser # not recommended
- requestFullControl 必须加在 video 的 parent tag 而非 video 上.
- exitFullscreen 是加在 document 上.
- 浏览器会将全屏的 element 放在 document.fullscreenElement 中,通过判断它的值来决定当前是否为全屏模式.
- sample videos: https://www.sample-videos.com/
- livereload server: https://github.com/hiddentao/gulp-server-livereload
- prettier
- Having custom controls still apply when go fullscreen on a HTML5 video?
- Html5 Full screen video
- How to display custom video controls even in fullscreen