Skip to content

Commit 4d5767d

Browse files
authored
Update user-facing-diagnostics-web.md
1 parent 96fa9e9 commit 4d5767d

File tree

1 file changed

+3
-56
lines changed

1 file changed

+3
-56
lines changed

articles/communication-services/concepts/voice-video-calling/includes/user-facing-diagnostics-web.md

Lines changed: 3 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -338,60 +338,7 @@ console.log(
338338
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.
339339
```js
340340
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-
341+
for (const diagnostic of latestRemoteDiagnostics.diagnostics) {
342+
console.error(`Remote participant ${diagnostic.participantId} diagnostic: ${diagnostic.diagnostic} = ${diagnostic.value}`);
343+
}
397344
```

0 commit comments

Comments
 (0)