@camstack/ui-library 1.2.69 → 1.2.70
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.
|
@@ -115,11 +115,11 @@ export interface CameraStreamPlayerProps {
|
|
|
115
115
|
/** Show a live client-side WebRTC stats overlay (bitrate/fps/res/RTT),
|
|
116
116
|
* computed from the PeerConnection's getStats(). Default: false. */
|
|
117
117
|
showStats?: boolean;
|
|
118
|
-
/**
|
|
118
|
+
/** When provided, polls inbound-video getStats() every 5 s during playback
|
|
119
119
|
* and reports per-window health metrics (frames received/decoded/dropped,
|
|
120
120
|
* freezes, jitter, playback-clock advance). The embed forwards these over the
|
|
121
|
-
* existing host log bridge (`{type:'log'}`),
|
|
122
|
-
*
|
|
121
|
+
* existing host log bridge (`{type:'log', scope:'playback'}`), which always
|
|
122
|
+
* ships — this is the client half of the recorded stutter census. */
|
|
123
123
|
onPlaybackStats?: (data: Record<string, unknown>) => void;
|
|
124
124
|
/**
|
|
125
125
|
* When provided, samples the inbound-video getStats() ~every 2s and reports
|
package/dist/index.cjs
CHANGED
|
@@ -25412,7 +25412,7 @@ function CameraStreamPlayer({ serverUrl, streamKey, label, autoPlay = true, mute
|
|
|
25412
25412
|
tick();
|
|
25413
25413
|
const id = setInterval(() => {
|
|
25414
25414
|
tick();
|
|
25415
|
-
},
|
|
25415
|
+
}, 5e3);
|
|
25416
25416
|
return () => clearInterval(id);
|
|
25417
25417
|
}, [onPlaybackStats]);
|
|
25418
25418
|
(0, react$1.useEffect)(() => {
|
package/dist/index.js
CHANGED
|
@@ -25388,7 +25388,7 @@ function CameraStreamPlayer({ serverUrl, streamKey, label, autoPlay = true, mute
|
|
|
25388
25388
|
tick();
|
|
25389
25389
|
const id = setInterval(() => {
|
|
25390
25390
|
tick();
|
|
25391
|
-
},
|
|
25391
|
+
}, 5e3);
|
|
25392
25392
|
return () => clearInterval(id);
|
|
25393
25393
|
}, [onPlaybackStats]);
|
|
25394
25394
|
useEffect(() => {
|