diff --git a/src/element/live-video-player.tsx b/src/element/live-video-player.tsx index 3a851fe..d8d1aa4 100644 --- a/src/element/live-video-player.tsx +++ b/src/element/live-video-player.tsx @@ -23,7 +23,11 @@ export function LiveVideoPlayer(props: VideoPlayerProps) { if (streamCached && video.current) { if (Hls.isSupported()) { try { - const hls = new Hls(); + const hls = new Hls({ + enableWorker: true, + lowLatencyMode: true, + backBufferLength: 90 + }); hls.loadSource(streamCached); hls.attachMedia(video.current); hls.on(Hls.Events.ERROR, (event, data) => {