mediasfu-shared 1.2.4 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediasfu-shared",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "mediasfu-shared – framework-agnostic WebRTC runtime for MediaSFU. Room helpers, mediasoup signaling, socket management, media state, and TypeScript types for React, Vue, Angular, Svelte, and plain TS.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -39,7 +39,7 @@ export function startVirtualBackgroundFrameLoop({
39
39
  if (stopped || inFlight) return;
40
40
  if (!shouldContinue()) { stop(); return; }
41
41
  if (document.hidden && keepProcessingWhenHidden) {
42
- timeoutId = setTimeout(() => { void runFrame(); }, 1000);
42
+ timeoutId = setTimeout(() => { void runFrame(); }, 200);
43
43
  } else {
44
44
  animationFrameId = requestAnimationFrame(() => { void runFrame(); });
45
45
  }