tonyassi commited on
Commit
571af37
·
verified ·
1 Parent(s): da1bae7

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -19
index.html CHANGED
@@ -45,27 +45,10 @@
45
  const videoPlayer = document.getElementById('videoPlayer');
46
  const videoSource = document.getElementById('videoSource');
47
 
48
- // Set the video source and load it
49
  videoSource.src = videoUrl;
50
  videoPlayer.load();
51
-
52
- // Show the video container (if necessary)
53
- //videoContainer.style.display = 'block';
54
-
55
- // Play the video and request fullscreen immediately
56
- videoPlayer.play().then(() => {
57
- if (videoPlayer.requestFullscreen) {
58
- videoPlayer.requestFullscreen();
59
- } else if (videoPlayer.webkitRequestFullscreen) { // For Safari
60
- videoPlayer.webkitRequestFullscreen();
61
- } else if (videoPlayer.mozRequestFullScreen) { // For Firefox
62
- videoPlayer.mozRequestFullScreen();
63
- } else if (videoPlayer.msRequestFullscreen) { // For IE/Edge
64
- videoPlayer.msRequestFullscreen();
65
- }
66
- }).catch((error) => {
67
- console.error("Error attempting to play video in fullscreen:", error);
68
- });
69
  }
70
 
71
  // Add event listeners for focus and blur to detect fullscreen exit
 
45
  const videoPlayer = document.getElementById('videoPlayer');
46
  const videoSource = document.getElementById('videoSource');
47
 
 
48
  videoSource.src = videoUrl;
49
  videoPlayer.load();
50
+ videoPlayer.play();
51
+ //videoContainer.style.display = 'block'; // Show the video container
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  }
53
 
54
  // Add event listeners for focus and blur to detect fullscreen exit