Родитель
68b41d4840
Коммит
b3977e581f
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"type": "prerelease",
|
||||
"area": "feature",
|
||||
"workstream": "DNS",
|
||||
"comment": "ARB comments",
|
||||
"packageName": "@azure/communication-react",
|
||||
"email": "97124699+prabhjot-msft@users.noreply.github.com",
|
||||
"dependentChangeType": "patch"
|
||||
}
|
|
@ -47,6 +47,10 @@ export interface CallingHandlers extends CommonCallingHandlers {
|
|||
export type CallingHandlersOptions = {
|
||||
onResolveVideoBackgroundEffectsDependency?: () => Promise<VideoBackgroundEffectsDependency>;
|
||||
/* @conditional-compile-remove(DNS) */
|
||||
/**
|
||||
* Dependency resolver for deep noise suppression effect.
|
||||
* @beta
|
||||
*/
|
||||
onResolveDeepNoiseSuppressionDependency?: () => Promise<DeepNoiseSuppressionEffectDependency>;
|
||||
};
|
||||
|
||||
|
|
|
@ -507,7 +507,7 @@ export type CallAdapterClientState = {
|
|||
onResolveVideoEffectDependency?: () => Promise<VideoBackgroundEffectsDependency>;
|
||||
onResolveDeepNoiseSuppressionDependency?: () => Promise<DeepNoiseSuppressionEffectDependency>;
|
||||
deepNoiseSuppressionOnByDefault?: boolean;
|
||||
hideNoiseSuppressionButton?: boolean;
|
||||
hideDeepNoiseSuppressionButton?: boolean;
|
||||
selectedVideoBackgroundEffect?: VideoBackgroundEffect;
|
||||
acceptedTransferCallState?: CallState;
|
||||
hideAttendeeNames?: boolean;
|
||||
|
@ -1400,7 +1400,7 @@ export interface CallWithChatClientState {
|
|||
environmentInfo?: EnvironmentInfo;
|
||||
hideAttendeeNames?: boolean;
|
||||
// @beta
|
||||
hideNoiseSuppressionButton?: boolean;
|
||||
hideDeepNoiseSuppressionButton?: boolean;
|
||||
isTeamsCall: boolean;
|
||||
isTeamsMeeting: boolean;
|
||||
latestCallErrors: AdapterErrors;
|
||||
|
|
|
@ -165,7 +165,7 @@ class CallContext {
|
|||
deepNoiseSuppressionOptions?: {
|
||||
onResolveDependency?: () => Promise<DeepNoiseSuppressionEffectDependency>;
|
||||
deepNoiseSuppressionOnByDefault?: boolean;
|
||||
hideNoiseSuppressionButton?: boolean;
|
||||
hideDeepNoiseSuppressionButton?: boolean;
|
||||
};
|
||||
callingSounds?: CallingSounds;
|
||||
reactionResources?: ReactionResources;
|
||||
|
@ -198,7 +198,7 @@ class CallContext {
|
|||
/* @conditional-compile-remove(DNS) */
|
||||
deepNoiseSuppressionOnByDefault: options?.deepNoiseSuppressionOptions?.deepNoiseSuppressionOnByDefault ?? true,
|
||||
/* @conditional-compile-remove(DNS) */
|
||||
hideNoiseSuppressionButton: options?.deepNoiseSuppressionOptions?.hideNoiseSuppressionButton ?? false,
|
||||
hideDeepNoiseSuppressionButton: options?.deepNoiseSuppressionOptions?.hideDeepNoiseSuppressionButton ?? false,
|
||||
selectedVideoBackgroundEffect: undefined,
|
||||
cameraStatus: undefined,
|
||||
sounds: options?.callingSounds,
|
||||
|
@ -1593,6 +1593,7 @@ export type CommonCallAdapterOptions = {
|
|||
/* @conditional-compile-remove(DNS) */
|
||||
/**
|
||||
* `DeepNoiseSuppressionEffect` options to be used for noise suppression.
|
||||
* @beta
|
||||
*/
|
||||
deepNoiseSuppressionOptions?: {
|
||||
onResolveDependency?: () => Promise<DeepNoiseSuppressionEffectDependency>;
|
||||
|
|
|
@ -189,7 +189,7 @@ export type CallAdapterClientState = {
|
|||
* @beta
|
||||
* @default false
|
||||
*/
|
||||
hideNoiseSuppressionButton?: boolean;
|
||||
hideDeepNoiseSuppressionButton?: boolean;
|
||||
/**
|
||||
* State to track the selected video background effect.
|
||||
*/
|
||||
|
|
|
@ -113,7 +113,7 @@ export const CallControls = (props: CallControlsProps & ContainerRectProps): JSX
|
|||
}, [adapter, startDeepNoiseSuppression]);
|
||||
/* @conditional-compile-remove(DNS) */
|
||||
const showNoiseSuppressionButton =
|
||||
adapter.getState().onResolveDeepNoiseSuppressionDependency && !adapter.getState().hideNoiseSuppressionButton
|
||||
adapter.getState().onResolveDeepNoiseSuppressionDependency && !adapter.getState().hideDeepNoiseSuppressionButton
|
||||
? true
|
||||
: false;
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ export interface CallWithChatClientState {
|
|||
/** State to track whether to hide the noise suppression button.
|
||||
* @beta
|
||||
*/
|
||||
hideNoiseSuppressionButton?: boolean;
|
||||
hideDeepNoiseSuppressionButton?: boolean;
|
||||
|
||||
/** State to track the selected video background effect */
|
||||
selectedVideoBackgroundEffect?: VideoBackgroundEffect;
|
||||
|
|
|
@ -236,7 +236,7 @@ export const CommonCallControlBar = (props: CommonCallControlBarProps & Containe
|
|||
/* @conditional-compile-remove(DNS) */
|
||||
const showNoiseSuppressionButton =
|
||||
props.callAdapter.getState().onResolveDeepNoiseSuppressionDependency &&
|
||||
!props.callAdapter.getState().hideNoiseSuppressionButton
|
||||
!props.callAdapter.getState().hideDeepNoiseSuppressionButton
|
||||
? true
|
||||
: false;
|
||||
/* @conditional-compile-remove(DNS) */
|
||||
|
|
Загрузка…
Ссылка в новой задаче