@@ -140,17 +140,6 @@ UserFacingDiagnosticsFeature (Interface)
140
140
│ └── Types
141
141
│ ├── RemoteParticipantDiagnosticsData
142
142
│ │ └── diagnostics: RemoteDiagnostic[]
143
- ├── networkReconnect?: LatestDiagnosticValue
144
- ├── networkReceiveQuality?: LatestDiagnosticValue
145
- ├── networkSendQuality?: LatestDiagnosticValue
146
- ├── noNetwork?: LatestDiagnosticValue
147
- ├── networkRelaysNotReachable?: LatestDiagnosticValue
148
- ├── microphoneNotFunctioning?: LatestDiagnosticValue
149
- ├── microphoneMuteUnexpectedly?: LatestDiagnosticValue
150
- ├── cameraStoppedUnexpectedly?: LatestDiagnosticValue
151
- ├── cameraFreeze?: LatestDiagnosticValue
152
- ├── capturerStartFailed?: LatestDiagnosticValue
153
- └── cameraStartTimedOut?: LatestDiagnosticValue
154
143
│ └── RemoteDiagnostic
155
144
│ ├── participantId: string
156
145
│ ├── rawId: string
@@ -209,9 +198,9 @@ To transmit remote UFDs to all participants on a call, you need to enable the fu
209
198
210
199
``` js
211
200
// Start the local client to send its local UFD to all remote participants (send local UFD to remote clients).
212
- remoteUfdsFeature .startSendingDiagnostics ();
201
+ userFacingDiagnostics . remote .startSendingDiagnostics ();
213
202
// Stop sending local UFDs to remote clients.
214
- remoteUfdsFeature .stopSendingDiagnostics ();
203
+ userFacingDiagnostics . remote .stopSendingDiagnostics ();
215
204
```
216
205
217
206
For the code sample below, ` RemoteParticipantDiagnosticsData ` has the following data associated with it:
@@ -338,60 +327,7 @@ console.log(
338
327
Here's sample code to generate the latest Remote UFD value delivered to the calling SDK. If a diagnostic is undefined, it means the UFD hasn't been raised from the remote client SDK.
339
328
``` js
340
329
const latestRemoteDiagnostics = userFacingDiagnostics .remote .getLatest ();
341
-
342
- console .log (
343
- ` noNetwork: ${ latestRemoteDiagnostics .noNetwork .value } , ` +
344
- ` value type = ${ latestRemoteDiagnostics .noNetwork .valueType } `
345
- );
346
-
347
- console .log (
348
- ` networkReconnect: ${ latestRemoteDiagnostics .networkReconnect .value } , ` +
349
- ` value type = ${ latestRemoteDiagnostics .networkReconnect .valueType } `
350
- );
351
-
352
- console .log (
353
- ` networkReceiveQuality: ${ latestRemoteDiagnostics .networkReceiveQuality .value } , ` +
354
- ` value type = ${ latestRemoteDiagnostics .networkReceiveQuality .valueType } `
355
- );
356
-
357
- console .log (
358
- ` networkSendQuality: ${ latestRemoteDiagnostics .networkSendQuality .value } , ` +
359
- ` value type = ${ latestRemoteDiagnostics .networkSendQuality .valueType } `
360
- );
361
-
362
- console .log (
363
- ` cameraStartFailed: ${ latestRemoteDiagnostics .cameraStartFailed .value } , ` +
364
- ` value type = ${ latestRemoteDiagnostics .cameraStartFailed .valueType } `
365
- );
366
-
367
- console .log (
368
- ` microphoneNotFunctioning: ${ latestRemoteDiagnostics .microphoneNotFunctioning .value } , ` +
369
- ` value type = ${ latestRemoteDiagnostics .microphoneNotFunctioning .valueType } `
370
- );
371
-
372
- console .log (
373
- ` microphoneMuteUnexpectedly: ${ latestRemoteDiagnostics .microphoneMuteUnexpectedly .value } , ` +
374
- ` value type = ${ latestRemoteDiagnostics .microphoneMuteUnexpectedly .valueType } `
375
- );
376
-
377
- console .log (
378
- ` cameraFreeze: ${ latestRemoteDiagnostics .cameraFreeze .value } , ` +
379
- ` value type = ${ latestRemoteDiagnostics .cameraFreeze .valueType } `
380
- );
381
-
382
- console .log (
383
- ` cameraStartFailed: ${ latestRemoteDiagnostics .cameraStartFailed .value } , ` +
384
- ` value type = ${ latestRemoteDiagnostics .cameraStartFailed .valueType } `
385
- );
386
-
387
- console .log (
388
- ` cameraStartTimedOut: ${ latestRemoteDiagnostics .cameraStartTimedOut .value } , ` +
389
- ` value type = ${ latestRemoteDiagnostics .cameraStartTimedOut .valueType } `
390
- );
391
-
392
- console .log (
393
- ` cameraStoppedUnexpectedly: ${ latestRemoteDiagnostics .cameraStoppedUnexpectedly .value } , ` +
394
- ` value type = ${ latestRemoteDiagnostics .cameraStoppedUnexpectedly .valueType } `
395
- );
396
-
330
+ for (const diagnostic of latestRemoteDiagnostics .diagnostics ) {
331
+ console .error (` Remote participant ${ diagnostic .participantId } diagnostic: ${ diagnostic .diagnostic } = ${ diagnostic .value } ` );
332
+ }
397
333
```
0 commit comments