The Fullscreen API allows our video container to take over the entire screen. Note: Different browsers use different prefixes.
init() // Set initial properties this.video.volume = this.options.defaultVolume; this.video.loop = this.options.loop; video player using javascript
fullscreenBtn.addEventListener('click', openFullscreen); The Fullscreen API allows our video container to
.video-player width: 100%; display: block; cursor: pointer; this.video.loop = this.options.loop