你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
CommonCallingHandlers interface
对象包含调用组件所需的所有处理程序。
从此包中调用相关组件能够从此对象中选取相关处理程序。 请参阅 <xref:useHandlers> 和使用 PropsFor。
属性
方法
on |
属性详细信息
onCreateLocalStreamView
onCreateLocalStreamView: (options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>
属性值
(options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>
onCreateRemoteStreamView
onCreateRemoteStreamView: (userId: string, options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>
属性值
(userId: string, options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>
onDisposeLocalStreamView
onDisposeLocalStreamView: () => Promise<void>
属性值
() => Promise<void>
onDisposeRemoteStreamView
onDisposeRemoteStreamView: (userId: string) => Promise<void>
属性值
(userId: string) => Promise<void>
onHangUp
onHangUp: (forEveryone?: boolean) => Promise<void>
属性值
(forEveryone?: boolean) => Promise<void>
onSelectCamera
onSelectCamera: (device: VideoDeviceInfo, options?: VideoStreamOptions) => Promise<void>
属性值
(device: VideoDeviceInfo, options?: VideoStreamOptions) => Promise<void>
onSelectMicrophone
onSelectMicrophone: (device: AudioDeviceInfo) => Promise<void>
属性值
(device: AudioDeviceInfo) => Promise<void>
onSelectSpeaker
onSelectSpeaker: (device: AudioDeviceInfo) => Promise<void>
属性值
(device: AudioDeviceInfo) => Promise<void>
onStartCall
onStartCall: (participants: (CommunicationUserIdentifier | PhoneNumberIdentifier | UnknownIdentifier)[], options?: StartCallOptions) => void
属性值
(participants: (CommunicationUserIdentifier | PhoneNumberIdentifier | UnknownIdentifier)[], options?: StartCallOptions) => void
onStartLocalVideo
onStartLocalVideo: () => Promise<void>
属性值
() => Promise<void>
onStartScreenShare
onStartScreenShare: () => Promise<void>
属性值
() => Promise<void>
onStopScreenShare
onStopScreenShare: () => Promise<void>
属性值
() => Promise<void>
onToggleCamera
onToggleCamera: (options?: VideoStreamOptions) => Promise<void>
属性值
(options?: VideoStreamOptions) => Promise<void>
onToggleMicrophone
onToggleMicrophone: () => Promise<void>
属性值
() => Promise<void>
onToggleScreenShare
onToggleScreenShare: () => Promise<void>
属性值
() => Promise<void>
方法详细信息
onRemoveParticipant(string)
function onRemoveParticipant(userId: string): Promise<void>
参数
- userId
-
string
返回
Promise<void>