共用方式為


CallingHandlers interface

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

從這個封裝呼叫相關的元件,可以從這個對象中挑選相關的處理程式。 請參閱 <xref:useHandlers> 與 usePropsFor

Extends

屬性

onStartCall

繼承的屬性

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

繼承的方法

onRemoveParticipant(string)

屬性詳細資料

onStartCall

onStartCall: (participants: CommunicationIdentifier[], options?: StartCallOptions) => undefined | Call

屬性值

(participants: CommunicationIdentifier[], options?: StartCallOptions) => undefined | Call

繼承的屬性詳細資料

onCreateLocalStreamView

onCreateLocalStreamView: (options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>

屬性值

(options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>

繼承自commonCallingHandlers.onCreateLocalStreamView

onCreateRemoteStreamView

onCreateRemoteStreamView: (userId: string, options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>

屬性值

(userId: string, options?: VideoStreamOptions) => Promise<void | CreateVideoStreamViewResult>

繼承自commonCallingHandlers.onCreateRemoteStreamView

onDisposeLocalStreamView

onDisposeLocalStreamView: () => Promise<void>

屬性值

() => Promise<void>

繼承自CommonCallingHandlers.onDisposeLocalStreamView

onDisposeRemoteStreamView

onDisposeRemoteStreamView: (userId: string) => Promise<void>

屬性值

(userId: string) => Promise<void>

繼承自CommonCallingHandlers.onDisposeRemoteStreamView

onHangUp

onHangUp: (forEveryone?: boolean) => Promise<void>

屬性值

(forEveryone?: boolean) => Promise<void>

繼承自CommonCallingHandlers.onHangUp

onSelectCamera

onSelectCamera: (device: VideoDeviceInfo, options?: VideoStreamOptions) => Promise<void>

屬性值

(device: VideoDeviceInfo, options?: VideoStreamOptions) => Promise<void>

繼承自CommonCallingHandlers.onSelectCamera

onSelectMicrophone

onSelectMicrophone: (device: AudioDeviceInfo) => Promise<void>

屬性值

(device: AudioDeviceInfo) => Promise<void>

繼承自commonCallingHandlers.onSelectMicrophone

onSelectSpeaker

onSelectSpeaker: (device: AudioDeviceInfo) => Promise<void>

屬性值

(device: AudioDeviceInfo) => Promise<void>

繼承自CommonCallingHandlers.onSelectSpeaker

onStartLocalVideo

onStartLocalVideo: () => Promise<void>

屬性值

() => Promise<void>

繼承自CommonCallingHandlers.onStartLocalVideo

onStartScreenShare

onStartScreenShare: () => Promise<void>

屬性值

() => Promise<void>

繼承自CommonCallingHandlers.onStartScreenShare

onStopScreenShare

onStopScreenShare: () => Promise<void>

屬性值

() => Promise<void>

繼承自commonCallingHandlers.onStopScreenShare

onToggleCamera

onToggleCamera: (options?: VideoStreamOptions) => Promise<void>

屬性值

(options?: VideoStreamOptions) => Promise<void>

繼承自commonCallingHandlers.onToggleCamera

onToggleMicrophone

onToggleMicrophone: () => Promise<void>

屬性值

() => Promise<void>

繼承自CommonCallingHandlers.onToggleMicrophone

onToggleScreenShare

onToggleScreenShare: () => Promise<void>

屬性值

() => Promise<void>

繼承自commonCallingHandlers.onToggleScreenShare

繼承的方法的詳細資料

onRemoveParticipant(string)

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

參數

userId

string

傳回

Promise<void>

繼承自commonCallingHandlers.onRemoveParticipant