Explorar o código

increase jsmpeg buffer size

Blake Blackshear %!s(int64=3) %!d(string=hai) anos
pai
achega
a94b61ef91
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      web/src/components/JSMpegPlayer.jsx

+ 1 - 1
web/src/components/JSMpegPlayer.jsx

@@ -12,7 +12,7 @@ export default function JSMpegPlayer({ camera }) {
       playerRef.current,
       url,
       {},
-      {protocols: [], audio: false}
+      {protocols: [], audio: false, videoBufferSize: 1024*1024*4}
     );
 
     const fullscreen = () => {