共用方式為


CommonCallingHandlers interface

物件,包含呼叫元件所需的所有處理常式。

從此套件呼叫相關元件,即可從這個物件挑選相關的處理常式。 請參閱 <xref:useHandlers> 並使用 PropsFor

屬性

onCreateLocalStreamView
onCreateRemoteStreamView
onDisposeLocalStreamView
onDisposeRemoteStreamView
onHangUp
onSelectCamera
onSelectMicrophone
onSelectSpeaker
onStartCall
onStartLocalVideo
onStartScreenShare
onStopScreenShare
onToggleCamera
onToggleMicrophone
onToggleScreenShare

方法

onRemoveParticipant(string)

屬性詳細資料

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>