зеркало из
1
0
Форкнуть 0
* ARB comments

* Change files
This commit is contained in:
prabhjot-msft 2024-09-09 12:21:16 -07:00 коммит произвёл GitHub
Родитель 68b41d4840
Коммит b3977e581f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
8 изменённых файлов: 22 добавлений и 8 удалений

Просмотреть файл

@ -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) */