CallingHandlers interface
物件,包含呼叫元件所需的所有處理程式。
從這個封裝呼叫相關的元件,可以從這個對象中挑選相關的處理程式。 請參閱 <xref:useHandlers> 與 usePropsFor。
- Extends
屬性
on |
繼承的屬性
繼承的方法
on |
屬性詳細資料
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>
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>
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>