@camstack/ui-library 1.2.186 → 1.2.187
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.
|
@@ -129,6 +129,17 @@ export declare function freezeVerdict(stats: WebrtcDebugStats | null): FreezeVer
|
|
|
129
129
|
export interface StreamDebugSample {
|
|
130
130
|
/** When this sample was taken, by the reporting player's clock. */
|
|
131
131
|
readonly at: number;
|
|
132
|
+
/**
|
|
133
|
+
* The verdict, computed HERE.
|
|
134
|
+
*
|
|
135
|
+
* The host that renders this sample is not always a web page — the native
|
|
136
|
+
* app draws it in React Native — and `@camstack/ui-library` is a DOM
|
|
137
|
+
* component library whose bundle a React Native app must not import (it
|
|
138
|
+
* reaches for browser globals and for `Array.prototype.toSorted`, which
|
|
139
|
+
* Hermes does not have). Sending the verdict rather than the function that
|
|
140
|
+
* derives it keeps that boundary one-way.
|
|
141
|
+
*/
|
|
142
|
+
readonly verdict: FreezeVerdictKind;
|
|
132
143
|
/** The session both halves describe; `null` before the player has one. */
|
|
133
144
|
readonly sessionId: string | null;
|
|
134
145
|
readonly stats: WebrtcDebugStats | null;
|
package/dist/index.cjs
CHANGED
|
@@ -28646,6 +28646,7 @@ function CameraStreamPlayer({ serverUrl, streamKey, label, autoPlay = true, mute
|
|
|
28646
28646
|
const emit = () => {
|
|
28647
28647
|
onDebugStatsRef.current?.({
|
|
28648
28648
|
at: Date.now(),
|
|
28649
|
+
verdict: freezeVerdict(debugStatsRef.current).kind,
|
|
28649
28650
|
sessionId: activeSessionIdRef.current,
|
|
28650
28651
|
stats: debugStatsRef.current,
|
|
28651
28652
|
server: serverDebugRef.current,
|
package/dist/index.js
CHANGED
|
@@ -28622,6 +28622,7 @@ function CameraStreamPlayer({ serverUrl, streamKey, label, autoPlay = true, mute
|
|
|
28622
28622
|
const emit = () => {
|
|
28623
28623
|
onDebugStatsRef.current?.({
|
|
28624
28624
|
at: Date.now(),
|
|
28625
|
+
verdict: freezeVerdict(debugStatsRef.current).kind,
|
|
28625
28626
|
sessionId: activeSessionIdRef.current,
|
|
28626
28627
|
stats: debugStatsRef.current,
|
|
28627
28628
|
server: serverDebugRef.current,
|