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

CallState interface

仅状态版本的 <xref:%40azure%2Fcommunication-calling%23Call>。 StatefulCallClient 将自动检索呼叫的状态,并将其添加到 StatefulCallClient 公开的状态。

属性

callEndReason

的 <xref:%40azure%2Fcommunication-calling%23Call.callEndReason>代理。

callerInfo

的 <xref:%40azure%2Fcommunication-calling%23Call.callerInfo>代理。

diagnostics

存储最新的呼叫诊断。

direction

的 <xref:%40azure%2Fcommunication-calling%23Call.direction>代理。

dominantSpeakers

的 <xref:%40azure%2Fcommunication-calling%23DominantSpeakersInfo>代理。

endTime

存储客户端上调用结束的本地日期。 此属性由有状态层添加,不是 SDK 状态的代理。

id

的 <xref:%40azure%2Fcommunication-calling%23Call.id>代理。

isMuted

的 <xref:%40azure%2Fcommunication-calling%23Call.isMuted>代理。

isScreenSharingOn

的 <xref:%40azure%2Fcommunication-calling%23Call.isScreenSharingOn>代理。

localVideoStreams

的 <xref:%40azure%2Fcommunication-calling%23Call.localVideoStreams>代理。

recording

的 <xref:%40azure%2Fcommunication-calling%23RecordingCallFeature>代理。

remoteParticipants

的 <xref:%40azure%2Fcommunication-calling%23Call.remoteParticipants>代理。 具有 VideoGalleryRemoteParticipant 按平展 标识符键键的字段的对象。 若要获取平展 标识符,请使用 <xref:%40azure%2Fcommunication-react%23toFlatCommunicationIdentifier>。

remoteParticipantsEnded

存储已离开呼叫的远程参与者,以便可以检索 callEndReason。 具有 VideoGalleryRemoteParticipant 按平展 标识符键键的字段的对象。 若要获取平展 标识符,请使用 <xref:%40azure%2Fcommunication-react%23toFlatCommunicationIdentifier>。

screenShareRemoteParticipant

存储当前活动的屏幕共享参与者的密钥。 如果没有活动屏幕共享,则这是未定义的。 可以使用此密钥访问 remoteParticipants 对象中的 remoteParticipant 数据。

请注意,这仅适用于 RemoteParticipant 中的 ScreenShare。 处于活动状态的本地 ScreenShare 不会影响此属性。

此属性由有状态层添加,不是 SDK 状态的代理

startTime

存储客户端上开始调用的本地日期。 此属性由有状态层添加,不是 SDK 状态的代理。

state

的 <xref:%40azure%2Fcommunication-calling%23Call.state>代理。

transcription

的 <xref:%40azure%2Fcommunication-calling%23TranscriptionCallFeature>代理。

属性详细信息

callEndReason

的 <xref:%40azure%2Fcommunication-calling%23Call.callEndReason>代理。

callEndReason?: CallEndReason

属性值

callerInfo

的 <xref:%40azure%2Fcommunication-calling%23Call.callerInfo>代理。

callerInfo: CallerInfo

属性值

diagnostics

存储最新的呼叫诊断。

diagnostics: DiagnosticsCallFeatureState

属性值

direction

的 <xref:%40azure%2Fcommunication-calling%23Call.direction>代理。

direction: CallDirection

属性值

dominantSpeakers

的 <xref:%40azure%2Fcommunication-calling%23DominantSpeakersInfo>代理。

dominantSpeakers?: DominantSpeakersInfo

属性值

endTime

存储客户端上调用结束的本地日期。 此属性由有状态层添加,不是 SDK 状态的代理。

endTime: undefined | Date

属性值

undefined | Date

id

的 <xref:%40azure%2Fcommunication-calling%23Call.id>代理。

id: string

属性值

string

isMuted

的 <xref:%40azure%2Fcommunication-calling%23Call.isMuted>代理。

isMuted: boolean

属性值

boolean

isScreenSharingOn

的 <xref:%40azure%2Fcommunication-calling%23Call.isScreenSharingOn>代理。

isScreenSharingOn: boolean

属性值

boolean

localVideoStreams

的 <xref:%40azure%2Fcommunication-calling%23Call.localVideoStreams>代理。

localVideoStreams: LocalVideoStreamState[]

属性值

recording

的 <xref:%40azure%2Fcommunication-calling%23RecordingCallFeature>代理。

recording: RecordingCallFeature

属性值

remoteParticipants

的 <xref:%40azure%2Fcommunication-calling%23Call.remoteParticipants>代理。 具有 VideoGalleryRemoteParticipant 按平展 标识符键键的字段的对象。 若要获取平展 标识符,请使用 <xref:%40azure%2Fcommunication-react%23toFlatCommunicationIdentifier>。

remoteParticipants: {[keys: string]: RemoteParticipantState}

属性值

{[keys: string]: RemoteParticipantState}

remoteParticipantsEnded

存储已离开呼叫的远程参与者,以便可以检索 callEndReason。 具有 VideoGalleryRemoteParticipant 按平展 标识符键键的字段的对象。 若要获取平展 标识符,请使用 <xref:%40azure%2Fcommunication-react%23toFlatCommunicationIdentifier>。

remoteParticipantsEnded: {[keys: string]: RemoteParticipantState}

属性值

{[keys: string]: RemoteParticipantState}

screenShareRemoteParticipant

存储当前活动的屏幕共享参与者的密钥。 如果没有活动屏幕共享,则这是未定义的。 可以使用此密钥访问 remoteParticipants 对象中的 remoteParticipant 数据。

请注意,这仅适用于 RemoteParticipant 中的 ScreenShare。 处于活动状态的本地 ScreenShare 不会影响此属性。

此属性由有状态层添加,不是 SDK 状态的代理

screenShareRemoteParticipant?: string

属性值

string

startTime

存储客户端上开始调用的本地日期。 此属性由有状态层添加,不是 SDK 状态的代理。

startTime: Date

属性值

Date

state

的 <xref:%40azure%2Fcommunication-calling%23Call.state>代理。

state: CallState

属性值

transcription

的 <xref:%40azure%2Fcommunication-calling%23TranscriptionCallFeature>代理。

transcription: TranscriptionCallFeature

属性值