Skip to content

Commit

Permalink
Hard mute Sdk references (#5544)
Browse files Browse the repository at this point in the history
* Hard mute Sdk references

* update

* Change files

---------

Co-authored-by: Donald McEachern <[email protected]>
  • Loading branch information
fuyan2024 and dmceachernmsft authored Jan 21, 2025
1 parent 8904b06 commit c2198c9
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "patch",
"area": "improvement",
"workstream": "Hard mute",
"comment": "Add sdk references to story book",
"packageName": "@azure/communication-react",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "patch",
"area": "improvement",
"workstream": "Hard mute",
"comment": "Add sdk references to story book",
"packageName": "@azure/communication-react",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ const meta: Meta = {
maxRemoteVideoStreams: { table: { disable: true } },
pinnedParticipants: { table: { disable: true } },
onPinParticipant: { table: { disable: true } },
onPermitAudio: { table: { disable: true } },
onForbidAudio: { table: { disable: true } },
onPermitVideo: { table: { disable: true } },
onForbidVideo: { table: { disable: true } },
remoteParticipants: controlsToAdd.remoteParticipantNames,
videoGalleryLayout: controlsToAdd.videoGallerylayout,
overflowGalleryPosition: controlsToAdd.overflowGalleryPosition,
Expand Down
8 changes: 8 additions & 0 deletions packages/storybook8/stories/Composites/Adapters/Docs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@ The ChatAdapter and the ChatComposite are purpose-built to support single chat t
| **`updateSelectedVideoBackgroundEffect`** | Update the selected video background effect.<br /><br />`selectedVideoBackground`: The video background effect to update.<br /><br />**Signature:**<br />`(selectedVideoBackground: VideoBackgroundEffect) => void` |
| **`startNoiseSuppressionEffect`** | Start the noise suppression effect.<br /><br />**Signature:**<br />`() => Promise<void>` |
| **`stopNoiseSuppressionEffect`** | Stop the noise suppression effect.<br /><br />**Signature:**<br />`() => Promise<void>` |
| **`permitAudio`** | Permit Teams meeting attendees' audio by their user ids.<br /><br />**Signature:**<br />`(userIds: string[]) => Promise<void>` |
| **`forbidAudio`** | Forbid Teams meeting attendees' audio by their user ids.<br /><br />**Signature:**<br />`(userIds: string[]) => Promise<void>` |
| **`permitOthersAudio`** | Permit Teams meeting audio for all attendees.<br /><br />**Signature:**<br />`() => Promise<void>` |
| **`forbidOthersAudio`** | Forbid Teams meeting audio for all attendees.<br /><br />**Signature:**<br />`() => Promise<void>` |
| **`permitVideo`** | Permit Teams meeting attendees' video by their user ids.<br /><br />**Signature:**<br />`(userIds: string[]) => Promise<void>` |
| **`forbidVideo`** | Forbid Teams meeting attendees' video by their user ids.<br /><br />**Signature:**<br />`(userIds: string[]) => Promise<void>` |
| **`permitOthersVideo`** | Permit Teams meeting video for all attendees.<br /><br />**Signature:**<br />`() => Promise<void>` |
| **`forbidOthersVideo`** | Forbid Teams meeting video for all attendees.<br /><br />**Signature:**<br />`() => Promise<void>` |
| **`on`** | Subscribe to event.<br /><br />Events:<br /> `participantsJoined` <br /> `participantsLeft` <br /> `isMutedChanged` <br /> `callIdChanged` <br /> `isLocalScreenSharingActiveChanged` <br /> `displayNameChanged` <br /> `isSpeakingChanged` <br /> `callEnded` <br /> `diagnosticChanged` <br /> `error` <br /> `captionsReceived` <br /> `isCaptionsActiveChanged` <br /> `transferAccepted` <br /> `capabilitiesChanged` <br /> `spotlightChanged` <br /><br />**Signature:**<br />`on(event: string, listener: Function): void` |
| **`off`** | Unsubscribe from event.<br /><br />Events:<br /> `participantsJoined` <br /> `participantsLeft` <br /> `isMutedChanged` <br /> `callIdChanged` <br /> `isLocalScreenSharingActiveChanged` <br /> `displayNameChanged` <br /> `isSpeakingChanged` <br /> `callEnded` <br /> `diagnosticChanged` <br /> `error` <br /> `captionsReceived` <br /> `isCaptionsActiveChanged` <br /> `transferAccepted` <br /> `capabilitiesChanged` <br /> `spotlightChanged` <br /><br />**Signature:**<br />`off(event: string, listener: Function): void` |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,11 @@ const notificationOptions: NotificationType[] = [
'recordingAndTranscriptionStarted',
'recordingAndTranscriptionStopped',
'recordingStoppedStillTranscribing',
'transcriptionStoppedStillRecording'
'transcriptionStoppedStillRecording',
'capabilityTurnVideoOnAbsent',
'capabilityTurnVideoOnPresent',
'capabilityUnmuteMicAbsent',
'capabilityUnmuteMicPresent'
];

const themeChoices = ['Default', 'Dark', 'Teams', 'Word'];
Expand Down
6 changes: 5 additions & 1 deletion packages/storybook8/stories/controlsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,11 @@ const notificationOptions: NotificationType[] = [
'recordingAndTranscriptionStarted',
'recordingAndTranscriptionStopped',
'recordingStoppedStillTranscribing',
'transcriptionStoppedStillRecording'
'transcriptionStoppedStillRecording',
'capabilityTurnVideoOnAbsent',
'capabilityTurnVideoOnPresent',
'capabilityUnmuteMicAbsent',
'capabilityUnmuteMicPresent'
];

export const defaultActiveNotifications = ['callNoSpeakerFound'];
Expand Down

0 comments on commit c2198c9

Please sign in to comment.