@azure/communication-react 1.9.0-alpha-202311020014 → 1.9.0-alpha-202311030012
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/communication-react.d.ts +12 -0
- package/dist/dist-cjs/communication-react/index.js +124 -83
- package/dist/dist-cjs/communication-react/index.js.map +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.d.ts +4 -0
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js +9 -0
- package/dist/dist-esm/calling-component-bindings/src/baseSelectors.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js +20 -5
- package/dist/dist-esm/calling-component-bindings/src/participantListSelector.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.d.ts +6 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js +17 -0
- package/dist/dist-esm/calling-component-bindings/src/utils/callUtils.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.d.ts +2 -1
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js +7 -2
- package/dist/dist-esm/calling-component-bindings/src/utils/videoGalleryUtils.js.map +1 -1
- package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js +13 -3
- package/dist/dist-esm/calling-component-bindings/src/videoGallerySelector.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.d.ts +4 -0
- package/dist/dist-esm/calling-stateful-client/src/CallClientState.js.map +1 -1
- package/dist/dist-esm/calling-stateful-client/src/Converter.js +7 -2
- package/dist/dist-esm/calling-stateful-client/src/Converter.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/ParticipantList.js +17 -3
- package/dist/dist-esm/react-components/src/components/ParticipantList.js.map +1 -1
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js +17 -1
- package/dist/dist-esm/react-components/src/components/RemoteVideoTile.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/LocalizationProvider.d.ts +2 -0
- package/dist/dist-esm/react-components/src/localization/LocalizationProvider.js.map +1 -1
- package/dist/dist-esm/react-components/src/localization/locales/en-US/strings.json +2 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js +4 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/CallComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +0 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +20 -28
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.d.ts +4 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/CallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.d.ts +0 -7
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js +1 -29
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/MediaGallery.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js +0 -4
- package/dist/dist-esm/react-composites/src/composites/CallComposite/components/NetworkReconnectTile.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js +0 -2
- package/dist/dist-esm/react-composites/src/composites/CallComposite/pages/LobbyPage.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/LocalVideoTileSelector.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/activeVideoBackgroundEffectSelector.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/callStatusSelector.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/capabilitiesChangedInfoAndRoleSelector.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/complianceBannerSelector.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/deviceCountSelector.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/devicePermissionSelector.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/dominantRemoteParticipantSelector.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/lobbySelector.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localAndRemotePIPSelector.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localPreviewSelector.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/localVideoStreamSelector.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mediaGallerySelector.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/mutedNotificationSelector.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/selectors/networkReconnectTileSelector.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.d.ts +2 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js +4 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/state/CallWithChatAdapterState.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +2 -2
|
@@ -956,6 +956,10 @@ export declare type CallAdapterClientState = {
|
|
|
956
956
|
* Call from transfer request accepted by local user
|
|
957
957
|
*/
|
|
958
958
|
acceptedTransferCallState?: CallState;
|
|
959
|
+
/**
|
|
960
|
+
* Hide attendee names in teams meeting
|
|
961
|
+
*/
|
|
962
|
+
hideAttendeeNames?: boolean;
|
|
959
963
|
};
|
|
960
964
|
|
|
961
965
|
/**
|
|
@@ -2497,6 +2501,10 @@ export declare interface CallState {
|
|
|
2497
2501
|
* Proxy of {@link @azure/communication-calling#CapabilitiesFeature}.
|
|
2498
2502
|
*/
|
|
2499
2503
|
capabilitiesFeature?: CapabilitiesFeatureState;
|
|
2504
|
+
/**
|
|
2505
|
+
* Hide attendee names in teams meeting
|
|
2506
|
+
*/
|
|
2507
|
+
hideAttendeeNames?: boolean;
|
|
2500
2508
|
}
|
|
2501
2509
|
|
|
2502
2510
|
/**
|
|
@@ -3009,6 +3017,8 @@ export declare interface CallWithChatClientState {
|
|
|
3009
3017
|
onResolveVideoEffectDependency?: () => Promise<VideoBackgroundEffectsDependency>;
|
|
3010
3018
|
/** State to track the selected video background effect */
|
|
3011
3019
|
selectedVideoBackgroundEffect?: VideoBackgroundEffect;
|
|
3020
|
+
/** Hide attendee names in teams meeting */
|
|
3021
|
+
hideAttendeeNames?: boolean;
|
|
3012
3022
|
}
|
|
3013
3023
|
|
|
3014
3024
|
/**
|
|
@@ -4950,6 +4960,8 @@ export declare interface ComponentStrings {
|
|
|
4950
4960
|
verticalGallery: VerticalGalleryStrings;
|
|
4951
4961
|
/** Strings for the participant list component */
|
|
4952
4962
|
ParticipantList: ParticipantListStrings;
|
|
4963
|
+
/** Strings for the attendee role */
|
|
4964
|
+
AttendeeRole: string;
|
|
4953
4965
|
}
|
|
4954
4966
|
|
|
4955
4967
|
/**
|
|
@@ -177,7 +177,7 @@ const _isValidIdentifier = (identifier) => {
|
|
|
177
177
|
// Copyright (c) Microsoft Corporation.
|
|
178
178
|
// Licensed under the MIT License.
|
|
179
179
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
|
180
|
-
var telemetryVersion = '1.9.0-alpha-
|
|
180
|
+
var telemetryVersion = '1.9.0-alpha-202311030012';
|
|
181
181
|
|
|
182
182
|
// Copyright (c) Microsoft Corporation.
|
|
183
183
|
/**
|
|
@@ -339,6 +339,14 @@ const getRole$1 = (state, props) => {
|
|
|
339
339
|
/* @conditional-compile-remove(rooms) */
|
|
340
340
|
return (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.role;
|
|
341
341
|
};
|
|
342
|
+
/**
|
|
343
|
+
* @private
|
|
344
|
+
*/
|
|
345
|
+
const isHideAttendeeNamesEnabled = (state, props) => {
|
|
346
|
+
var _a, _b;
|
|
347
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
348
|
+
return (_b = (_a = state.calls[props.callId]) === null || _a === void 0 ? void 0 : _a.hideAttendeeNames) !== null && _b !== void 0 ? _b : false;
|
|
349
|
+
};
|
|
342
350
|
/* @conditional-compile-remove(capabilities) */
|
|
343
351
|
/**
|
|
344
352
|
* @private
|
|
@@ -554,6 +562,23 @@ const _isRingingPSTNParticipant = (participant) => {
|
|
|
554
562
|
? 'Ringing'
|
|
555
563
|
: participant.state;
|
|
556
564
|
};
|
|
565
|
+
/**
|
|
566
|
+
* @private
|
|
567
|
+
* Changes the display name of the participant based on the local and remote user's role.
|
|
568
|
+
*/
|
|
569
|
+
const maskDisplayNameWithRole = (displayName, localUserRole, participantRole, isHideAttendeeNamesEnabled) => {
|
|
570
|
+
let maskedDisplayName = displayName;
|
|
571
|
+
if (isHideAttendeeNamesEnabled && participantRole && participantRole === 'Attendee') {
|
|
572
|
+
if (localUserRole && localUserRole === 'Attendee') {
|
|
573
|
+
maskedDisplayName = '{AttendeeRole}';
|
|
574
|
+
}
|
|
575
|
+
if (localUserRole &&
|
|
576
|
+
(localUserRole === 'Presenter' || localUserRole === 'Co-organizer' || localUserRole === 'Organizer')) {
|
|
577
|
+
maskedDisplayName = `{AttendeeRole}(${displayName})`;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
return maskedDisplayName;
|
|
581
|
+
};
|
|
557
582
|
|
|
558
583
|
// Copyright (c) Microsoft Corporation.
|
|
559
584
|
/**
|
|
@@ -1597,7 +1622,9 @@ function convertSdkParticipantToDeclarativeParticipant(participant) {
|
|
|
1597
1622
|
isMuted: participant.isMuted,
|
|
1598
1623
|
isSpeaking: participant.isSpeaking,
|
|
1599
1624
|
/* @conditional-compile-remove(raise-hand) */
|
|
1600
|
-
raisedHand: undefined
|
|
1625
|
+
raisedHand: undefined,
|
|
1626
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
1627
|
+
role: participant.role
|
|
1601
1628
|
};
|
|
1602
1629
|
}
|
|
1603
1630
|
/**
|
|
@@ -1658,7 +1685,10 @@ function convertSdkCallToDeclarativeCall(call) {
|
|
|
1658
1685
|
/* @conditional-compile-remove(optimal-video-count) */
|
|
1659
1686
|
optimalVideoCount: {
|
|
1660
1687
|
maxRemoteVideoStreams: call.feature(communicationCalling.Features.OptimalVideoCount).optimalVideoCount
|
|
1661
|
-
}
|
|
1688
|
+
},
|
|
1689
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
1690
|
+
// TODO: Replace this once the SDK supports hide attendee name
|
|
1691
|
+
hideAttendeeNames: true
|
|
1662
1692
|
};
|
|
1663
1693
|
}
|
|
1664
1694
|
/**
|
|
@@ -4992,7 +5022,7 @@ const typingIndicatorStringStyle = react.mergeStyles({
|
|
|
4992
5022
|
wordBreak: 'break-word'
|
|
4993
5023
|
});
|
|
4994
5024
|
|
|
4995
|
-
var participantItem$k={isMeText:"(you)",menuTitle:"More Options",removeButtonLabel:"Remove",sharingIconLabel:"Sharing",mutedIconLabel:"Muted",displayNamePlaceholder:"Unnamed participant",participantStateRinging:"Calling...",participantStateHold:"On hold"};var ParticipantList$l={overflowParticipantCount:"+{overflowCount} more"};var typingIndicator$k={singleUser:"{user} is typing ...",multipleUsers:"{users} are typing ...",multipleUsersAbbreviateOne:"{users} and 1 other are typing ...",multipleUsersAbbreviateMany:"{users} and {numOthers} others are typing ...",delimiter:", "};var sendBox$k={placeholderText:"Enter a message",textTooLong:"Your message length is over the maximum limit.",sendButtonAriaLabel:"Send message",fileUploadsPendingError:"Uploading... Please wait.",removeFile:"Remove file",uploading:"Uploading",uploadCompleted:"Upload completed"};var mentionPopover$k={mentionPopoverHeader:"Suggestions"};var imageGallery$k={downloadButtonLabel:"Download",dismissButtonAriaLabel:"Close"};var messageStatusIndicator$k={deliveredAriaLabel:"Message sent",deliveredTooltipText:"Sent",seenAriaLabel:"Message seen by others",seenTooltipText:"Seen",readByTooltipText:"Read by {messageThreadReadCount} of {remoteParticipantsCount}",sendingAriaLabel:"Message sending",sendingTooltipText:"Sending",failedToSendAriaLabel:"Message failed to send",failedToSendTooltipText:"Failed to send"};var endCallButton$k={label:"Leave",tooltipContent:"Leave call"};var cameraButton$k={onLabel:"Camera",offLabel:"Camera",tooltipDisabledContent:"Camera is disabled",tooltipOnContent:"Turn off camera",tooltipOffContent:"Turn on camera",tooltipVideoLoadingContent:"Video is loading",cameraMenuTitle:"Camera",cameraMenuTooltip:"Choose camera",cameraButtonSplitRoleDescription:"Split button",onSplitButtonAriaLabel:"Turn off camera and camera options",offSplitButtonAriaLabel:"Turn on camera and camera options",cameraActionTurnedOnAnnouncement:"Your camera has been turned on",cameraActionTurnedOffAnnouncement:"Your camera has been turned off",onSplitButtonPrimaryActionCamera:"Turn off camera",offSplitButtonPrimaryActionCamera:"Turn on camera",cameraPrimaryActionSplitButtonTitle:"Use camera",videoEffectsMenuItemTitle:"Effects"};var microphoneButton$k={onLabel:"Mic",offLabel:"Mic",tooltipDisabledContent:"Microphone is disabled",tooltipOnContent:"Mute microphone",tooltipOffContent:"Unmute microphone",microphoneMenuTitle:"Microphone",microphoneMenuTooltip:"Choose microphone",speakerMenuTitle:"Speaker",speakerMenuTooltip:"Choose speaker",microphoneButtonSplitRoleDescription:"Split button",onSplitButtonAriaLabel:"Mute microphone and audio options",offSplitButtonAriaLabel:"Unmute microphone and audio options",microphoneActionTurnedOnAnnouncement:"Your microphone has been turned on",microphoneActionTurnedOffAnnouncement:"Your microphone has been turned off",offSplitButtonMicrophonePrimaryAction:"Unmute microphone",onSplitButtonMicrophonePrimaryAction:"Mute microphone",microphonePrimaryActionSplitButtonTitle:"Use microphone"};var devicesButton$k={label:"Devices",tooltipContent:"Manage devices",cameraMenuTitle:"Camera",cameraMenuTooltip:"Choose camera",audioDeviceMenuTitle:"Audio Device",audioDeviceMenuTooltip:"Choose audio device",microphoneMenuTitle:"Microphone",microphoneMenuTooltip:"Choose microphone",speakerMenuTitle:"Speaker",speakerMenuTooltip:"Choose speaker"};var participantsButton$k={label:"People",tooltipContent:"Show participants",menuHeader:"In this call",participantsListButtonLabel:"{numParticipants} people",muteAllButtonLabel:"Mute all",copyInviteLinkButtonLabel:"Copy invite link",copyInviteLinkActionedAriaLabel:"Invite link copied"};var screenShareButton$k={onLabel:"Stop presenting",offLabel:"Present",tooltipDisabledContent:"Presenting is disabled",tooltipOnContent:"Presenting your screen",tooltipOffContent:"Present your screen"};var raiseHandButton$k={offLabel:"Raise",onLabel:"Lower",tooltipDisabledContent:"Raise Hand action is disabled",tooltipOnContent:"Lower Hand",tooltipOffContent:"Raise Hand"};var messageThread$k={yesterday:"Yesterday",sunday:"Sunday",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",participantJoined:"joined the chat.",participantLeft:"left the chat.",editMessage:"Edit",removeMessage:"Delete",resendMessage:"Try sending again",failToSendTag:"Failed to send",editedTag:"Edited",liveAuthorIntro:"{author} says",messageContentAriaText:"{author} said {message}",messageContentMineAriaText:"You said {message}",editBoxTextLimit:"Your message is over the limit of {limitNumber} characters",editBoxPlaceholderText:"Edit your message",newMessagesIndicator:"New messages",noDisplayNameSub:"No name",editBoxCancelButton:"Cancel",editBoxSubmitButton:"Done",messageReadCount:"Read by {messageReadByCount} of {remoteParticipantsCount}",actionMenuMoreOptions:"More Options",downloadFile:"Download file",blockedWarningText:"This message was deleted due to organizational policy.",blockedWarningLinkText:"Details",fileCardGroupMessage:"The message has {fileCount} attachment"};var errorBar$k={unableToReachChatService:"You are offline",accessDenied:"Unable to access chat services - please check the user credentials provided",userNotInChatThread:"You are no longer in this chat thread",sendMessageNotInChatThread:"Failed to send message because you are no longer in this chat thread",sendMessageGeneric:"Failed to send message",callingNetworkFailure:"Troubling connecting call - you seem to be offline",startVideoGeneric:"Failed to start video",stopVideoGeneric:"Failed to stop video",muteGeneric:"Failed to mute microphone",unmuteGeneric:"Failed to unmute microphone",speakingWhileMuted:"Your microphone is muted",startScreenShareGeneric:"There was an issue starting screen share.",stopScreenShareGeneric:"Failed to stop screen sharing",callNetworkQualityLow:"Network quality is low.",callNoSpeakerFound:"No speakers or headphones found. Connect an audio device to hear the call.",callNoMicrophoneFound:"No microphones found. Connect an audio input device.",callMicrophoneAccessDenied:"Unable to access microphone. Click the lock in the address bar to grant permission to this webpage.",callMicrophoneAccessDeniedSafari:"Unable to access microphone. Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",callMicrophoneMutedBySystem:"You are muted by your system.",callMicrophoneUnmutedBySystem:"Your microphone recovered and you were unmuted by your system.",callMacOsMicrophoneAccessDenied:"Unable to access microphone. Grant microphone permission in your macOS privacy settings.",callLocalVideoFreeze:"Network bandwidth is poor. Your video may appear paused for others on the call.",callCameraAccessDenied:"Unable to access camera. Click the lock in the address bar to grant permission to this webpage.",callCameraAccessDeniedSafari:"Unable to access camera. Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",callCameraAlreadyInUse:"Unable to access camera. It may already be in use by another application.",callVideoStoppedBySystem:"Your video has been stopped by your system.",callVideoRecoveredBySystem:"Your video has resumed.",callMacOsCameraAccessDenied:"MacOS is blocking access to your camera. Update your privacy settings to allow this browser to access your camera.",callMacOsScreenShareAccessDenied:"MacOS is blocking screen sharing. Update your privacy settings to allow this browser to record your screen.",dismissButtonAriaLabel:"Close",failedToJoinCallGeneric:"Failed to join call.",failedToJoinCallInvalidMeetingLink:"Unable to join Meeting. Invalid Link.",cameraFrozenForRemoteParticipants:"Users in the call are having issues seeing your video. Please check your devices and network.",unableToStartVideoEffect:"Unable to apply video effect."};var videoGallery$k={screenIsBeingSharedMessage:"You are sharing your screen",screenShareLoadingMessage:"Loading {participant}'s screen",localVideoLabel:"You",localVideoCameraSwitcherLabel:"Switch camera",localVideoMovementLabel:"Movable Local Video Tile",localVideoSelectedDescription:"{cameraName} selected",displayNamePlaceholder:"Unnamed participant",fitRemoteParticipantToFrame:"Fit to frame",fillRemoteParticipantFrame:"Fill frame",pinParticipantForMe:"Pin for me",pinParticipantForMeLimitReached:"Pin (limit reached)",unpinParticipantForMe:"Unpin",pinParticipantMenuItemAriaLabel:"Pin {participantName}",unpinParticipantMenuItemAriaLabel:"Unpin {participantName}",pinnedParticipantAnnouncementAriaLabel:"Pinned {participantName}",unpinnedParticipantAnnouncementAriaLabel:"Unpinned {participantName}"};var dialpad$k={placeholderText:"Enter phone number",deleteButtonAriaLabel:"Delete"};var holdButton$k={onLabel:"Resume",offLabel:"Hold",tooltipOnContent:"Resume call",tooltipOffContent:"Hold call"};var videoTile$k={participantStateRinging:"Calling...",participantStateHold:"On hold"};var CameraAndMicrophoneSitePermissionsRequest$k={primaryText:"Allow {appName} to use your camera and microphone",secondaryText:"This is so participants can see and hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera and microphone",ariaLabel:"Allow camera and microphone access"};var CameraSitePermissionsRequest$k={primaryText:"Allow {appName} to use your camera",secondaryText:"This is so participants can see you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera",ariaLabel:"Allow camera access"};var MicrophoneSitePermissionsRequest$k={primaryText:"Allow {appName} to use your microphone",secondaryText:"This is so participants can hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without microphone",ariaLabel:"Allow microphone access"};var CameraAndMicrophoneSitePermissionsCheck$k={primaryText:"Checking for camera and microphone access",secondaryText:"Allow access if prompted. This is so participants can see and hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera and microphone",ariaLabel:"Checking for camera and microphone access. Allow access if prompted."};var CameraSitePermissionsCheck$k={primaryText:"Checking for camera access",secondaryText:"Allow access if prompted. This is so participants can see you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera",ariaLabel:"Checking for camera access. Allow access if prompted."};var MicrophoneSitePermissionsCheck$k={primaryText:"Checking for microphone access",secondaryText:"Allow access if prompted. This is so participants can hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without microphone",ariaLabel:"Checking for microphone access. Allow access if prompted."};var CameraAndMicrophoneSitePermissionsDenied$k={primaryText:"Unable to access camera and microphone",secondaryText:"Click the lock icon in the address bar to grant microphone permissions to this webpage. A page refresh may be required.",primaryButtonText:"Continue without camera and microphone",linkText:"Need help? Get troubleshooting help"};var CameraAndMicrophoneSitePermissionsDeniedSafari$k={primaryText:"Unable to access camera and microphone",secondaryText:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",primaryButtonText:"Continue without camera and microphone",linkText:"Need help? Get troubleshooting help"};var CameraSitePermissionsDenied$k={primaryText:"Unable to access camera",secondaryText:"Click the lock icon in the address bar to grant camera permissions to this webpage. A page refresh may be required.",primaryButtonText:"Continue without camera",linkText:"Need help? Get troubleshooting help"};var MicrophoneSitePermissionsDenied$k={primaryText:"Unable to access microphone",secondaryText:"Click the lock icon in the address bar to grant microphone permissions to this webpage. A page refresh may be required.",primaryButtonText:"Continue without microphone",linkText:"Need help? Get troubleshooting help"};var CameraSitePermissionsDeniedSafari$k={primaryText:"Unable to access camera",secondaryText:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",primaryButtonText:"Continue without camera",linkText:"Need help? Get troubleshooting help"};var MicrophoneSitePermissionsDeniedSafari$k={primaryText:"Unable to access microphone",secondaryText:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",primaryButtonText:"Continue without microphone",linkText:"Need help? Get troubleshooting help"};var UnsupportedBrowser$l={primaryText:"Browser not supported",secondaryText:"Please join this call using a compatible browser.",moreHelpLinkText:"See compatibility requirements"};var UnsupportedBrowserVersion$l={primaryText:"Browser update needed",secondaryText:"To ensure the best call possible, please update your browser and then try joining the call again.",moreHelpLinkText:"See compatibility requirements",continueAnywayButtonText:"Start call without updating"};var UnsupportedOperatingSystem$l={primaryText:"Operating system not supported",secondaryText:"Please join this call using a device with a compatible operating system.",moreHelpLinkText:"See compatibility requirements"};var BrowserPermissionDenied$k={primaryText:"Can't use your camera or microphone",secondaryText:"Your browser might not have access to your camera or microphone. To fix this, open System Preferences.",primaryButtonText:"Try again",linkText:"Need help? Get troubleshooting help"};var BrowserPermissionDeniedIOS$k={primaryText:"Allow microphone access to continue",secondaryText:"So other participants can hear you.",primaryButtonText:"Try again",imageAltText:"Microphone and camera device permission location for iOS",linkText:"Need help? Get troubleshooting help",step1Text:"Go to the Settings app",step2Text:"Scroll down to settings for this browser",step3Text:"Turn on Microphone (Camera optional)",step4Text:"Try joining the call again",step1DigitText:"1",step2DigitText:"2",step3DigitText:"3",step4DigitText:"4"};var verticalGallery$k={leftNavButtonAriaLabel:"previous page",rightNavButtonAriaLabel:"next page"};var en_US$1 = {participantItem:participantItem$k,ParticipantList:ParticipantList$l,typingIndicator:typingIndicator$k,sendBox:sendBox$k,mentionPopover:mentionPopover$k,imageGallery:imageGallery$k,messageStatusIndicator:messageStatusIndicator$k,endCallButton:endCallButton$k,cameraButton:cameraButton$k,microphoneButton:microphoneButton$k,devicesButton:devicesButton$k,participantsButton:participantsButton$k,screenShareButton:screenShareButton$k,raiseHandButton:raiseHandButton$k,messageThread:messageThread$k,errorBar:errorBar$k,videoGallery:videoGallery$k,dialpad:dialpad$k,holdButton:holdButton$k,videoTile:videoTile$k,CameraAndMicrophoneSitePermissionsRequest:CameraAndMicrophoneSitePermissionsRequest$k,CameraSitePermissionsRequest:CameraSitePermissionsRequest$k,MicrophoneSitePermissionsRequest:MicrophoneSitePermissionsRequest$k,CameraAndMicrophoneSitePermissionsCheck:CameraAndMicrophoneSitePermissionsCheck$k,CameraSitePermissionsCheck:CameraSitePermissionsCheck$k,MicrophoneSitePermissionsCheck:MicrophoneSitePermissionsCheck$k,CameraAndMicrophoneSitePermissionsDenied:CameraAndMicrophoneSitePermissionsDenied$k,CameraAndMicrophoneSitePermissionsDeniedSafari:CameraAndMicrophoneSitePermissionsDeniedSafari$k,CameraSitePermissionsDenied:CameraSitePermissionsDenied$k,MicrophoneSitePermissionsDenied:MicrophoneSitePermissionsDenied$k,CameraSitePermissionsDeniedSafari:CameraSitePermissionsDeniedSafari$k,MicrophoneSitePermissionsDeniedSafari:MicrophoneSitePermissionsDeniedSafari$k,UnsupportedBrowser:UnsupportedBrowser$l,UnsupportedBrowserVersion:UnsupportedBrowserVersion$l,UnsupportedOperatingSystem:UnsupportedOperatingSystem$l,BrowserPermissionDenied:BrowserPermissionDenied$k,BrowserPermissionDeniedIOS:BrowserPermissionDeniedIOS$k,verticalGallery:verticalGallery$k};
|
|
5025
|
+
var participantItem$k={isMeText:"(you)",menuTitle:"More Options",removeButtonLabel:"Remove",sharingIconLabel:"Sharing",mutedIconLabel:"Muted",displayNamePlaceholder:"Unnamed participant",participantStateRinging:"Calling...",participantStateHold:"On hold"};var ParticipantList$l={overflowParticipantCount:"+{overflowCount} more"};var typingIndicator$k={singleUser:"{user} is typing ...",multipleUsers:"{users} are typing ...",multipleUsersAbbreviateOne:"{users} and 1 other are typing ...",multipleUsersAbbreviateMany:"{users} and {numOthers} others are typing ...",delimiter:", "};var sendBox$k={placeholderText:"Enter a message",textTooLong:"Your message length is over the maximum limit.",sendButtonAriaLabel:"Send message",fileUploadsPendingError:"Uploading... Please wait.",removeFile:"Remove file",uploading:"Uploading",uploadCompleted:"Upload completed"};var mentionPopover$k={mentionPopoverHeader:"Suggestions"};var imageGallery$k={downloadButtonLabel:"Download",dismissButtonAriaLabel:"Close"};var messageStatusIndicator$k={deliveredAriaLabel:"Message sent",deliveredTooltipText:"Sent",seenAriaLabel:"Message seen by others",seenTooltipText:"Seen",readByTooltipText:"Read by {messageThreadReadCount} of {remoteParticipantsCount}",sendingAriaLabel:"Message sending",sendingTooltipText:"Sending",failedToSendAriaLabel:"Message failed to send",failedToSendTooltipText:"Failed to send"};var endCallButton$k={label:"Leave",tooltipContent:"Leave call"};var cameraButton$k={onLabel:"Camera",offLabel:"Camera",tooltipDisabledContent:"Camera is disabled",tooltipOnContent:"Turn off camera",tooltipOffContent:"Turn on camera",tooltipVideoLoadingContent:"Video is loading",cameraMenuTitle:"Camera",cameraMenuTooltip:"Choose camera",cameraButtonSplitRoleDescription:"Split button",onSplitButtonAriaLabel:"Turn off camera and camera options",offSplitButtonAriaLabel:"Turn on camera and camera options",cameraActionTurnedOnAnnouncement:"Your camera has been turned on",cameraActionTurnedOffAnnouncement:"Your camera has been turned off",onSplitButtonPrimaryActionCamera:"Turn off camera",offSplitButtonPrimaryActionCamera:"Turn on camera",cameraPrimaryActionSplitButtonTitle:"Use camera",videoEffectsMenuItemTitle:"Effects"};var microphoneButton$k={onLabel:"Mic",offLabel:"Mic",tooltipDisabledContent:"Microphone is disabled",tooltipOnContent:"Mute microphone",tooltipOffContent:"Unmute microphone",microphoneMenuTitle:"Microphone",microphoneMenuTooltip:"Choose microphone",speakerMenuTitle:"Speaker",speakerMenuTooltip:"Choose speaker",microphoneButtonSplitRoleDescription:"Split button",onSplitButtonAriaLabel:"Mute microphone and audio options",offSplitButtonAriaLabel:"Unmute microphone and audio options",microphoneActionTurnedOnAnnouncement:"Your microphone has been turned on",microphoneActionTurnedOffAnnouncement:"Your microphone has been turned off",offSplitButtonMicrophonePrimaryAction:"Unmute microphone",onSplitButtonMicrophonePrimaryAction:"Mute microphone",microphonePrimaryActionSplitButtonTitle:"Use microphone"};var devicesButton$k={label:"Devices",tooltipContent:"Manage devices",cameraMenuTitle:"Camera",cameraMenuTooltip:"Choose camera",audioDeviceMenuTitle:"Audio Device",audioDeviceMenuTooltip:"Choose audio device",microphoneMenuTitle:"Microphone",microphoneMenuTooltip:"Choose microphone",speakerMenuTitle:"Speaker",speakerMenuTooltip:"Choose speaker"};var participantsButton$k={label:"People",tooltipContent:"Show participants",menuHeader:"In this call",participantsListButtonLabel:"{numParticipants} people",muteAllButtonLabel:"Mute all",copyInviteLinkButtonLabel:"Copy invite link",copyInviteLinkActionedAriaLabel:"Invite link copied"};var screenShareButton$k={onLabel:"Stop presenting",offLabel:"Present",tooltipDisabledContent:"Presenting is disabled",tooltipOnContent:"Presenting your screen",tooltipOffContent:"Present your screen"};var raiseHandButton$k={offLabel:"Raise",onLabel:"Lower",tooltipDisabledContent:"Raise Hand action is disabled",tooltipOnContent:"Lower Hand",tooltipOffContent:"Raise Hand"};var messageThread$k={yesterday:"Yesterday",sunday:"Sunday",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",participantJoined:"joined the chat.",participantLeft:"left the chat.",editMessage:"Edit",removeMessage:"Delete",resendMessage:"Try sending again",failToSendTag:"Failed to send",editedTag:"Edited",liveAuthorIntro:"{author} says",messageContentAriaText:"{author} said {message}",messageContentMineAriaText:"You said {message}",editBoxTextLimit:"Your message is over the limit of {limitNumber} characters",editBoxPlaceholderText:"Edit your message",newMessagesIndicator:"New messages",noDisplayNameSub:"No name",editBoxCancelButton:"Cancel",editBoxSubmitButton:"Done",messageReadCount:"Read by {messageReadByCount} of {remoteParticipantsCount}",actionMenuMoreOptions:"More Options",downloadFile:"Download file",blockedWarningText:"This message was deleted due to organizational policy.",blockedWarningLinkText:"Details",fileCardGroupMessage:"The message has {fileCount} attachment"};var errorBar$k={unableToReachChatService:"You are offline",accessDenied:"Unable to access chat services - please check the user credentials provided",userNotInChatThread:"You are no longer in this chat thread",sendMessageNotInChatThread:"Failed to send message because you are no longer in this chat thread",sendMessageGeneric:"Failed to send message",callingNetworkFailure:"Troubling connecting call - you seem to be offline",startVideoGeneric:"Failed to start video",stopVideoGeneric:"Failed to stop video",muteGeneric:"Failed to mute microphone",unmuteGeneric:"Failed to unmute microphone",speakingWhileMuted:"Your microphone is muted",startScreenShareGeneric:"There was an issue starting screen share.",stopScreenShareGeneric:"Failed to stop screen sharing",callNetworkQualityLow:"Network quality is low.",callNoSpeakerFound:"No speakers or headphones found. Connect an audio device to hear the call.",callNoMicrophoneFound:"No microphones found. Connect an audio input device.",callMicrophoneAccessDenied:"Unable to access microphone. Click the lock in the address bar to grant permission to this webpage.",callMicrophoneAccessDeniedSafari:"Unable to access microphone. Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",callMicrophoneMutedBySystem:"You are muted by your system.",callMicrophoneUnmutedBySystem:"Your microphone recovered and you were unmuted by your system.",callMacOsMicrophoneAccessDenied:"Unable to access microphone. Grant microphone permission in your macOS privacy settings.",callLocalVideoFreeze:"Network bandwidth is poor. Your video may appear paused for others on the call.",callCameraAccessDenied:"Unable to access camera. Click the lock in the address bar to grant permission to this webpage.",callCameraAccessDeniedSafari:"Unable to access camera. Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",callCameraAlreadyInUse:"Unable to access camera. It may already be in use by another application.",callVideoStoppedBySystem:"Your video has been stopped by your system.",callVideoRecoveredBySystem:"Your video has resumed.",callMacOsCameraAccessDenied:"MacOS is blocking access to your camera. Update your privacy settings to allow this browser to access your camera.",callMacOsScreenShareAccessDenied:"MacOS is blocking screen sharing. Update your privacy settings to allow this browser to record your screen.",dismissButtonAriaLabel:"Close",failedToJoinCallGeneric:"Failed to join call.",failedToJoinCallInvalidMeetingLink:"Unable to join Meeting. Invalid Link.",cameraFrozenForRemoteParticipants:"Users in the call are having issues seeing your video. Please check your devices and network.",unableToStartVideoEffect:"Unable to apply video effect."};var videoGallery$k={screenIsBeingSharedMessage:"You are sharing your screen",screenShareLoadingMessage:"Loading {participant}'s screen",localVideoLabel:"You",localVideoCameraSwitcherLabel:"Switch camera",localVideoMovementLabel:"Movable Local Video Tile",localVideoSelectedDescription:"{cameraName} selected",displayNamePlaceholder:"Unnamed participant",fitRemoteParticipantToFrame:"Fit to frame",fillRemoteParticipantFrame:"Fill frame",pinParticipantForMe:"Pin for me",pinParticipantForMeLimitReached:"Pin (limit reached)",unpinParticipantForMe:"Unpin",pinParticipantMenuItemAriaLabel:"Pin {participantName}",unpinParticipantMenuItemAriaLabel:"Unpin {participantName}",pinnedParticipantAnnouncementAriaLabel:"Pinned {participantName}",unpinnedParticipantAnnouncementAriaLabel:"Unpinned {participantName}"};var dialpad$k={placeholderText:"Enter phone number",deleteButtonAriaLabel:"Delete"};var holdButton$k={onLabel:"Resume",offLabel:"Hold",tooltipOnContent:"Resume call",tooltipOffContent:"Hold call"};var videoTile$k={participantStateRinging:"Calling...",participantStateHold:"On hold"};var CameraAndMicrophoneSitePermissionsRequest$k={primaryText:"Allow {appName} to use your camera and microphone",secondaryText:"This is so participants can see and hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera and microphone",ariaLabel:"Allow camera and microphone access"};var CameraSitePermissionsRequest$k={primaryText:"Allow {appName} to use your camera",secondaryText:"This is so participants can see you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera",ariaLabel:"Allow camera access"};var MicrophoneSitePermissionsRequest$k={primaryText:"Allow {appName} to use your microphone",secondaryText:"This is so participants can hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without microphone",ariaLabel:"Allow microphone access"};var CameraAndMicrophoneSitePermissionsCheck$k={primaryText:"Checking for camera and microphone access",secondaryText:"Allow access if prompted. This is so participants can see and hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera and microphone",ariaLabel:"Checking for camera and microphone access. Allow access if prompted."};var CameraSitePermissionsCheck$k={primaryText:"Checking for camera access",secondaryText:"Allow access if prompted. This is so participants can see you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without camera",ariaLabel:"Checking for camera access. Allow access if prompted."};var MicrophoneSitePermissionsCheck$k={primaryText:"Checking for microphone access",secondaryText:"Allow access if prompted. This is so participants can hear you.",linkText:"Need help? Get troubleshooting help",primaryButtonText:"Continue without microphone",ariaLabel:"Checking for microphone access. Allow access if prompted."};var CameraAndMicrophoneSitePermissionsDenied$k={primaryText:"Unable to access camera and microphone",secondaryText:"Click the lock icon in the address bar to grant microphone permissions to this webpage. A page refresh may be required.",primaryButtonText:"Continue without camera and microphone",linkText:"Need help? Get troubleshooting help"};var CameraAndMicrophoneSitePermissionsDeniedSafari$k={primaryText:"Unable to access camera and microphone",secondaryText:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",primaryButtonText:"Continue without camera and microphone",linkText:"Need help? Get troubleshooting help"};var CameraSitePermissionsDenied$k={primaryText:"Unable to access camera",secondaryText:"Click the lock icon in the address bar to grant camera permissions to this webpage. A page refresh may be required.",primaryButtonText:"Continue without camera",linkText:"Need help? Get troubleshooting help"};var MicrophoneSitePermissionsDenied$k={primaryText:"Unable to access microphone",secondaryText:"Click the lock icon in the address bar to grant microphone permissions to this webpage. A page refresh may be required.",primaryButtonText:"Continue without microphone",linkText:"Need help? Get troubleshooting help"};var CameraSitePermissionsDeniedSafari$k={primaryText:"Unable to access camera",secondaryText:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",primaryButtonText:"Continue without camera",linkText:"Need help? Get troubleshooting help"};var MicrophoneSitePermissionsDeniedSafari$k={primaryText:"Unable to access microphone",secondaryText:"Refresh the page to allow permissions, or check this browser’s settings and verify permissions are enabled for this website.",primaryButtonText:"Continue without microphone",linkText:"Need help? Get troubleshooting help"};var UnsupportedBrowser$l={primaryText:"Browser not supported",secondaryText:"Please join this call using a compatible browser.",moreHelpLinkText:"See compatibility requirements"};var UnsupportedBrowserVersion$l={primaryText:"Browser update needed",secondaryText:"To ensure the best call possible, please update your browser and then try joining the call again.",moreHelpLinkText:"See compatibility requirements",continueAnywayButtonText:"Start call without updating"};var UnsupportedOperatingSystem$l={primaryText:"Operating system not supported",secondaryText:"Please join this call using a device with a compatible operating system.",moreHelpLinkText:"See compatibility requirements"};var BrowserPermissionDenied$k={primaryText:"Can't use your camera or microphone",secondaryText:"Your browser might not have access to your camera or microphone. To fix this, open System Preferences.",primaryButtonText:"Try again",linkText:"Need help? Get troubleshooting help"};var BrowserPermissionDeniedIOS$k={primaryText:"Allow microphone access to continue",secondaryText:"So other participants can hear you.",primaryButtonText:"Try again",imageAltText:"Microphone and camera device permission location for iOS",linkText:"Need help? Get troubleshooting help",step1Text:"Go to the Settings app",step2Text:"Scroll down to settings for this browser",step3Text:"Turn on Microphone (Camera optional)",step4Text:"Try joining the call again",step1DigitText:"1",step2DigitText:"2",step3DigitText:"3",step4DigitText:"4"};var verticalGallery$k={leftNavButtonAriaLabel:"previous page",rightNavButtonAriaLabel:"next page"};var AttendeeRole="Attendee";var en_US$1 = {participantItem:participantItem$k,ParticipantList:ParticipantList$l,typingIndicator:typingIndicator$k,sendBox:sendBox$k,mentionPopover:mentionPopover$k,imageGallery:imageGallery$k,messageStatusIndicator:messageStatusIndicator$k,endCallButton:endCallButton$k,cameraButton:cameraButton$k,microphoneButton:microphoneButton$k,devicesButton:devicesButton$k,participantsButton:participantsButton$k,screenShareButton:screenShareButton$k,raiseHandButton:raiseHandButton$k,messageThread:messageThread$k,errorBar:errorBar$k,videoGallery:videoGallery$k,dialpad:dialpad$k,holdButton:holdButton$k,videoTile:videoTile$k,CameraAndMicrophoneSitePermissionsRequest:CameraAndMicrophoneSitePermissionsRequest$k,CameraSitePermissionsRequest:CameraSitePermissionsRequest$k,MicrophoneSitePermissionsRequest:MicrophoneSitePermissionsRequest$k,CameraAndMicrophoneSitePermissionsCheck:CameraAndMicrophoneSitePermissionsCheck$k,CameraSitePermissionsCheck:CameraSitePermissionsCheck$k,MicrophoneSitePermissionsCheck:MicrophoneSitePermissionsCheck$k,CameraAndMicrophoneSitePermissionsDenied:CameraAndMicrophoneSitePermissionsDenied$k,CameraAndMicrophoneSitePermissionsDeniedSafari:CameraAndMicrophoneSitePermissionsDeniedSafari$k,CameraSitePermissionsDenied:CameraSitePermissionsDenied$k,MicrophoneSitePermissionsDenied:MicrophoneSitePermissionsDenied$k,CameraSitePermissionsDeniedSafari:CameraSitePermissionsDeniedSafari$k,MicrophoneSitePermissionsDeniedSafari:MicrophoneSitePermissionsDeniedSafari$k,UnsupportedBrowser:UnsupportedBrowser$l,UnsupportedBrowserVersion:UnsupportedBrowserVersion$l,UnsupportedOperatingSystem:UnsupportedOperatingSystem$l,BrowserPermissionDenied:BrowserPermissionDenied$k,BrowserPermissionDeniedIOS:BrowserPermissionDeniedIOS$k,verticalGallery:verticalGallery$k,AttendeeRole:AttendeeRole};
|
|
4996
5026
|
|
|
4997
5027
|
// Copyright (c) Microsoft Corporation.
|
|
4998
5028
|
/**
|
|
@@ -11703,13 +11733,23 @@ const iconStyles$2 = react.mergeStyles({
|
|
|
11703
11733
|
});
|
|
11704
11734
|
|
|
11705
11735
|
// Copyright (c) Microsoft Corporation.
|
|
11706
|
-
const onRenderParticipantDefault = (participant, strings, myUserId, onRenderAvatar, createParticipantMenuItems, styles, onParticipantClick, showParticipantOverflowTooltip, participantAriaLabelledBy, theme) => {
|
|
11736
|
+
const onRenderParticipantDefault = (participant, strings, myUserId, onRenderAvatar, createParticipantMenuItems, styles, onParticipantClick, showParticipantOverflowTooltip, participantAriaLabelledBy, theme, attendeeRoleString) => {
|
|
11707
11737
|
const callingParticipant = participant;
|
|
11708
11738
|
let presence = undefined;
|
|
11709
11739
|
if (callingParticipant) {
|
|
11710
11740
|
presence = react.PersonaPresence.none;
|
|
11711
11741
|
}
|
|
11712
11742
|
const menuItems = createParticipantMenuItems && createParticipantMenuItems(participant);
|
|
11743
|
+
let displayName = participant.displayName;
|
|
11744
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
11745
|
+
const formatDisplayName = () => {
|
|
11746
|
+
if (displayName && attendeeRoleString) {
|
|
11747
|
+
return _formatString(displayName, { AttendeeRole: attendeeRoleString });
|
|
11748
|
+
}
|
|
11749
|
+
return displayName;
|
|
11750
|
+
};
|
|
11751
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
11752
|
+
displayName = formatDisplayName();
|
|
11713
11753
|
const onRenderIcon = (callingParticipant === null || callingParticipant === void 0 ? void 0 : callingParticipant.isScreenSharing) ||
|
|
11714
11754
|
(callingParticipant === null || callingParticipant === void 0 ? void 0 : callingParticipant.isMuted) ||
|
|
11715
11755
|
(
|
|
@@ -11731,7 +11771,7 @@ const onRenderParticipantDefault = (participant, strings, myUserId, onRenderAvat
|
|
|
11731
11771
|
callingParticipant.isMuted && (React__default["default"].createElement(react.Icon, { iconName: "ParticipantItemMicOff", className: iconStyles$2, ariaLabel: strings.mutedIconLabel }))));
|
|
11732
11772
|
}
|
|
11733
11773
|
: () => null;
|
|
11734
|
-
return (React__default["default"].createElement(ParticipantItem, { styles: styles, key: participant.userId, userId: participant.userId, displayName:
|
|
11774
|
+
return (React__default["default"].createElement(ParticipantItem, { styles: styles, key: participant.userId, userId: participant.userId, displayName: displayName, me: myUserId ? participant.userId === myUserId : false, menuItems: menuItems, presence: presence, onRenderIcon: onRenderIcon, onRenderAvatar: onRenderAvatar, onClick: () => onParticipantClick === null || onParticipantClick === void 0 ? void 0 : onParticipantClick(participant), showParticipantOverflowTooltip: showParticipantOverflowTooltip,
|
|
11735
11775
|
/* @conditional-compile-remove(one-to-n-calling) */
|
|
11736
11776
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
11737
11777
|
participantState: callingParticipant.state, ariaLabelledBy: participantAriaLabelledBy }));
|
|
@@ -11796,6 +11836,8 @@ const ParticipantList$k = (props) => {
|
|
|
11796
11836
|
const participantItemStrings = useLocale$1().strings.participantItem;
|
|
11797
11837
|
/* @conditional-compile-remove(total-participant-count) */
|
|
11798
11838
|
const participantListStrings = useLocale$1().strings.ParticipantList;
|
|
11839
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
11840
|
+
const attendeeRoleString = useLocale$1().strings.AttendeeRole;
|
|
11799
11841
|
const displayedParticipants = React.useMemo(() => {
|
|
11800
11842
|
return onRenderParticipant ? participants : getParticipantsForDefaultRender(participants, excludeMe, myUserId);
|
|
11801
11843
|
}, [participants, excludeMe, myUserId, onRenderParticipant]);
|
|
@@ -11836,7 +11878,9 @@ const ParticipantList$k = (props) => {
|
|
|
11836
11878
|
? onRenderParticipant(participant)
|
|
11837
11879
|
: onRenderParticipantDefault(participant, participantItemStrings, myUserId, onRenderAvatar, createParticipantMenuItems, participantItemStyles, props.onParticipantClick, showParticipantOverflowTooltip, participantAriaLabelledBy,
|
|
11838
11880
|
/* @conditional-compile-remove(raise-hand) */
|
|
11839
|
-
theme
|
|
11881
|
+
theme,
|
|
11882
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
11883
|
+
attendeeRoleString)),
|
|
11840
11884
|
/* @conditional-compile-remove(total-participant-count) */ overflowParticipantCountString &&
|
|
11841
11885
|
totalParticipantCount &&
|
|
11842
11886
|
totalParticipantCount > displayedParticipants.length && (React__default["default"].createElement(react.Text, { style: { fontWeight: 400, margin: '0.5rem' } }, _formatString(overflowParticipantCountString, {
|
|
@@ -12780,6 +12824,18 @@ const _RemoteVideoTile = React__default["default"].memo((props) => {
|
|
|
12780
12824
|
setDrawerMenuItemProps(convertContextualMenuItemsToDrawerMenuItemProps(contextualMenuProps, () => setDrawerMenuItemProps([])));
|
|
12781
12825
|
}
|
|
12782
12826
|
}, [setDrawerMenuItemProps, contextualMenuProps]);
|
|
12827
|
+
let displayName = remoteParticipant.displayName || (strings === null || strings === void 0 ? void 0 : strings.displayNamePlaceholder);
|
|
12828
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
12829
|
+
const attendeeRoleString = useLocale$1().strings.AttendeeRole;
|
|
12830
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
12831
|
+
const formatDisplayName = () => {
|
|
12832
|
+
if (displayName && attendeeRoleString) {
|
|
12833
|
+
return _formatString(displayName, { AttendeeRole: attendeeRoleString });
|
|
12834
|
+
}
|
|
12835
|
+
return displayName;
|
|
12836
|
+
};
|
|
12837
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
12838
|
+
displayName = formatDisplayName();
|
|
12783
12839
|
return (React__default["default"].createElement(react.Stack
|
|
12784
12840
|
/* @conditional-compile-remove(pinned-participants) */
|
|
12785
12841
|
, {
|
|
@@ -12787,7 +12843,7 @@ const _RemoteVideoTile = React__default["default"].memo((props) => {
|
|
|
12787
12843
|
tabIndex: menuKind === 'drawer' ? 0 : undefined,
|
|
12788
12844
|
/* @conditional-compile-remove(pinned-participants) */
|
|
12789
12845
|
onKeyDown: menuKind === 'drawer' ? onKeyDown : undefined, style: remoteVideoTileWrapperStyle },
|
|
12790
|
-
React__default["default"].createElement(VideoTile, Object.assign({ key: userId, userId: userId, initialsName: (_a = remoteParticipant.displayName) !== null && _a !== void 0 ? _a : '', renderElement: renderVideoStreamElement, displayName:
|
|
12846
|
+
React__default["default"].createElement(VideoTile, Object.assign({ key: userId, userId: userId, initialsName: (_a = remoteParticipant.displayName) !== null && _a !== void 0 ? _a : '', renderElement: renderVideoStreamElement, displayName: displayName, onRenderPlaceholder: onRenderAvatar, isMuted: remoteParticipant.isMuted,
|
|
12791
12847
|
/* @conditional-compile-remove(raise-hand) */
|
|
12792
12848
|
raisedHand: remoteParticipant.raisedHand, isSpeaking: remoteParticipant.isSpeaking, showMuteIndicator: showMuteIndicator, personaMinSize: props.personaMinSize, showLabel: props.showLabel,
|
|
12793
12849
|
/* @conditional-compile-remove(one-to-n-calling) */
|
|
@@ -18422,7 +18478,7 @@ const _dominantSpeakersWithFlatId = (dominantSpeakers) => {
|
|
|
18422
18478
|
return (_a = dominantSpeakers === null || dominantSpeakers === void 0 ? void 0 : dominantSpeakers.speakersList) === null || _a === void 0 ? void 0 : _a.map(toFlatCommunicationIdentifier);
|
|
18423
18479
|
};
|
|
18424
18480
|
/** @internal */
|
|
18425
|
-
const _videoGalleryRemoteParticipantsMemo = (remoteParticipants) => {
|
|
18481
|
+
const _videoGalleryRemoteParticipantsMemo = (remoteParticipants, isHideAttendeeNamesEnabled, localUserRole) => {
|
|
18426
18482
|
if (!remoteParticipants) {
|
|
18427
18483
|
return [];
|
|
18428
18484
|
}
|
|
@@ -18438,7 +18494,10 @@ const _videoGalleryRemoteParticipantsMemo = (remoteParticipants) => {
|
|
|
18438
18494
|
})
|
|
18439
18495
|
.map((participant) => {
|
|
18440
18496
|
const state = _isRingingPSTNParticipant(participant);
|
|
18441
|
-
|
|
18497
|
+
let displayName = participant.displayName;
|
|
18498
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
18499
|
+
displayName = maskDisplayNameWithRole(displayName, localUserRole, participant.role, isHideAttendeeNamesEnabled);
|
|
18500
|
+
return memoizedFn(toFlatCommunicationIdentifier(participant.identifier), participant.isMuted, checkIsSpeaking(participant), participant.videoStreams, state, displayName,
|
|
18442
18501
|
/* @conditional-compile-remove(raise-hand) */
|
|
18443
18502
|
participant.raisedHand);
|
|
18444
18503
|
}));
|
|
@@ -18541,14 +18600,18 @@ const videoGallerySelector = reselect.createSelector([
|
|
|
18541
18600
|
/* @conditional-compile-remove(rooms) */
|
|
18542
18601
|
getRole$1,
|
|
18543
18602
|
/* @conditional-compile-remove(raise-hand) */
|
|
18544
|
-
getLocalParticipantRaisedHand$1
|
|
18603
|
+
getLocalParticipantRaisedHand$1,
|
|
18604
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
18605
|
+
isHideAttendeeNamesEnabled
|
|
18545
18606
|
], (screenShareRemoteParticipantId, remoteParticipants, localVideoStreams, isMuted, isScreenSharingOn, displayName, identifier, dominantSpeakers,
|
|
18546
18607
|
/* @conditional-compile-remove(optimal-video-count) */
|
|
18547
18608
|
optimalVideoCount,
|
|
18548
18609
|
/* @conditional-compile-remove(rooms) */
|
|
18549
18610
|
role,
|
|
18550
18611
|
/* @conditional-compile-remove(raise-hand) */
|
|
18551
|
-
raisedHand
|
|
18612
|
+
raisedHand,
|
|
18613
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
18614
|
+
isHideAttendeeNamesEnabled) => {
|
|
18552
18615
|
const screenShareRemoteParticipant = screenShareRemoteParticipantId && remoteParticipants
|
|
18553
18616
|
? remoteParticipants[screenShareRemoteParticipantId]
|
|
18554
18617
|
: undefined;
|
|
@@ -18567,7 +18630,11 @@ raisedHand) => {
|
|
|
18567
18630
|
role,
|
|
18568
18631
|
/* @conditional-compile-remove(raise-hand) */
|
|
18569
18632
|
raisedHand),
|
|
18570
|
-
remoteParticipants: _videoGalleryRemoteParticipantsMemo(updateUserDisplayNamesTrampoline$2(remoteParticipants ? Object.values(remoteParticipants) : noRemoteParticipants)
|
|
18633
|
+
remoteParticipants: _videoGalleryRemoteParticipantsMemo(updateUserDisplayNamesTrampoline$2(remoteParticipants ? Object.values(remoteParticipants) : noRemoteParticipants),
|
|
18634
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
18635
|
+
isHideAttendeeNamesEnabled,
|
|
18636
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
18637
|
+
role),
|
|
18571
18638
|
dominantSpeakers: dominantSpeakerIds,
|
|
18572
18639
|
/* @conditional-compile-remove(optimal-video-count) */
|
|
18573
18640
|
maxRemoteVideoStreams: optimalVideoCount
|
|
@@ -18608,7 +18675,7 @@ const convertRemoteParticipantToParticipantListParticipantBeta = (userId, displa
|
|
|
18608
18675
|
};
|
|
18609
18676
|
|
|
18610
18677
|
// Copyright (c) Microsoft Corporation.
|
|
18611
|
-
const convertRemoteParticipantsToParticipantListParticipants = (remoteParticipants, localUserCanRemoveOthers) => {
|
|
18678
|
+
const convertRemoteParticipantsToParticipantListParticipants = (remoteParticipants, localUserCanRemoveOthers, isHideAttendeeNamesEnabled, localUserRole) => {
|
|
18612
18679
|
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
18613
18680
|
const conversionCallback = (memoizeFn) => {
|
|
18614
18681
|
return (remoteParticipants
|
|
@@ -18631,7 +18698,10 @@ const convertRemoteParticipantsToParticipantListParticipants = (remoteParticipan
|
|
|
18631
18698
|
* and mapping their state to be 'Ringing'
|
|
18632
18699
|
*/
|
|
18633
18700
|
const state = _isRingingPSTNParticipant(participant);
|
|
18634
|
-
|
|
18701
|
+
let displayName = participant.displayName;
|
|
18702
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
18703
|
+
displayName = maskDisplayNameWithRole(displayName, localUserRole, participant.role, isHideAttendeeNamesEnabled);
|
|
18704
|
+
return memoizeFn(toFlatCommunicationIdentifier(participant.identifier), displayName, state, participant.isMuted, isScreenSharing, participant.isSpeaking,
|
|
18635
18705
|
/* @conditional-compile-remove(raise-hand) */
|
|
18636
18706
|
participant.raisedHand, localUserCanRemoveOthers);
|
|
18637
18707
|
})
|
|
@@ -18666,13 +18736,21 @@ const participantListSelector = reselect.createSelector([
|
|
|
18666
18736
|
getIsMuted,
|
|
18667
18737
|
/* @conditional-compile-remove(raise-hand) */ getLocalParticipantRaisedHand$1,
|
|
18668
18738
|
getRole$1,
|
|
18669
|
-
getParticipantCount
|
|
18739
|
+
getParticipantCount,
|
|
18740
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
18741
|
+
isHideAttendeeNamesEnabled
|
|
18670
18742
|
], (userId, displayName, remoteParticipants, isScreenSharingOn, isMuted,
|
|
18671
18743
|
/* @conditional-compile-remove(raise-hand) */
|
|
18672
|
-
raisedHand, role, partitipantCount
|
|
18744
|
+
raisedHand, role, partitipantCount,
|
|
18745
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
18746
|
+
isHideAttendeeNamesEnabled) => {
|
|
18673
18747
|
const localUserCanRemoveOthers = localUserCanRemoveOthersTrampoline(role);
|
|
18674
18748
|
const participants = remoteParticipants
|
|
18675
|
-
? convertRemoteParticipantsToParticipantListParticipants(updateUserDisplayNamesTrampoline$1(Object.values(remoteParticipants)), localUserCanRemoveOthers
|
|
18749
|
+
? convertRemoteParticipantsToParticipantListParticipants(updateUserDisplayNamesTrampoline$1(Object.values(remoteParticipants)), localUserCanRemoveOthers,
|
|
18750
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
18751
|
+
isHideAttendeeNamesEnabled,
|
|
18752
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
18753
|
+
role)
|
|
18676
18754
|
: [];
|
|
18677
18755
|
participants.push({
|
|
18678
18756
|
userId: userId,
|
|
@@ -23747,10 +23825,6 @@ const getIsScreenShareOn = (state) => { var _a, _b; return (_b = (_a = state.cal
|
|
|
23747
23825
|
* @private
|
|
23748
23826
|
*/
|
|
23749
23827
|
const getLocalParticipantRaisedHand = (state) => { var _a; return (_a = state.call) === null || _a === void 0 ? void 0 : _a.raiseHand.localParticipantRaisedHand; };
|
|
23750
|
-
/**
|
|
23751
|
-
* @private
|
|
23752
|
-
*/
|
|
23753
|
-
const getIsPreviewCameraOn = (state) => _isPreviewOn(state.devices);
|
|
23754
23828
|
/**
|
|
23755
23829
|
* @private
|
|
23756
23830
|
*/
|
|
@@ -27456,7 +27530,6 @@ const MediaGallery = (props) => {
|
|
|
27456
27530
|
return (React__default["default"].createElement(react.Stack, { className: react.mergeStyles({ position: 'absolute', height: '100%', width: '100%' }) },
|
|
27457
27531
|
React__default["default"].createElement(react.Stack, { styles: { root: { margin: 'auto', maxHeight: '100%' } } }, (options === null || options === void 0 ? void 0 : options.coinSize) && (React__default["default"].createElement(AvatarPersona, Object.assign({ userId: userId }, options, { dataProvider: props.onFetchAvatarPersonaData }))))));
|
|
27458
27532
|
}, [props.onFetchAvatarPersonaData]);
|
|
27459
|
-
useLocalVideoStartTrigger(!!props.isVideoStreamOn);
|
|
27460
27533
|
/* @conditional-compile-remove(pinned-participants) */
|
|
27461
27534
|
const remoteVideoTileMenuOptions = React.useMemo(() => {
|
|
27462
27535
|
var _a;
|
|
@@ -27521,32 +27594,6 @@ const MediaGallery = (props) => {
|
|
|
27521
27594
|
React__default["default"].createElement(Announcer$1, { announcementString: announcerString, ariaLive: 'polite' }),
|
|
27522
27595
|
VideoGalleryMemoized));
|
|
27523
27596
|
};
|
|
27524
|
-
/**
|
|
27525
|
-
* @private
|
|
27526
|
-
*
|
|
27527
|
-
* `shouldTransition` is an extra predicate that controls whether this hooks actually transitions the call.
|
|
27528
|
-
* The rule of hooks disallows calling the hook conditionally, so this predicate can be used to make the decision.
|
|
27529
|
-
*/
|
|
27530
|
-
const useLocalVideoStartTrigger = (isLocalVideoAvailable, shouldTransition) => {
|
|
27531
|
-
// Once a call is joined, we need to transition the local preview camera setting into the call.
|
|
27532
|
-
// This logic is needed on any screen that we might join a call from:
|
|
27533
|
-
// - The Media gallery
|
|
27534
|
-
// - The lobby page
|
|
27535
|
-
// - The networkReconnect interstitial that may show at the start of a call.
|
|
27536
|
-
//
|
|
27537
|
-
// @TODO: Can we simply have the callHandlers handle this transition logic.
|
|
27538
|
-
const [isButtonStatusSynced, setIsButtonStatusSynced] = React.useState(false);
|
|
27539
|
-
const isPreviewCameraOn = useSelector$1(getIsPreviewCameraOn);
|
|
27540
|
-
const mediaGalleryHandlers = useHandlers();
|
|
27541
|
-
React.useEffect(() => {
|
|
27542
|
-
if (shouldTransition !== false) {
|
|
27543
|
-
if (isPreviewCameraOn && !isLocalVideoAvailable && !isButtonStatusSynced) {
|
|
27544
|
-
mediaGalleryHandlers.onStartLocalVideo();
|
|
27545
|
-
}
|
|
27546
|
-
setIsButtonStatusSynced(true);
|
|
27547
|
-
}
|
|
27548
|
-
}, [shouldTransition, isButtonStatusSynced, isPreviewCameraOn, isLocalVideoAvailable, mediaGalleryHandlers]);
|
|
27549
|
-
};
|
|
27550
27597
|
const mediaGalleryContainerStyles = { width: '100%', height: '100%' };
|
|
27551
27598
|
const localVideoTileLayoutTrampoline = (
|
|
27552
27599
|
/* @conditional-compile-remove(click-to-call) */ localTileOptions) => {
|
|
@@ -27669,9 +27716,6 @@ const NetworkReconnectTile = (props) => {
|
|
|
27669
27716
|
const palette = useTheme().palette;
|
|
27670
27717
|
const strings = useLocale().strings.call;
|
|
27671
27718
|
const handlers = useHandlers();
|
|
27672
|
-
// This tile may be shown at the beginning of a call.
|
|
27673
|
-
// So we need to transition local video to the call.
|
|
27674
|
-
useLocalVideoStartTrigger(!!props.localParticipantVideoStream.isAvailable);
|
|
27675
27719
|
return (React__default["default"].createElement(ExpandedLocalVideoTile, Object.assign({ localParticipantVideoStream: props.localParticipantVideoStream, overlayContent: React__default["default"].createElement(react.Stack, { verticalFill: true, horizontalAlign: "center", verticalAlign: "center", className: react.mergeStyles(containerStyle$1), "aria-atomic": true },
|
|
27676
27720
|
React__default["default"].createElement(react.Stack, { horizontal: true, className: react.mergeStyles(titleContainerStyle) },
|
|
27677
27721
|
React__default["default"].createElement(CallCompositeIcon, { iconName: "NetworkReconnectIcon", className: react.mergeStyles(titleStyle$1(palette, isVideoReady)) }),
|
|
@@ -28977,7 +29021,6 @@ const LobbyPage = (props) => {
|
|
|
28977
29021
|
const callState = useSelector$1(getCallStatus);
|
|
28978
29022
|
const inLobby = callState === 'InLobby';
|
|
28979
29023
|
const participants = (_a = useSelector$1(getRemoteParticipants)) !== null && _a !== void 0 ? _a : {};
|
|
28980
|
-
useLocalVideoStartTrigger(lobbyProps.localParticipantVideoStream.isAvailable, inLobby);
|
|
28981
29024
|
// Reduce the controls shown when mobile view is enabled.
|
|
28982
29025
|
let callControlOptions = props.mobileView
|
|
28983
29026
|
? reduceCallControlsForMobile((_b = props.options) === null || _b === void 0 ? void 0 : _b.callControls)
|
|
@@ -29625,7 +29668,10 @@ const MainScreen = (props) => {
|
|
|
29625
29668
|
switch (page) {
|
|
29626
29669
|
case 'configuration':
|
|
29627
29670
|
pageElement = (React__default["default"].createElement(ConfigurationPage, { mobileView: props.mobileView, startCallHandler: () => {
|
|
29628
|
-
adapter.joinCall(
|
|
29671
|
+
adapter.joinCall({
|
|
29672
|
+
microphoneOn: 'keep',
|
|
29673
|
+
cameraOn: 'keep'
|
|
29674
|
+
});
|
|
29629
29675
|
}, updateSidePaneRenderer: setSidePaneRenderer, latestErrors: latestErrors, onDismissError: onDismissError, modalLayerHostId: props.modalLayerHostId,
|
|
29630
29676
|
/* @conditional-compile-remove(call-readiness) */
|
|
29631
29677
|
deviceChecks: (_d = props.options) === null || _d === void 0 ? void 0 : _d.deviceChecks,
|
|
@@ -30330,36 +30376,28 @@ class AzureCommunicationCallAdapter {
|
|
|
30330
30376
|
throw new Error('You are already in the call!');
|
|
30331
30377
|
}
|
|
30332
30378
|
return this.teeErrorToEventEmitter(() => {
|
|
30333
|
-
|
|
30334
|
-
let
|
|
30335
|
-
let
|
|
30336
|
-
//
|
|
30337
|
-
if (typeof options
|
|
30338
|
-
|
|
30339
|
-
|
|
30340
|
-
// TODO: find a way to expose stream to here
|
|
30341
|
-
videoOptions = { localVideoStreams: this.localStream ? [this.localStream] : undefined };
|
|
30379
|
+
// Default to keeping camera/mic on if no override argument specified
|
|
30380
|
+
let shouldCameraBeOnInCall = this.getState().cameraStatus === 'On';
|
|
30381
|
+
let shouldMicrophoneBeOnInCall = this.getState().isLocalPreviewMicrophoneEnabled;
|
|
30382
|
+
// Apply override arguments
|
|
30383
|
+
if (typeof options === 'boolean') {
|
|
30384
|
+
// Deprecated joinCall API (boolen)
|
|
30385
|
+
shouldMicrophoneBeOnInCall = options;
|
|
30342
30386
|
}
|
|
30343
|
-
else {
|
|
30344
|
-
//
|
|
30345
|
-
|
|
30346
|
-
|
|
30347
|
-
|
|
30348
|
-
|
|
30349
|
-
|
|
30350
|
-
|
|
30351
|
-
muted: !(microphoneState === 'keep' ? this.getState().isLocalPreviewMicrophoneEnabled : microphoneState)
|
|
30352
|
-
};
|
|
30353
|
-
const selectedCamera = getSelectedCameraFromAdapterState(this.getState());
|
|
30354
|
-
const localStream = selectedCamera ? new communicationCalling.LocalVideoStream(selectedCamera) : undefined;
|
|
30355
|
-
const precallVideoOptions = { localVideoStreams: this.localStream ? [this.localStream] : undefined };
|
|
30356
|
-
videoOptions =
|
|
30357
|
-
cameraState === 'keep'
|
|
30358
|
-
? precallVideoOptions
|
|
30359
|
-
: localStream && (options === null || options === void 0 ? void 0 : options.cameraOn)
|
|
30360
|
-
? { localVideoStreams: [localStream] }
|
|
30361
|
-
: {};
|
|
30387
|
+
else if (typeof options === 'object') {
|
|
30388
|
+
// Options bag API
|
|
30389
|
+
if (options.microphoneOn && options.microphoneOn !== 'keep') {
|
|
30390
|
+
shouldMicrophoneBeOnInCall = options.microphoneOn;
|
|
30391
|
+
}
|
|
30392
|
+
if (options.cameraOn && options.cameraOn !== 'keep') {
|
|
30393
|
+
shouldCameraBeOnInCall = options.cameraOn;
|
|
30394
|
+
}
|
|
30362
30395
|
}
|
|
30396
|
+
const audioOptions = { muted: !shouldMicrophoneBeOnInCall };
|
|
30397
|
+
const selectedCamera = getSelectedCameraFromAdapterState(this.getState());
|
|
30398
|
+
const videoOptions = selectedCamera && shouldCameraBeOnInCall
|
|
30399
|
+
? { localVideoStreams: [new communicationCalling.LocalVideoStream(selectedCamera)] }
|
|
30400
|
+
: {};
|
|
30363
30401
|
/* @conditional-compile-remove(teams-adhoc-call) */
|
|
30364
30402
|
/* @conditional-compile-remove(PSTN-calls) */
|
|
30365
30403
|
if (isOutboundCall(this.locator)) {
|
|
@@ -31930,7 +31968,10 @@ function callWithChatAdapterStateFromBackingStates(callAdapter, chatAdapter) {
|
|
|
31930
31968
|
/* @conditional-compile-remove(video-background-effects) */
|
|
31931
31969
|
onResolveVideoEffectDependency: callAdapterState.onResolveVideoEffectDependency,
|
|
31932
31970
|
/* @conditional-compile-remove(video-background-effects) */
|
|
31933
|
-
selectedVideoBackgroundEffect: callAdapterState.selectedVideoBackgroundEffect
|
|
31971
|
+
selectedVideoBackgroundEffect: callAdapterState.selectedVideoBackgroundEffect,
|
|
31972
|
+
/* @conditional-compile-remove(hide-attendee-name) */
|
|
31973
|
+
/** Hide attendee names in teams meeting */
|
|
31974
|
+
hideAttendeeNames: callAdapterState.hideAttendeeNames
|
|
31934
31975
|
};
|
|
31935
31976
|
}
|
|
31936
31977
|
/**
|