akhaliq HF Staff commited on
Commit
49aef2b
·
verified ·
1 Parent(s): 008fa79

video playing now but no sound now, there was sound before - Follow Up Deployment

Browse files
Files changed (1) hide show
  1. index.html +15 -1
index.html CHANGED
@@ -59,11 +59,14 @@
59
 
60
  <!-- Video Background -->
61
  <div class="fixed inset-0 -z-10 overflow-hidden">
62
- <video autoplay loop playsinline muted class="w-full h-full object-cover">
63
  <source src="https://huggingface.co/spaces/akhaliq/nexusrobotics/resolve/main/Video_of_Robot_Washing_Dishes.mp4" type="video/mp4">
64
  <img src="fallback-image.jpg" alt="Nexus Robotics" class="w-full h-full object-cover">
65
  </video>
66
  <div class="absolute inset-0 bg-black/30"></div>
 
 
 
67
  </div>
68
 
69
  <!-- Main Content -->
@@ -133,6 +136,17 @@
133
  }
134
  });
135
 
 
 
 
 
 
 
 
 
 
 
 
136
  // Simple animation for the join button
137
  document.querySelectorAll('.join-btn').forEach(button => {
138
  button.addEventListener('mouseenter', () => {
 
59
 
60
  <!-- Video Background -->
61
  <div class="fixed inset-0 -z-10 overflow-hidden">
62
+ <video autoplay loop playsinline class="w-full h-full object-cover">
63
  <source src="https://huggingface.co/spaces/akhaliq/nexusrobotics/resolve/main/Video_of_Robot_Washing_Dishes.mp4" type="video/mp4">
64
  <img src="fallback-image.jpg" alt="Nexus Robotics" class="w-full h-full object-cover">
65
  </video>
66
  <div class="absolute inset-0 bg-black/30"></div>
67
+ <button id="soundToggle" class="absolute bottom-4 right-4 bg-white/20 hover:bg-white/30 rounded-full p-3 backdrop-blur-sm transition-all">
68
+ <i class="fas fa-volume-mute text-white text-xl"></i>
69
+ </button>
70
  </div>
71
 
72
  <!-- Main Content -->
 
136
  }
137
  });
138
 
139
+ // Sound toggle functionality
140
+ const soundToggle = document.getElementById('soundToggle');
141
+ const video = document.querySelector('video');
142
+
143
+ soundToggle.addEventListener('click', () => {
144
+ video.muted = !video.muted;
145
+ soundToggle.innerHTML = video.muted
146
+ ? '<i class="fas fa-volume-mute text-white text-xl"></i>'
147
+ : '<i class="fas fa-volume-up text-white text-xl"></i>';
148
+ });
149
+
150
  // Simple animation for the join button
151
  document.querySelectorAll('.join-btn').forEach(button => {
152
  button.addEventListener('mouseenter', () => {