setShowVolume(true)}
- onMouseLeave={() => setShowVolume(false)}
- >
-
-
-
- handleVolumeChange(parseFloat(e.target.value))}
- className="w-full h-1 bg-gray-600 rounded-lg appearance-none cursor-pointer"
- />
-
-
- );
-}
diff --git a/src/components/app/StreamPlayer/StreamPlayer.tsx b/src/components/app/StreamPlayer/StreamPlayer.tsx
index 184fd03..5fa1378 100644
--- a/src/components/app/StreamPlayer/StreamPlayer.tsx
+++ b/src/components/app/StreamPlayer/StreamPlayer.tsx
@@ -24,6 +24,18 @@ export default function StreamPlayer() {
slot="media"
crossOrigin="anonymous"
autoplay
+ config={{
+ lowLatencyMode: true,
+ liveSyncDurationCount: 2, // Use only 1 segment for sync
+ liveMaxLatencyDurationCount: 3, // Maximum latency allowed
+ liveDurationInfinity: true,
+ enableWorker: true,
+ backBufferLength: 0, // No back buffer
+ startLevel: -1, // Auto level selection
+ maxBufferLength: 4, // Maximum buffer length in seconds
+ maxMaxBufferLength: 6,
+ debug: false,
+ }}
/>