बजाय वीडियो फुलस्क्रीन बनाने का ओवरले तत्व को प्रदर्शित करने,, वीडियो तत्व पूर्ण स्क्रीन की मूल हैं।
यहाँ उदाहरण देखें - https://jsfiddle.net/tv1981/tm069z9c/1/
संरचना निम्नलिखित में, मैं 'कंटेनर' फुलस्क्रीन
<div id="container">
<div class="btn-fs" id="btnFS">
Fullscreen
</div>
<div class='logo'>
Logo Overlay
</div>
<video width="100%" height="100%" autoplay>
<source src="http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4" type="video/mp4"> Your browser does not support the video tag.
</video>
<div class='footer'>
This is Test Overlay for Video
</div>
</div>
जावास्क्रिप्ट
fs.addEventListener('click', goFullScreen);
function goFullScreen() {
var fullscreenElement = document.fullscreenElement || document.mozFullScreenElement ||
document.webkitFullscreenElement || document.msFullscreenElement;
if (fullscreenElement) {
exitFullscreen();
} else {
launchIntoFullscreen(document.getElementById('container'));
}
}
यह Chrome संस्करण 60.0.3112.101 में काम कर रहा है बनाने हूँ (सरकारी बिल्ड) (64-बिट), फ़ायर्फ़ॉक्स डेवलपर संस्करण 56.0b5 (64-बिट)
स्रोत
2017-08-25 10:55:30
alternat आईव समाधान जो मुझे दिमाग में है "नकली पूर्णस्क्रीन" होगा: 100% स्क्रीन के ओवरले में वीडियो प्रदर्शित करें, और उसके बाद तत्वों को इसके ऊपर रखें, लेकिन मैं मूल पूर्णस्क्रीन समाधान पसंद करूंगा। – Dalibor