capturerStoppedUnexpectedly UFD

The capturerStoppedUnexpectedly UFD event with a true value occurs when the SDK detects that the screen sharing track was muted. This issue can happen due to external reasons and depends on the browser implementation. For example, if the user shares a window and minimize that window, the capturerStoppedUnexpectedly UFD event may fire.

capturerStoppedUnexpectedly Details
UFD type MediaDiagnostics
value type DiagnosticFlag
possible values true, false

Example

call.feature(Features.UserFacingDiagnostics).media.on('diagnosticChanged', (diagnosticInfo) => {
    if (diagnosticInfo.diagnostic === 'capturerStoppedUnexpectedly') {
       if (diagnosticInfo.value === true) {
           // show a warning message on UI
       } else {
           // The capturerStoppedUnexpectedly UFD recovered, notify the user
       }
    }
});

How to mitigate or resolve

Your application should subscribe to events from the User Facing Diagnostics and display a message on your user interface to alert users of screen sharing issues. Users can then take steps to resolve the issue on their own, such as checking whether they accidentally minimize the window being shared.

Next steps