@cometchat/calls-sdk-javascript
Version:
Cometchat's Javascript SDK for In-app Calling.
62 lines (61 loc) • 1.83 kB
TypeScript
import { CallConstants } from "../constants";
import { TColor, TPosition } from "./common";
export interface ICallsettings {
screenShareMode?: "default" | "presenter";
ShowEndCallButton?: boolean;
ShowRecordingButton?: boolean;
StartRecordingOnCallStart?: boolean;
ShowMuteAudioButton?: boolean;
ShowPauseVideoButton?: boolean;
ShowScreenShareButton?: boolean;
ShowSwitchToVideoCallButton?: boolean;
defaultLayout?: boolean;
isAudioCall?: boolean;
isAudioOnly?: boolean;
user: {
name: string;
avatar?: string;
uid: string;
jwt?: string;
};
mode?: typeof CallConstants.MODE[keyof typeof CallConstants.MODE];
StartAudioMuted?: boolean;
StartVideoMuted?: boolean;
ShowSwitchModeButton?: boolean;
ShowVirtualBackgroundSetting?: boolean;
VirtualBackground?: {
AllowBackgroundBlur?: boolean;
AllowUserImages?: boolean;
ShowDefaultImages?: boolean;
SetImages?: string[];
EnforceBackgroundBlur?: 0 | 1 | 2;
EnforceBackgroundImage?: string;
};
AvatarMode?: "circle";
MainVideoContainerSetting?: {
videoFit?: "contain" | "cover";
zoomButton?: {
visible?: boolean;
visibility?: boolean;
position?: TPosition;
};
nameLabel?: {
visible?: boolean;
visibility?: boolean;
position?: TPosition;
color?: TColor;
};
network?: {
visible?: boolean;
visibility?: boolean;
position?: TPosition;
};
};
customCSS?: string;
analyticsSettings?: {
ANALYTICS_HOST?: string;
ANALYTICS_VERSION?: string;
ANALYTICS_PING_DISABLED?: boolean;
ANALYTICS_USE_SSL?: boolean;
};
}