你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CallWithChatAdapter interface

CallWithChatComposite 适配器接口。

扩展

继承属性

forbidAudio

禁止对指定的 User ID 进行音频作。

forbidOthersAudio

禁止 Teams 会议与会者(本地用户除外)使用音频。

forbidOthersVideo

禁止 Teams 会议与会者(本地用户除外)观看视频。

forbidVideo

禁止指定 User ID 的视频。

permitAudio

允许指定 User ID 的音频。

permitOthersAudio

允许 Teams 会议与会者(本地用户除外)使用音频。

permitOthersVideo

允许 Teams 会议与会者(本地用户除外)观看视频。

permitVideo

允许指定用户 ID 的视频。

sendDtmfTone

在 1 对 1 通话中向呼叫中的其他参与者发送 DTMF 音调

sendRealTimeText

发送实时文本

继承的方法

addParticipant(CommunicationUserIdentifier)
addParticipant(PhoneNumberIdentifier, AddPhoneNumberOptions)

将新参与者添加到呼叫中。

askDevicePermission(PermissionConstraints)

请求设备的权限。

createStreamView(string, VideoStreamOptions)

为流创建 html 视图。

createTogetherModeStreamView(TogetherModeStreamOptions)

为 togethermode 流创建 html 视图。

deleteMessage(string)

删除线程中的消息。

dispose()

释放复合

disposeLocalVideoStreamView()

释放本地视频流的 html 视图

disposeRemoteVideoStreamView(string)

释放远端视频流的 html 视图

disposeScreenShareStreamView(string)

释放屏幕共享流的 html 视图

disposeStreamView(string, VideoStreamOptions)

释放流的 html 视图。

disposeTogetherModeStreamView()

释放 togethermode 流的 html 视图。

downloadResourceToCache(ResourceDetails)
fetchInitialData()

提取聊天适配器的初始状态。

执行 ChatComposite 和 API 方法所需的最小提取。

getState()

获取当前状态

holdCall()

将呼叫置于本地保留中。

joinCall(boolean)

最初打开/关闭麦克风加入呼叫。

joinCall(JoinCallOptions)

使用选项包加入通话,在加入通话时设置麦克风/摄像头初始状态 true = 加入通话时打开设备 false = 加入通话时关闭设备 'keep'/undefined = 保留设备的通话前状态

leaveCall(boolean)

离开呼叫。

loadPreviousChatMessages(number)

在聊天线程历史记录中加载更多以前的消息。

lowerHand()

本地用户放低手。

mute()

在呼叫期间将当前用户静音或在本地禁用麦克风。

muteAllRemoteParticipants()

将参与者静音

muteParticipant(string)

将参与者静音

off("breakoutRoomsUpdated", BreakoutRoomsUpdatedListener)
off("callEnded", CallEndedListener)
off("callError", (e: AdapterError) => void)
off("callIdChanged", CallIdChangedListener)
off("callParticipantsJoined", ParticipantsJoinedListener)
off("callParticipantsLeft", ParticipantsLeftListener)
off("capabilitiesChanged", CapabilitiesChangedListener)
off("captionsReceived", CaptionsReceivedListener)
off("chatError", (e: AdapterError) => void)
off("chatInitialized", ChatInitializedListener)
off("chatParticipantsAdded", ParticipantsAddedListener)
off("chatParticipantsRemoved", ParticipantsRemovedListener)
off("displayNameChanged", DisplayNameChangedListener)
off("isCaptionLanguageChanged", IsCaptionLanguageChangedListener)
off("isCaptionsActiveChanged", IsCaptionsActiveChangedListener)
off("isLocalScreenSharingActiveChanged", IsLocalScreenSharingActiveChangedListener)
off("isMutedChanged", IsMutedChangedListener)
off("isSpeakingChanged", IsSpeakingChangedListener)
off("isSpokenLanguageChanged", IsSpokenLanguageChangedListener)
off("messageDeleted", MessageReceivedListener)
off("messageEdited", MessageReceivedListener)
off("messageRead", MessageReadListener)
off("messageReceived", MessageReceivedListener)
off("messageSent", MessageReceivedListener)
off("realTimeTextReceived", RealTimeTextReceivedListener)
off("selectedMicrophoneChanged", PropertyChangedEvent)
off("selectedSpeakerChanged", PropertyChangedEvent)
off("spotlightChanged", SpotlightChangedListener)
offStateChange((state: CallWithChatAdapterState) => void)

取消订阅处理程序到 stateChanged 事件。

on("breakoutRoomsUpdated", BreakoutRoomsUpdatedListener)
on("callEnded", CallEndedListener)
on("callError", (e: AdapterError) => void)
on("callIdChanged", CallIdChangedListener)
on("callParticipantsJoined", ParticipantsJoinedListener)
on("callParticipantsLeft", ParticipantsLeftListener)
on("capabilitiesChanged", CapabilitiesChangedListener)
on("captionsReceived", CaptionsReceivedListener)
on("chatError", (e: AdapterError) => void)
on("chatInitialized", ChatInitializedListener)
on("chatParticipantsAdded", ParticipantsAddedListener)
on("chatParticipantsRemoved", ParticipantsRemovedListener)
on("displayNameChanged", DisplayNameChangedListener)
on("isCaptionLanguageChanged", IsCaptionLanguageChangedListener)
on("isCaptionsActiveChanged", IsCaptionsActiveChangedListener)
on("isLocalScreenSharingActiveChanged", IsLocalScreenSharingActiveChangedListener)
on("isMutedChanged", IsMutedChangedListener)
on("isSpeakingChanged", IsSpeakingChangedListener)
on("isSpokenLanguageChanged", IsSpokenLanguageChangedListener)
on("messageDeleted", MessageReceivedListener)
on("messageEdited", MessageReceivedListener)
on("messageRead", MessageReadListener)
on("messageReceived", MessageReceivedListener)
on("messageSent", MessageReceivedListener)
on("realTimeTextReceived", RealTimeTextReceivedListener)
on("selectedMicrophoneChanged", PropertyChangedEvent)
on("selectedSpeakerChanged", PropertyChangedEvent)
on("spotlightChanged", SpotlightChangedListener)
onReactionClick(Reaction)

将回应发送到正在进行的会议。

onStateChange((state: CallWithChatAdapterState) => void)

将处理程序订阅到 stateChanged 事件。

queryCameras()

查询可用的相机设备。

queryMicrophones()

查询可用的麦克风设备。

querySpeakers()

查询可用的麦克风设备。

raiseHand()

向本地用户举手。

removeParticipant(CommunicationIdentifier)

从呼叫中删除参与者。

removeParticipant(string)

从呼叫中删除参与者。

removeResourceFromCache(ResourceDetails)
resumeCall()

从 LocalHold 状态恢复调用。

returnFromBreakoutRoom()

返回分组讨论室的源站呼叫

sendMessage(string, SendMessageOptions)

在线程中发送消息。

sendReadReceipt(string)

发送邮件的已读回执。

sendTypingIndicator()

在线程中发送键入指示器。

setCamera(VideoDeviceInfo, VideoStreamOptions)

将相机设置为在呼叫中使用。

setCaptionLanguage(string)

设置字幕语言的功能

setMicrophone(AudioDeviceInfo)

将麦克风设置为在呼叫中使用。

setSpeaker(AudioDeviceInfo)

将扬声器设置为在呼叫中使用。

setSpokenLanguage(string)

设置口语的功能

setTogetherModeSceneSize(number, number)

重新计算 Together 模式的座位位置。

startCall((CommunicationUserIdentifier | PhoneNumberIdentifier | MicrosoftTeamsUserIdentifier | MicrosoftTeamsAppIdentifier | UnknownIdentifier)[], StartCallOptions)

启动呼叫。

startCall(string[], StartCallOptions)

启动呼叫。

startCamera(VideoStreamOptions)

启动相机。

此方法将在调用未处于活动状态时开始呈现本地相机视图。

startCaptions(StartCaptionsAdapterOptions)

启动字幕的功能

startNoiseSuppressionEffect()

启动噪声抑制效果。

startScreenShare()

开始在通话期间共享屏幕。

startSpotlight(string[])

启动 spotlight

startTogetherMode()

一起启动模式。

startVideoBackgroundEffect(VideoBackgroundEffect)

启动视频背景效果。

stopAllSpotlight()

停止所有聚光灯

stopCamera()

停止相机。

当调用未处于活动状态时,此方法将停止呈现本地相机视图。

stopCaptions(StopCaptionsAdapterOptions)

停止字幕的功能

stopNoiseSuppressionEffect()

启动噪声抑制效果。

stopScreenShare()

停止共享屏幕。

stopSpotlight(string[])

停止聚光灯

stopVideoBackgroundEffects()

停止视频背景效果。

submitSurvey(CallSurvey)

发送通话结束调查结果

unmute()

在呼叫期间取消静音当前用户或在本地启用麦克风。

updateBackgroundPickerImages(VideoBackgroundImage[])

覆盖背景选取器图像以获得背景替换效果。

updateMessage(string, string, Record<string, string>)

更新消息内容。

updateSelectedVideoBackgroundEffect(VideoBackgroundEffect)

更新选定的视频背景效果

继承属性详细信息

forbidAudio

禁止对指定的 User ID 进行音频作。

forbidAudio: (userIds: string[]) => Promise<void>

属性值

(userIds: string[]) => Promise<void>

继承自CallWithChatAdapterManagement.forbidAudio

forbidOthersAudio

禁止 Teams 会议与会者(本地用户除外)使用音频。

forbidOthersAudio: () => Promise<void>

属性值

() => Promise<void>

继承自CallWithChatAdapterManagement.forbidOthersAudio

forbidOthersVideo

禁止 Teams 会议与会者(本地用户除外)观看视频。

forbidOthersVideo: () => Promise<void>

属性值

() => Promise<void>

继承自CallWithChatAdapterManagement.forbidOthersVideo

forbidVideo

禁止指定 User ID 的视频。

forbidVideo: (userIds: string[]) => Promise<void>

属性值

(userIds: string[]) => Promise<void>

继承自CallWithChatAdapterManagement.forbidVideo

permitAudio

允许指定 User ID 的音频。

permitAudio: (userIds: string[]) => Promise<void>

属性值

(userIds: string[]) => Promise<void>

继承自CallWithChatAdapterManagement.permitAudio

permitOthersAudio

允许 Teams 会议与会者(本地用户除外)使用音频。

permitOthersAudio: () => Promise<void>

属性值

() => Promise<void>

继承自CallWithChatAdapterManagement.permitOthersAudio

permitOthersVideo

允许 Teams 会议与会者(本地用户除外)观看视频。

permitOthersVideo: () => Promise<void>

属性值

() => Promise<void>

继承自CallWithChatAdapterManagement.permitOthersVideo

permitVideo

允许指定用户 ID 的视频。

permitVideo: (userIds: string[]) => Promise<void>

属性值

(userIds: string[]) => Promise<void>

继承自CallWithChatAdapterManagement.permitVideo

sendDtmfTone

在 1 对 1 通话中向呼叫中的其他参与者发送 DTMF 音调

public sendDtmfTone: (dtmfTone: DtmfTone) => Promise<void>

属性值

(dtmfTone: DtmfTone) => Promise<void>

继承自CallWithChatAdapterManagement.sendDtmfTone

sendRealTimeText

发送实时文本

sendRealTimeText: (text: string, isFinalized: boolean) => Promise<void>

属性值

(text: string, isFinalized: boolean) => Promise<void>

继承自CallWithChatAdapterManagement.sendRealTimeText

继承的方法详细信息

addParticipant(CommunicationUserIdentifier)

function addParticipant(participant: CommunicationUserIdentifier): Promise<void>

参数

返回

Promise<void>

继承自CallWithChatAdapterManagement.addParticipant

addParticipant(PhoneNumberIdentifier, AddPhoneNumberOptions)

将新参与者添加到呼叫中。

function addParticipant(participant: PhoneNumberIdentifier, options?: AddPhoneNumberOptions): Promise<void>

参数

participant
PhoneNumberIdentifier

返回

Promise<void>

继承自CallWithChatAdapterManagement.addParticipant

askDevicePermission(PermissionConstraints)

请求设备的权限。

function askDevicePermission(constrain: PermissionConstraints): Promise<DeviceAccess>

参数

constrain
PermissionConstraints

定义访问本地设备 <xref:%40azure%2Fcommunication-calling%23PermissionConstraints> 的约束

返回

Promise<DeviceAccess>

注解

如果尚未授予权限,浏览器权限窗口将弹出。

继承自 CallWithChatAdapterManagement.askDevicePermission

createStreamView(string, VideoStreamOptions)

为流创建 html 视图。

function createStreamView(remoteUserId?: string, options?: VideoStreamOptions): Promise<void | CreateVideoStreamViewResult>

参数

remoteUserId

string

要呈现的参与者的 ID,使其未定义以创建本地相机视图

options
VideoStreamOptions

用于控制视频流呈现方式的选项 <xref:%40azure%2Fcommunication-calling%23VideoStreamOptions>

返回

Promise<void | CreateVideoStreamViewResult>

注解

此方法是针对复合实现的。

继承自CallWithChatAdapterManagement.createStreamView

createTogetherModeStreamView(TogetherModeStreamOptions)

为 togethermode 流创建 html 视图。

function createTogetherModeStreamView(options?: TogetherModeStreamOptions): Promise<void | TogetherModeStreamViewResult>

参数

options
TogetherModeStreamOptions

用于控制视频流呈现方式的选项 <xref:%40azure%2Fcommunication-calling%23VideoStreamOptions>

返回

注解

此方法是针对复合实现的

继承自CallWithChatAdapterManagement.createTogetherModeStreamView

deleteMessage(string)

删除线程中的消息。

function deleteMessage(messageId: string): Promise<void>

参数

messageId

string

返回

Promise<void>

继承自 CallWithChatAdapterManagement.deleteMessage

dispose()

释放复合

function dispose()

继承自Disposable_2.dispose

disposeLocalVideoStreamView()

释放本地视频流的 html 视图

function disposeLocalVideoStreamView(): Promise<void>

返回

Promise<void>

继承自CallWithChatAdapterManagement.disposeLocalVideoStreamView

disposeRemoteVideoStreamView(string)

释放远端视频流的 html 视图

function disposeRemoteVideoStreamView(remoteUserId: string): Promise<void>

参数

remoteUserId

string

要处置的参与者的 ID

返回

Promise<void>

继承自CallWithChatAdapterManagement.disposeRemoteVideoStreamView

disposeScreenShareStreamView(string)

释放屏幕共享流的 html 视图

function disposeScreenShareStreamView(remoteUserId: string): Promise<void>

参数

remoteUserId

string

要为其处理屏幕共享流视图的参加者的 ID。

返回

Promise<void>

注解

该方法为 composite 实现

继承自CallWithChatAdapterManagement.disposeScreenShareStreamView

disposeStreamView(string, VideoStreamOptions)

释放流的 html 视图。

function disposeStreamView(remoteUserId?: string, options?: VideoStreamOptions): Promise<void>

参数

remoteUserId

string

要呈现的参与者的 ID,使其未定义以释放本地相机视图

options
VideoStreamOptions

用于控制视频流呈现方式的选项 <xref:%40azure%2Fcommunication-calling%23VideoStreamOptions>

返回

Promise<void>

注解

此方法是针对复合实现的。

继承自 CallWithChatAdapterManagement.disposeStreamView

disposeTogetherModeStreamView()

释放 togethermode 流的 html 视图。

function disposeTogetherModeStreamView(): Promise<void>

返回

Promise<void>

注解

此方法是针对复合实现的

继承自CallWithChatAdapterManagement.disposeTogetherModeStreamView

downloadResourceToCache(ResourceDetails)

function downloadResourceToCache(resourceDetails: ResourceDetails): Promise<void>

参数

resourceDetails
ResourceDetails

返回

Promise<void>

继承自CallWithChatAdapterManagement.downloadResourceToCache

fetchInitialData()

提取聊天适配器的初始状态。

执行 ChatComposite 和 API 方法所需的最小提取。

function fetchInitialData(): Promise<void>

返回

Promise<void>

继承自 CallWithChatAdapterManagement.fetchInitialData

getState()

获取当前状态

function getState(): CallWithChatAdapterState

返回

继承自AdapterState.getState

holdCall()

将呼叫置于本地保留中。

function holdCall(): Promise<void>

返回

Promise<void>

继承自CallWithChatAdapterManagement.holdCall

joinCall(boolean)

警告

现已弃用此 API。

Use joinCall(options?:JoinCallOptions) instead.

最初打开/关闭麦克风加入呼叫。

function joinCall(microphoneOn?: boolean): undefined | Call

参数

microphoneOn

boolean

是否最初启用麦克风

返回

undefined | Call

继承自 CallWithChatAdapterManagement.joinCall

joinCall(JoinCallOptions)

使用选项包加入通话,在加入通话时设置麦克风/摄像头初始状态 true = 加入通话时打开设备 false = 加入通话时关闭设备 'keep'/undefined = 保留设备的通话前状态

function joinCall(options?: JoinCallOptions): undefined | Call

参数

options
JoinCallOptions

param 设置麦克风/摄像头初始开启/关闭/使用呼叫前状态。

返回

undefined | Call

继承自 CallWithChatAdapterManagement.joinCall

leaveCall(boolean)

离开呼叫。

function leaveCall(forEveryone?: boolean): Promise<void>

参数

forEveryone

boolean

是否在离开时删除所有参与者

返回

Promise<void>

继承自 CallWithChatAdapterManagement.leaveCall

loadPreviousChatMessages(number)

在聊天线程历史记录中加载更多以前的消息。

function loadPreviousChatMessages(messagesToLoad: number): Promise<boolean>

参数

messagesToLoad

number

返回

Promise<boolean>

注解

此方法通常用于控制增量提取/无限滚动。

继承自CallWithChatAdapterManagement.loadPreviousChatMessages

lowerHand()

本地用户放低手。

function lowerHand(): Promise<void>

返回

Promise<void>

继承自CallWithChatAdapterManagement.lowerHand

mute()

在呼叫期间将当前用户静音或在本地禁用麦克风。

function mute(): Promise<void>

返回

Promise<void>

继承自CallWithChatAdapterManagement.mute

muteAllRemoteParticipants()

将参与者静音

function muteAllRemoteParticipants(): Promise<void>

返回

Promise<void>

继承自CallWithChatAdapterManagement.muteAllRemoteParticipants

muteParticipant(string)

将参与者静音

function muteParticipant(userId: string): Promise<void>

参数

userId

string

返回

Promise<void>

继承自CallWithChatAdapterManagement.muteParticipant

off("breakoutRoomsUpdated", BreakoutRoomsUpdatedListener)

function off(event: "breakoutRoomsUpdated", listener: BreakoutRoomsUpdatedListener)

参数

event

"breakoutRoomsUpdated"

继承自CallWithChatAdapterSubscriptions.off

off("callEnded", CallEndedListener)

function off(event: "callEnded", listener: CallEndedListener)

参数

event

"callEnded"

继承自CallWithChatAdapterSubscriptions.off

off("callError", (e: AdapterError) => void)

function off(event: "callError", listener: (e: AdapterError) => void)

参数

event

"callError"

listener

(e: AdapterError) => void

继承自CallWithChatAdapterSubscriptions.off

off("callIdChanged", CallIdChangedListener)

function off(event: "callIdChanged", listener: CallIdChangedListener)

参数

event

"callIdChanged"

继承自CallWithChatAdapterSubscriptions.off

off("callParticipantsJoined", ParticipantsJoinedListener)

function off(event: "callParticipantsJoined", listener: ParticipantsJoinedListener)

参数

event

"callParticipantsJoined"

继承自CallWithChatAdapterSubscriptions.off

off("callParticipantsLeft", ParticipantsLeftListener)

function off(event: "callParticipantsLeft", listener: ParticipantsLeftListener)

参数

event

"callParticipantsLeft"

继承自CallWithChatAdapterSubscriptions.off

off("capabilitiesChanged", CapabilitiesChangedListener)

function off(event: "capabilitiesChanged", listener: CapabilitiesChangedListener)

参数

event

"capabilitiesChanged"

继承自CallWithChatAdapterSubscriptions.off

off("captionsReceived", CaptionsReceivedListener)

function off(event: "captionsReceived", listener: CaptionsReceivedListener)

参数

event

"captionsReceived"

继承自CallWithChatAdapterSubscriptions.off

off("chatError", (e: AdapterError) => void)

function off(event: "chatError", listener: (e: AdapterError) => void)

参数

event

"chatError"

listener

(e: AdapterError) => void

继承自CallWithChatAdapterSubscriptions.off

off("chatInitialized", ChatInitializedListener)

function off(event: "chatInitialized", listener: ChatInitializedListener)

参数

event

"chatInitialized"

继承自CallWithChatAdapterSubscriptions.off

off("chatParticipantsAdded", ParticipantsAddedListener)

function off(event: "chatParticipantsAdded", listener: ParticipantsAddedListener)

参数

event

"chatParticipantsAdded"

继承自CallWithChatAdapterSubscriptions.off

off("chatParticipantsRemoved", ParticipantsRemovedListener)

function off(event: "chatParticipantsRemoved", listener: ParticipantsRemovedListener)

参数

event

"chatParticipantsRemoved"

继承自CallWithChatAdapterSubscriptions.off

off("displayNameChanged", DisplayNameChangedListener)

function off(event: "displayNameChanged", listener: DisplayNameChangedListener)

参数

event

"displayNameChanged"

继承自CallWithChatAdapterSubscriptions.off

off("isCaptionLanguageChanged", IsCaptionLanguageChangedListener)

function off(event: "isCaptionLanguageChanged", listener: IsCaptionLanguageChangedListener)

参数

event

"isCaptionLanguageChanged"

继承自CallWithChatAdapterSubscriptions.off

off("isCaptionsActiveChanged", IsCaptionsActiveChangedListener)

function off(event: "isCaptionsActiveChanged", listener: IsCaptionsActiveChangedListener)

参数

event

"isCaptionsActiveChanged"

继承自CallWithChatAdapterSubscriptions.off

off("isLocalScreenSharingActiveChanged", IsLocalScreenSharingActiveChangedListener)

function off(event: "isLocalScreenSharingActiveChanged", listener: IsLocalScreenSharingActiveChangedListener)

参数

event

"isLocalScreenSharingActiveChanged"

继承自CallWithChatAdapterSubscriptions.off

off("isMutedChanged", IsMutedChangedListener)

function off(event: "isMutedChanged", listener: IsMutedChangedListener)

参数

event

"isMutedChanged"

继承自CallWithChatAdapterSubscriptions.off

off("isSpeakingChanged", IsSpeakingChangedListener)

function off(event: "isSpeakingChanged", listener: IsSpeakingChangedListener)

参数

event

"isSpeakingChanged"

继承自CallWithChatAdapterSubscriptions.off

off("isSpokenLanguageChanged", IsSpokenLanguageChangedListener)

function off(event: "isSpokenLanguageChanged", listener: IsSpokenLanguageChangedListener)

参数

event

"isSpokenLanguageChanged"

继承自CallWithChatAdapterSubscriptions.off

off("messageDeleted", MessageReceivedListener)

function off(event: "messageDeleted", listener: MessageReceivedListener)

参数

event

"messageDeleted"

继承自CallWithChatAdapterSubscriptions.off

off("messageEdited", MessageReceivedListener)

function off(event: "messageEdited", listener: MessageReceivedListener)

参数

event

"messageEdited"

继承自CallWithChatAdapterSubscriptions.off

off("messageRead", MessageReadListener)

function off(event: "messageRead", listener: MessageReadListener)

参数

event

"messageRead"

继承自CallWithChatAdapterSubscriptions.off

off("messageReceived", MessageReceivedListener)

function off(event: "messageReceived", listener: MessageReceivedListener)

参数

event

"messageReceived"

继承自CallWithChatAdapterSubscriptions.off

off("messageSent", MessageReceivedListener)

function off(event: "messageSent", listener: MessageReceivedListener)

参数

event

"messageSent"

继承自CallWithChatAdapterSubscriptions.off

off("realTimeTextReceived", RealTimeTextReceivedListener)

function off(event: "realTimeTextReceived", listener: RealTimeTextReceivedListener)

参数

event

"realTimeTextReceived"

继承自CallWithChatAdapterSubscriptions.off

off("selectedMicrophoneChanged", PropertyChangedEvent)

function off(event: "selectedMicrophoneChanged", listener: PropertyChangedEvent)

参数

event

"selectedMicrophoneChanged"

继承自CallWithChatAdapterSubscriptions.off

off("selectedSpeakerChanged", PropertyChangedEvent)

function off(event: "selectedSpeakerChanged", listener: PropertyChangedEvent)

参数

event

"selectedSpeakerChanged"

继承自CallWithChatAdapterSubscriptions.off

off("spotlightChanged", SpotlightChangedListener)

function off(event: "spotlightChanged", listener: SpotlightChangedListener)

参数

event

"spotlightChanged"

继承自CallWithChatAdapterSubscriptions.off

offStateChange((state: CallWithChatAdapterState) => void)

取消订阅处理程序到 stateChanged 事件。

function offStateChange(handler: (state: CallWithChatAdapterState) => void)

参数

handler

(state: CallWithChatAdapterState) => void

继承自 AdapterState.offStateChange

on("breakoutRoomsUpdated", BreakoutRoomsUpdatedListener)

function on(event: "breakoutRoomsUpdated", listener: BreakoutRoomsUpdatedListener)

参数

event

"breakoutRoomsUpdated"

继承自CallWithChatAdapterSubscriptions.on

on("callEnded", CallEndedListener)

function on(event: "callEnded", listener: CallEndedListener)

参数

event

"callEnded"

继承自CallWithChatAdapterSubscriptions.on

on("callError", (e: AdapterError) => void)

function on(event: "callError", listener: (e: AdapterError) => void)

参数

event

"callError"

listener

(e: AdapterError) => void

继承自CallWithChatAdapterSubscriptions.on

on("callIdChanged", CallIdChangedListener)

function on(event: "callIdChanged", listener: CallIdChangedListener)

参数

event

"callIdChanged"

继承自CallWithChatAdapterSubscriptions.on

on("callParticipantsJoined", ParticipantsJoinedListener)

function on(event: "callParticipantsJoined", listener: ParticipantsJoinedListener)

参数

event

"callParticipantsJoined"

继承自CallWithChatAdapterSubscriptions.on

on("callParticipantsLeft", ParticipantsLeftListener)

function on(event: "callParticipantsLeft", listener: ParticipantsLeftListener)

参数

event

"callParticipantsLeft"

继承自CallWithChatAdapterSubscriptions.on

on("capabilitiesChanged", CapabilitiesChangedListener)

function on(event: "capabilitiesChanged", listener: CapabilitiesChangedListener)

参数

event

"capabilitiesChanged"

继承自CallWithChatAdapterSubscriptions.on

on("captionsReceived", CaptionsReceivedListener)

function on(event: "captionsReceived", listener: CaptionsReceivedListener)

参数

event

"captionsReceived"

继承自CallWithChatAdapterSubscriptions.on

on("chatError", (e: AdapterError) => void)

function on(event: "chatError", listener: (e: AdapterError) => void)

参数

event

"chatError"

listener

(e: AdapterError) => void

继承自CallWithChatAdapterSubscriptions.on

on("chatInitialized", ChatInitializedListener)

function on(event: "chatInitialized", listener: ChatInitializedListener)

参数

event

"chatInitialized"

继承自CallWithChatAdapterSubscriptions.on

on("chatParticipantsAdded", ParticipantsAddedListener)

function on(event: "chatParticipantsAdded", listener: ParticipantsAddedListener)

参数

event

"chatParticipantsAdded"

继承自CallWithChatAdapterSubscriptions.on

on("chatParticipantsRemoved", ParticipantsRemovedListener)

function on(event: "chatParticipantsRemoved", listener: ParticipantsRemovedListener)

参数

event

"chatParticipantsRemoved"

继承自CallWithChatAdapterSubscriptions.on

on("displayNameChanged", DisplayNameChangedListener)

function on(event: "displayNameChanged", listener: DisplayNameChangedListener)

参数

event

"displayNameChanged"

继承自CallWithChatAdapterSubscriptions.on

on("isCaptionLanguageChanged", IsCaptionLanguageChangedListener)

function on(event: "isCaptionLanguageChanged", listener: IsCaptionLanguageChangedListener)

参数

event

"isCaptionLanguageChanged"

继承自CallWithChatAdapterSubscriptions.on

on("isCaptionsActiveChanged", IsCaptionsActiveChangedListener)

function on(event: "isCaptionsActiveChanged", listener: IsCaptionsActiveChangedListener)

参数

event

"isCaptionsActiveChanged"

继承自CallWithChatAdapterSubscriptions.on

on("isLocalScreenSharingActiveChanged", IsLocalScreenSharingActiveChangedListener)

function on(event: "isLocalScreenSharingActiveChanged", listener: IsLocalScreenSharingActiveChangedListener)

参数

event

"isLocalScreenSharingActiveChanged"

继承自CallWithChatAdapterSubscriptions.on

on("isMutedChanged", IsMutedChangedListener)

function on(event: "isMutedChanged", listener: IsMutedChangedListener)

参数

event

"isMutedChanged"

继承自CallWithChatAdapterSubscriptions.on

on("isSpeakingChanged", IsSpeakingChangedListener)

function on(event: "isSpeakingChanged", listener: IsSpeakingChangedListener)

参数

event

"isSpeakingChanged"

继承自CallWithChatAdapterSubscriptions.on

on("isSpokenLanguageChanged", IsSpokenLanguageChangedListener)

function on(event: "isSpokenLanguageChanged", listener: IsSpokenLanguageChangedListener)

参数

event

"isSpokenLanguageChanged"

继承自CallWithChatAdapterSubscriptions.on

on("messageDeleted", MessageReceivedListener)

function on(event: "messageDeleted", listener: MessageReceivedListener)

参数

event

"messageDeleted"

继承自CallWithChatAdapterSubscriptions.on

on("messageEdited", MessageReceivedListener)

function on(event: "messageEdited", listener: MessageReceivedListener)

参数

event

"messageEdited"

继承自CallWithChatAdapterSubscriptions.on

on("messageRead", MessageReadListener)

function on(event: "messageRead", listener: MessageReadListener)

参数

event

"messageRead"

继承自CallWithChatAdapterSubscriptions.on

on("messageReceived", MessageReceivedListener)

function on(event: "messageReceived", listener: MessageReceivedListener)

参数

event

"messageReceived"

继承自CallWithChatAdapterSubscriptions.on

on("messageSent", MessageReceivedListener)

function on(event: "messageSent", listener: MessageReceivedListener)

参数

event

"messageSent"

继承自CallWithChatAdapterSubscriptions.on

on("realTimeTextReceived", RealTimeTextReceivedListener)

function on(event: "realTimeTextReceived", listener: RealTimeTextReceivedListener)

参数

event

"realTimeTextReceived"

继承自CallWithChatAdapterSubscriptions.on

on("selectedMicrophoneChanged", PropertyChangedEvent)

function on(event: "selectedMicrophoneChanged", listener: PropertyChangedEvent)

参数

event

"selectedMicrophoneChanged"

继承自CallWithChatAdapterSubscriptions.on

on("selectedSpeakerChanged", PropertyChangedEvent)

function on(event: "selectedSpeakerChanged", listener: PropertyChangedEvent)

参数

event

"selectedSpeakerChanged"

继承自CallWithChatAdapterSubscriptions.on

on("spotlightChanged", SpotlightChangedListener)

function on(event: "spotlightChanged", listener: SpotlightChangedListener)

参数

event

"spotlightChanged"

继承自CallWithChatAdapterSubscriptions.on

onReactionClick(Reaction)

将回应发送到正在进行的会议。

function onReactionClick(reaction: Reaction): Promise<void>

参数

reaction
Reaction

type 为 <xref:%40azure%2Fcommunication-calling%23Reaction>

返回

Promise<void>

继承自CallWithChatAdapterManagement.onReactionClick

onStateChange((state: CallWithChatAdapterState) => void)

将处理程序订阅到 stateChanged 事件。

function onStateChange(handler: (state: CallWithChatAdapterState) => void)

参数

handler

(state: CallWithChatAdapterState) => void

继承自AdapterState.onStateChange

queryCameras()

查询可用的相机设备。

function queryCameras(): Promise<VideoDeviceInfo[]>

返回

Promise<VideoDeviceInfo[]>

视频设备信息实体数组 <xref:%40azure%2Fcommunication-calling%23VideoDeviceInfo>

注解

应在 askDevicePermission() 后调用此方法

继承自CallWithChatAdapterManagement.queryCameras

queryMicrophones()

查询可用的麦克风设备。

function queryMicrophones(): Promise<AudioDeviceInfo[]>

返回

Promise<AudioDeviceInfo[]>

音频设备信息实体数组 <xref:%40azure%2Fcommunication-calling%23AudioDeviceInfo>

注解

应在 askDevicePermission() 后调用此方法

继承自CallWithChatAdapterManagement.queryMicrophones

querySpeakers()

查询可用的麦克风设备。

function querySpeakers(): Promise<AudioDeviceInfo[]>

返回

Promise<AudioDeviceInfo[]>

音频设备信息实体数组 <xref:%40azure%2Fcommunication-calling%23AudioDeviceInfo>

注解

应在 askDevicePermission() 后调用此方法

继承自CallWithChatAdapterManagement.querySpeakers

raiseHand()

向本地用户举手。

function raiseHand(): Promise<void>

返回

Promise<void>

继承自CallWithChatAdapterManagement.raiseHand

removeParticipant(CommunicationIdentifier)

从呼叫中删除参与者。

function removeParticipant(participant: CommunicationIdentifier): Promise<void>

参数

participant
CommunicationIdentifier

<xref:%40azure%2Fcommunication-common%23CommunicationIdentifier> 要删除的参与者

返回

Promise<void>

继承自 CallWithChatAdapterManagement.removeParticipant

removeParticipant(string)

从呼叫中删除参与者。

function removeParticipant(userId: string): Promise<void>

参数

userId

string

要删除的参与者的 UserId。

返回

Promise<void>

继承自 CallWithChatAdapterManagement.removeParticipant

removeResourceFromCache(ResourceDetails)

function removeResourceFromCache(resourceDetails: ResourceDetails)

参数

resourceDetails
ResourceDetails

继承自CallWithChatAdapterManagement.removeResourceFromCache

resumeCall()

从 LocalHold 状态恢复调用。

function resumeCall(): Promise<void>

返回

Promise<void>

继承自CallWithChatAdapterManagement.resumeCall

returnFromBreakoutRoom()

返回分组讨论室的源站呼叫

function returnFromBreakoutRoom(): Promise<void>

返回

Promise<void>

继承自CallWithChatAdapterManagement.returnFromBreakoutRoom

sendMessage(string, SendMessageOptions)

在线程中发送消息。

function sendMessage(content: string, options?: SendMessageOptions): Promise<void>

参数

content

string

返回

Promise<void>

继承自 CallWithChatAdapterManagement.sendMessage

sendReadReceipt(string)

发送邮件的已读回执。

function sendReadReceipt(chatMessageId: string): Promise<void>

参数

chatMessageId

string

返回

Promise<void>

继承自CallWithChatAdapterManagement.sendReadReceipt

sendTypingIndicator()

在线程中发送键入指示器。

function sendTypingIndicator(): Promise<void>

返回

Promise<void>

继承自CallWithChatAdapterManagement.sendTypingIndicator

setCamera(VideoDeviceInfo, VideoStreamOptions)

将相机设置为在呼叫中使用。

function setCamera(sourceInfo: VideoDeviceInfo, options?: VideoStreamOptions): Promise<void>

参数

sourceInfo
VideoDeviceInfo

要选择的相机设备,选择由 queryCameras 返回的一个

options
VideoStreamOptions

用于控制相机流呈现方式的选项 <xref:%40azure%2Fcommunication-calling%23VideoStreamOptions>

返回

Promise<void>

继承自CallWithChatAdapterManagement.setCamera

setCaptionLanguage(string)

设置字幕语言的功能

function setCaptionLanguage(language: string): Promise<void>

参数

language

string

为字幕设置的语言

返回

Promise<void>

继承自CallWithChatAdapterManagement.setCaptionLanguage

setMicrophone(AudioDeviceInfo)

将麦克风设置为在呼叫中使用。

function setMicrophone(sourceInfo: AudioDeviceInfo): Promise<void>

参数

sourceInfo
AudioDeviceInfo

要选择的麦克风设备,选择由 queryMicrophones 返回的一个

返回

Promise<void>

继承自CallWithChatAdapterManagement.setMicrophone

setSpeaker(AudioDeviceInfo)

将扬声器设置为在呼叫中使用。

function setSpeaker(sourceInfo: AudioDeviceInfo): Promise<void>

参数

sourceInfo
AudioDeviceInfo

要选择的扬声器设备,选择由 querySpeakers 返回的一个

返回

Promise<void>

继承自CallWithChatAdapterManagement.setSpeaker

setSpokenLanguage(string)

设置口语的功能

function setSpokenLanguage(language: string): Promise<void>

参数

language

string

口语

返回

Promise<void>

继承自CallWithChatAdapterManagement.setSpokenLanguage

setTogetherModeSceneSize(number, number)

重新计算 Together 模式的座位位置。

function setTogetherModeSceneSize(width: number, height: number)

参数

width

number

容器的宽度

height

number

容器的高度

注解

此方法是针对复合实现的

继承自CallWithChatAdapterManagement.setTogetherModeSceneSize

startCall((CommunicationUserIdentifier | PhoneNumberIdentifier | MicrosoftTeamsUserIdentifier | MicrosoftTeamsAppIdentifier | UnknownIdentifier)[], StartCallOptions)

启动呼叫。

function startCall(participants: (CommunicationUserIdentifier | PhoneNumberIdentifier | MicrosoftTeamsUserIdentifier | MicrosoftTeamsAppIdentifier | UnknownIdentifier)[], options?: StartCallOptions): undefined | Call

参数

participants

(CommunicationUserIdentifier | PhoneNumberIdentifier | MicrosoftTeamsUserIdentifier | MicrosoftTeamsAppIdentifier | UnknownIdentifier)[]

要调用的 <xref:%40azure%2Fcommunication-common%23CommunicationIdentifier> 数组

返回

undefined | Call

继承自 CallWithChatAdapterManagement.startCall

startCall(string[], StartCallOptions)

启动呼叫。

function startCall(participants: string[], options?: StartCallOptions): undefined | Call

参数

participants

string[]

要加入的参与者 ID 数组

返回

undefined | Call

继承自 CallWithChatAdapterManagement.startCall

startCamera(VideoStreamOptions)

启动相机。

此方法将在调用未处于活动状态时开始呈现本地相机视图。

function startCamera(options?: VideoStreamOptions): Promise<void>

参数

options
VideoStreamOptions

用于控制视频流呈现方式的选项 <xref:%40azure%2Fcommunication-calling%23VideoStreamOptions>

返回

Promise<void>

继承自 CallWithChatAdapterManagement.startCamera

startCaptions(StartCaptionsAdapterOptions)

启动字幕的功能

function startCaptions(options?: StartCaptionsAdapterOptions): Promise<void>

参数

options
StartCaptionsAdapterOptions

开始字幕的选项

返回

Promise<void>

继承自CallWithChatAdapterManagement.startCaptions

startNoiseSuppressionEffect()

启动噪声抑制效果。

function startNoiseSuppressionEffect(): Promise<void>

返回

Promise<void>

继承自CallWithChatAdapterManagement.startNoiseSuppressionEffect

startScreenShare()

开始在通话期间共享屏幕。

function startScreenShare(): Promise<void>

返回

Promise<void>

继承自 CallWithChatAdapterManagement.startScreenShare

startSpotlight(string[])

启动 spotlight

function startSpotlight(userIds?: string[]): Promise<void>

参数

userIds

string[]

返回

Promise<void>

继承自CallWithChatAdapterManagement.startSpotlight

startTogetherMode()

一起启动模式。

function startTogetherMode(): Promise<void>

返回

Promise<void>

注解

此方法是针对复合实现的

继承自CallWithChatAdapterManagement.startTogetherMode

startVideoBackgroundEffect(VideoBackgroundEffect)

启动视频背景效果。

function startVideoBackgroundEffect(videoBackgroundEffect: VideoBackgroundEffect): Promise<void>

参数

videoBackgroundEffect
VideoBackgroundEffect

返回

Promise<void>

继承自CallWithChatAdapterManagement.startVideoBackgroundEffect

stopAllSpotlight()

停止所有聚光灯

function stopAllSpotlight(): Promise<void>

返回

Promise<void>

继承自CallWithChatAdapterManagement.stopAllSpotlight

stopCamera()

停止相机。

当调用未处于活动状态时,此方法将停止呈现本地相机视图。

function stopCamera(): Promise<void>

返回

Promise<void>

继承自 CallWithChatAdapterManagement.stopCamera

stopCaptions(StopCaptionsAdapterOptions)

停止字幕的功能

function stopCaptions(options?: StopCaptionsAdapterOptions): Promise<void>

参数

返回

Promise<void>

继承自CallWithChatAdapterManagement.stopCaptions

stopNoiseSuppressionEffect()

启动噪声抑制效果。

function stopNoiseSuppressionEffect(): Promise<void>

返回

Promise<void>

继承自CallWithChatAdapterManagement.stopNoiseSuppressionEffect

stopScreenShare()

停止共享屏幕。

function stopScreenShare(): Promise<void>

返回

Promise<void>

继承自 CallWithChatAdapterManagement.stopScreenShare

stopSpotlight(string[])

停止聚光灯

function stopSpotlight(userIds?: string[]): Promise<void>

参数

userIds

string[]

返回

Promise<void>

继承自CallWithChatAdapterManagement.stopSpotlight

stopVideoBackgroundEffects()

停止视频背景效果。

function stopVideoBackgroundEffects(): Promise<void>

返回

Promise<void>

继承自CallWithChatAdapterManagement.stopVideoBackgroundEffects

submitSurvey(CallSurvey)

发送通话结束调查结果

function submitSurvey(survey: CallSurvey): Promise<undefined | CallSurveyResponse>

参数

survey
CallSurvey

返回

Promise<undefined | CallSurveyResponse>

继承自CallWithChatAdapterManagement.submitSurvey

unmute()

在呼叫期间取消静音当前用户或在本地启用麦克风。

function unmute(): Promise<void>

返回

Promise<void>

继承自 CallWithChatAdapterManagement.unmute

updateBackgroundPickerImages(VideoBackgroundImage[])

覆盖背景选取器图像以获得背景替换效果。

function updateBackgroundPickerImages(backgroundImages: VideoBackgroundImage[])

参数

backgroundImages

VideoBackgroundImage[]

自定义背景图像数组。

继承自CallWithChatAdapterManagement.updateBackgroundPickerImages

updateMessage(string, string, Record<string, string>)

更新消息内容。

function updateMessage(messageId: string, content: string, options?: Record<string, string>): Promise<void>

参数

messageId

string

content

string

options

Record<string, string>

返回

Promise<void>

继承自CallWithChatAdapterManagement.updateMessage

updateSelectedVideoBackgroundEffect(VideoBackgroundEffect)

更新选定的视频背景效果

function updateSelectedVideoBackgroundEffect(selectedVideoBackground: VideoBackgroundEffect)

参数

selectedVideoBackground
VideoBackgroundEffect

继承自CallWithChatAdapterManagement.updateSelectedVideoBackgroundEffect