From a76c4c180e80f753e2f5c9ccd1a4a95a874b4354 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 24 Nov 2025 07:11:43 -0600 Subject: [PATCH] add mse codecs to console debug on errors --- web/src/components/player/MsePlayer.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/src/components/player/MsePlayer.tsx b/web/src/components/player/MsePlayer.tsx index 7b78b53bc..8e4c1b601 100644 --- a/web/src/components/player/MsePlayer.tsx +++ b/web/src/components/player/MsePlayer.tsx @@ -82,6 +82,7 @@ function MSEPlayer({ [key: string]: (msg: { value: string; type: string }) => void; }>({}); const msRef = useRef(null); + const mseCodecRef = useRef(null); const wsURL = useMemo(() => { return `${baseUrl.replace(/^http/, "ws")}live/mse/api/ws?src=${camera}`; @@ -93,6 +94,10 @@ function MSEPlayer({ console.error( `${camera} - MSE error '${error}': ${description} See the documentation: https://docs.frigate.video/configuration/live/#live-player-error-messages`, ); + if (mseCodecRef.current) { + // eslint-disable-next-line no-console + console.error(`MSE codec in use: ${mseCodecRef.current}`); + } onError?.(error); }, [camera, onError], @@ -299,6 +304,9 @@ function MSEPlayer({ onmessageRef.current["mse"] = (msg) => { if (msg.type !== "mse") return; + // Store the codec value for error logging + mseCodecRef.current = msg.value; + let sb: SourceBuffer | undefined; try { sb = msRef.current?.addSourceBuffer(msg.value);