Skip to content

Commit

Permalink
Merge pull request #263 from Azure-Samples/chwhilar/enable-remote-ufds
Browse files Browse the repository at this point in the history
remote ufds start sending
  • Loading branch information
chriswhilar authored Feb 26, 2025
2 parents 0f62b3b + 85b8129 commit 8ddb428
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project/src/MakeCall/CallCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ export default class CallCard extends React.Component {

async handleMuteAllRemoteParticipants() {
try {
await this.call.muteAllRemoteParticipants?.();
await this.call.muteAllRemoteParticipants();
} catch (e) {
console.error('Failed to mute all other participants.', e);
}
Expand Down
4 changes: 2 additions & 2 deletions Project/src/MakeCall/MakeCall.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ export default class MakeCall extends React.Component {

call.feature(Features.UserFacingDiagnostics).media.on('diagnosticChanged', diagnosticChangedListener);
call.feature(Features.UserFacingDiagnostics).network.on('diagnosticChanged', diagnosticChangedListener);
call.feature(Features.UserFacingDiagnostics).remote?.on('diagnosticChanged', remoteDiagnosticChangedListener);
window.ufds = call.feature(Features.UserFacingDiagnostics);
call.feature(Features.UserFacingDiagnostics).remote.on('diagnosticChanged', remoteDiagnosticChangedListener);
call.feature(Features.UserFacingDiagnostics).remote.startSendingDiagnostics?.();
});

e.removed.forEach(call => {
Expand Down
2 changes: 1 addition & 1 deletion Project/src/MakeCall/RemoteParticipantCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default class RemoteParticipantCard extends React.Component {
handleMuteParticipant(e, remoteParticipant) {
e.preventDefault();
if (this.state.canMuteOthers) {
remoteParticipant.mute?.().catch((e) => console.error('Failed to mute specific participant.', e.message, e));
remoteParticipant.mute().catch((e) => console.error('Failed to mute specific participant.', e.message, e));
} else {
console.error('Soft mute of remote participants is not a supported capability for this participant.');
}
Expand Down

0 comments on commit 8ddb428

Please sign in to comment.