This commit is contained in:
Josh Hawkins 2024-08-16 16:32:43 -05:00
parent d09e1e5512
commit fc49a1e601

View File

@ -274,7 +274,7 @@ function MSEPlayer({
onmessageRef.current["mse"] = (msg) => { onmessageRef.current["mse"] = (msg) => {
if (msg.type !== "mse") return; if (msg.type !== "mse") return;
console.log(msg.value); console.log(camera, "codecs", msg.value);
let sb: SourceBuffer | undefined; let sb: SourceBuffer | undefined;
try { try {
@ -347,12 +347,6 @@ function MSEPlayer({
const now = Date.now(); const now = Date.now();
// we either recently just started streaming or recently
// jumped to live, so don't jump to live again right away
if (now - lastJumpTimeRef.current < BUFFERING_COOLDOWN_TIMEOUT) {
return;
}
const buffered = videoRef.current.buffered; const buffered = videoRef.current.buffered;
if (buffered.length > 0) { if (buffered.length > 0) {
const liveEdge = buffered.end(buffered.length - 1); const liveEdge = buffered.end(buffered.length - 1);