次の方法で共有


CallWithChatAdapter interface

CallWithChatComposite アダプター インターフェイス。

Extends

継承されたメソッド

askDevicePermission(PermissionConstraints)

デバイスのアクセス許可を要求します。

createStreamView(string, VideoStreamOptions)

ストリームの html ビューを作成します。

deleteMessage(string)

スレッド内のメッセージを削除します。

dispose()

複合オブジェクトの破棄

disposeStreamView(string, VideoStreamOptions)

ストリームの html ビューを破棄します。

fetchInitialData()

チャット アダプターの初期状態をフェッチします。

ChatComposite メソッドと API メソッドに必要な最小限のフェッチを実行します。

getState()

現在の状態を取得する

joinCall(boolean)

最初にマイクで通話に参加します。

leaveCall(boolean)

通話を終了します。

loadPreviousChatMessages(number)

チャット スレッド履歴に以前のメッセージをさらに読み込みます。

mute()

通話中に現在のユーザーをミュートするか、マイクをローカルで無効にします。

off("callEnded", CallEndedListener)
off("callError", (e: AdapterError) => void)
off("callIdChanged", CallIdChangedListener)
off("callParticipantsJoined", ParticipantsJoinedListener)
off("callParticipantsLeft", ParticipantsLeftListener)
off("chatError", (e: AdapterError) => void)
off("chatParticipantsAdded", ParticipantsAddedListener)
off("chatParticipantsRemoved", ParticipantsRemovedListener)
off("displayNameChanged", DisplayNameChangedListener)
off("isLocalScreenSharingActiveChanged", IsLocalScreenSharingActiveChangedListener)
off("isMutedChanged", IsMutedChangedListener)
off("isSpeakingChanged", IsSpeakingChangedListener)
off("messageRead", MessageReadListener)
off("messageReceived", MessageReceivedListener)
off("messageSent", MessageReceivedListener)
off("selectedMicrophoneChanged", PropertyChangedEvent)
off("selectedSpeakerChanged", PropertyChangedEvent)
offStateChange((state: CallWithChatAdapterState) => void)

ハンドラーを stateChanged イベントに登録解除します。

on("callEnded", CallEndedListener)
on("callError", (e: AdapterError) => void)
on("callIdChanged", CallIdChangedListener)
on("callParticipantsJoined", ParticipantsJoinedListener)
on("callParticipantsLeft", ParticipantsLeftListener)
on("chatError", (e: AdapterError) => void)
on("chatParticipantsAdded", ParticipantsAddedListener)
on("chatParticipantsRemoved", ParticipantsRemovedListener)
on("displayNameChanged", DisplayNameChangedListener)
on("isLocalScreenSharingActiveChanged", IsLocalScreenSharingActiveChangedListener)
on("isMutedChanged", IsMutedChangedListener)
on("isSpeakingChanged", IsSpeakingChangedListener)
on("messageRead", MessageReadListener)
on("messageReceived", MessageReceivedListener)
on("messageSent", MessageReceivedListener)
on("selectedMicrophoneChanged", PropertyChangedEvent)
on("selectedSpeakerChanged", PropertyChangedEvent)
onStateChange((state: CallWithChatAdapterState) => void)

ハンドラーを stateChanged イベントにサブスクライブします。

queryCameras()

使用可能なカメラ デバイスのクエリを実行します。

queryMicrophones()

使用可能なマイク デバイスのクエリを実行します。

querySpeakers()

使用可能なマイク デバイスのクエリを実行します。

removeParticipant(string)

通話から参加者を削除します。

sendMessage(string, SendMessageOptions)

スレッドでメッセージを送信します。

sendReadReceipt(string)

メッセージの開封確認メッセージを送信します。

sendTypingIndicator()

スレッドで入力インジケーターを送信します。

setCamera(VideoDeviceInfo, VideoStreamOptions)

呼び出しで使用するカメラを設定します。

setMicrophone(AudioDeviceInfo)

通話で使用するマイクを設定します。

setSpeaker(AudioDeviceInfo)

通話で使用するスピーカーを設定します。

startCall(string[], StartCallOptions)

呼び出しを開始します。

startCamera(VideoStreamOptions)

カメラを起動します。

このメソッドは、呼び出しがアクティブでない場合に、ローカル カメラ ビューのレンダリングを開始します。

startScreenShare()

通話中に画面の共有を開始します。

stopCamera()

カメラを停止します。

呼び出しがアクティブでない場合、このメソッドはローカル カメラ ビューのレンダリングを停止します。

stopScreenShare()

画面の共有を停止します。

unmute()

通話中に現在のユーザーのミュートを解除するか、マイクをローカルで有効にします。

updateMessage(string, string, Record<string, string>)

メッセージの内容を更新します。

継承済みメソッドの詳細

askDevicePermission(PermissionConstraints)

デバイスのアクセス許可を要求します。

function askDevicePermission(constrain: PermissionConstraints): Promise<void>

パラメーター

constrain
PermissionConstraints

ローカル デバイスにアクセスするための制約を定義する <xref:%40azure%2Fcommunication-calling%23PermissionConstraints>

戻り値

Promise<void>

注釈

アクセス許可がまだ付与されていない場合は、ブラウザーのアクセス許可ウィンドウがポップアップ表示されます。

CallWithChatAdapterManagement.askDevicePermissionから継承されます

createStreamView(string, VideoStreamOptions)

ストリームの html ビューを作成します。

function createStreamView(remoteUserId?: string, options?: VideoStreamOptions): Promise<void | CreateVideoStreamViewResult>

パラメーター

remoteUserId

string

レンダリングする参加者の ID。ローカル カメラ ビューを作成するには未定義のままにします

options
VideoStreamOptions

ビデオ ストリームのレンダリング方法を制御するオプション <xref:%40azure%2Fcommunication-calling%23VideoStreamOptions>

戻り値

Promise<void | CreateVideoStreamViewResult>

注釈

このメソッドは複合用に実装されます。

CallWithChatAdapterManagement.createStreamViewから継承されます

deleteMessage(string)

スレッド内のメッセージを削除します。

function deleteMessage(messageId: string): Promise<void>

パラメーター

messageId

string

戻り値

Promise<void>

CallWithChatAdapterManagement.deleteMessageから継承

dispose()

複合オブジェクトの破棄

function dispose()

Dispose.disposeから継承

disposeStreamView(string, VideoStreamOptions)

ストリームの html ビューを破棄します。

function disposeStreamView(remoteUserId?: string, options?: VideoStreamOptions): Promise<void>

パラメーター

remoteUserId

string

レンダリングする参加者の ID。ローカル カメラ ビューを破棄するには未定義のままにします

options
VideoStreamOptions

ビデオ ストリームのレンダリング方法を制御するオプション <xref:%40azure%2Fcommunication-calling%23VideoStreamOptions>

戻り値

Promise<void>

注釈

このメソッドは複合用に実装されます。

CallWithChatAdapterManagement.disposeStreamViewから継承されます

fetchInitialData()

チャット アダプターの初期状態をフェッチします。

ChatComposite メソッドと API メソッドに必要な最小限のフェッチを実行します。

function fetchInitialData(): Promise<void>

戻り値

Promise<void>

CallWithChatAdapterManagement.fetchInitialDataから継承されます

getState()

現在の状態を取得する

function getState(): CallWithChatAdapterState

戻り値

AdapterState.getStateから継承

joinCall(boolean)

最初にマイクで通話に参加します。

function joinCall(microphoneOn?: boolean): undefined | Call

パラメーター

microphoneOn

boolean

マイクが最初に有効になっているかどうか

戻り値

undefined | Call

CallWithChatAdapterManagement.joinCallから継承

leaveCall(boolean)

通話を終了します。

function leaveCall(forEveryone?: boolean): Promise<void>

パラメーター

forEveryone

boolean

退出時にすべての参加者を削除するかどうか

戻り値

Promise<void>

CallWithChatAdapterManagement.leaveCallから継承されます

loadPreviousChatMessages(number)

チャット スレッド履歴に以前のメッセージをさらに読み込みます。

function loadPreviousChatMessages(messagesToLoad: number): Promise<boolean>

パラメーター

messagesToLoad

number

戻り値

Promise<boolean>

注釈

このメソッドは通常、増分フェッチ/無限スクロールを制御するために使用されます。

CallWithChatAdapterManagement.loadPreviousChatMessagesから継承されます

mute()

通話中に現在のユーザーをミュートするか、マイクをローカルで無効にします。

function mute(): Promise<void>

戻り値

Promise<void>

CallWithChatAdapterManagement.muteから継承

off("callEnded", CallEndedListener)

function off(event: "callEnded", listener: CallEndedListener)

パラメーター

event

"callEnded"

CallWithChatAdapterSubscriptions.offから継承

off("callError", (e: AdapterError) => void)

function off(event: "callError", listener: (e: AdapterError) => void)

パラメーター

event

"callError"

listener

(e: AdapterError) => void

CallWithChatAdapterSubscriptions.offから継承

off("callIdChanged", CallIdChangedListener)

function off(event: "callIdChanged", listener: CallIdChangedListener)

パラメーター

event

"callIdChanged"

CallWithChatAdapterSubscriptions.offから継承

off("callParticipantsJoined", ParticipantsJoinedListener)

function off(event: "callParticipantsJoined", listener: ParticipantsJoinedListener)

パラメーター

event

"callParticipantsJoined"

CallWithChatAdapterSubscriptions.offから継承

off("callParticipantsLeft", ParticipantsLeftListener)

function off(event: "callParticipantsLeft", listener: ParticipantsLeftListener)

パラメーター

event

"callParticipantsLeft"

CallWithChatAdapterSubscriptions.offから継承

off("chatError", (e: AdapterError) => void)

function off(event: "chatError", listener: (e: AdapterError) => void)

パラメーター

event

"chatError"

listener

(e: AdapterError) => void

CallWithChatAdapterSubscriptions.offから継承

off("chatParticipantsAdded", ParticipantsAddedListener)

function off(event: "chatParticipantsAdded", listener: ParticipantsAddedListener)

パラメーター

event

"chatParticipantsAdded"

CallWithChatAdapterSubscriptions.offから継承

off("chatParticipantsRemoved", ParticipantsRemovedListener)

function off(event: "chatParticipantsRemoved", listener: ParticipantsRemovedListener)

パラメーター

event

"chatParticipantsRemoved"

CallWithChatAdapterSubscriptions.offから継承

off("displayNameChanged", DisplayNameChangedListener)

function off(event: "displayNameChanged", listener: DisplayNameChangedListener)

パラメーター

event

"displayNameChanged"

CallWithChatAdapterSubscriptions.offから継承

off("isLocalScreenSharingActiveChanged", IsLocalScreenSharingActiveChangedListener)

function off(event: "isLocalScreenSharingActiveChanged", listener: IsLocalScreenSharingActiveChangedListener)

パラメーター

event

"isLocalScreenSharingActiveChanged"

CallWithChatAdapterSubscriptions.offから継承

off("isMutedChanged", IsMutedChangedListener)

function off(event: "isMutedChanged", listener: IsMutedChangedListener)

パラメーター

event

"isMutedChanged"

CallWithChatAdapterSubscriptions.offから継承

off("isSpeakingChanged", IsSpeakingChangedListener)

function off(event: "isSpeakingChanged", listener: IsSpeakingChangedListener)

パラメーター

event

"isSpeakingChanged"

CallWithChatAdapterSubscriptions.offから継承

off("messageRead", MessageReadListener)

function off(event: "messageRead", listener: MessageReadListener)

パラメーター

event

"messageRead"

CallWithChatAdapterSubscriptions.offから継承

off("messageReceived", MessageReceivedListener)

function off(event: "messageReceived", listener: MessageReceivedListener)

パラメーター

event

"messageReceived"

CallWithChatAdapterSubscriptions.offから継承

off("messageSent", MessageReceivedListener)

function off(event: "messageSent", listener: MessageReceivedListener)

パラメーター

event

"messageSent"

CallWithChatAdapterSubscriptions.offから継承

off("selectedMicrophoneChanged", PropertyChangedEvent)

function off(event: "selectedMicrophoneChanged", listener: PropertyChangedEvent)

パラメーター

event

"selectedMicrophoneChanged"

CallWithChatAdapterSubscriptions.offから継承

off("selectedSpeakerChanged", PropertyChangedEvent)

function off(event: "selectedSpeakerChanged", listener: PropertyChangedEvent)

パラメーター

event

"selectedSpeakerChanged"

CallWithChatAdapterSubscriptions.offから継承

offStateChange((state: CallWithChatAdapterState) => void)

ハンドラーを stateChanged イベントに登録解除します。

function offStateChange(handler: (state: CallWithChatAdapterState) => void)

パラメーター

handler

(state: CallWithChatAdapterState) => void

AdapterState.offStateChangeから継承

on("callEnded", CallEndedListener)

function on(event: "callEnded", listener: CallEndedListener)

パラメーター

event

"callEnded"

CallWithChatAdapterSubscriptions.onから継承

on("callError", (e: AdapterError) => void)

function on(event: "callError", listener: (e: AdapterError) => void)

パラメーター

event

"callError"

listener

(e: AdapterError) => void

CallWithChatAdapterSubscriptions.onから継承

on("callIdChanged", CallIdChangedListener)

function on(event: "callIdChanged", listener: CallIdChangedListener)

パラメーター

event

"callIdChanged"

CallWithChatAdapterSubscriptions.onから継承

on("callParticipantsJoined", ParticipantsJoinedListener)

function on(event: "callParticipantsJoined", listener: ParticipantsJoinedListener)

パラメーター

event

"callParticipantsJoined"

CallWithChatAdapterSubscriptions.onから継承

on("callParticipantsLeft", ParticipantsLeftListener)

function on(event: "callParticipantsLeft", listener: ParticipantsLeftListener)

パラメーター

event

"callParticipantsLeft"

CallWithChatAdapterSubscriptions.onから継承

on("chatError", (e: AdapterError) => void)

function on(event: "chatError", listener: (e: AdapterError) => void)

パラメーター

event

"chatError"

listener

(e: AdapterError) => void

CallWithChatAdapterSubscriptions.onから継承

on("chatParticipantsAdded", ParticipantsAddedListener)

function on(event: "chatParticipantsAdded", listener: ParticipantsAddedListener)

パラメーター

event

"chatParticipantsAdded"

CallWithChatAdapterSubscriptions.onから継承

on("chatParticipantsRemoved", ParticipantsRemovedListener)

function on(event: "chatParticipantsRemoved", listener: ParticipantsRemovedListener)

パラメーター

event

"chatParticipantsRemoved"

CallWithChatAdapterSubscriptions.onから継承

on("displayNameChanged", DisplayNameChangedListener)

function on(event: "displayNameChanged", listener: DisplayNameChangedListener)

パラメーター

event

"displayNameChanged"

CallWithChatAdapterSubscriptions.onから継承

on("isLocalScreenSharingActiveChanged", IsLocalScreenSharingActiveChangedListener)

function on(event: "isLocalScreenSharingActiveChanged", listener: IsLocalScreenSharingActiveChangedListener)

パラメーター

event

"isLocalScreenSharingActiveChanged"

CallWithChatAdapterSubscriptions.onから継承

on("isMutedChanged", IsMutedChangedListener)

function on(event: "isMutedChanged", listener: IsMutedChangedListener)

パラメーター

event

"isMutedChanged"

CallWithChatAdapterSubscriptions.onから継承

on("isSpeakingChanged", IsSpeakingChangedListener)

function on(event: "isSpeakingChanged", listener: IsSpeakingChangedListener)

パラメーター

event

"isSpeakingChanged"

CallWithChatAdapterSubscriptions.onから継承

on("messageRead", MessageReadListener)

function on(event: "messageRead", listener: MessageReadListener)

パラメーター

event

"messageRead"

CallWithChatAdapterSubscriptions.onから継承

on("messageReceived", MessageReceivedListener)

function on(event: "messageReceived", listener: MessageReceivedListener)

パラメーター

event

"messageReceived"

CallWithChatAdapterSubscriptions.onから継承

on("messageSent", MessageReceivedListener)

function on(event: "messageSent", listener: MessageReceivedListener)

パラメーター

event

"messageSent"

CallWithChatAdapterSubscriptions.onから継承

on("selectedMicrophoneChanged", PropertyChangedEvent)

function on(event: "selectedMicrophoneChanged", listener: PropertyChangedEvent)

パラメーター

event

"selectedMicrophoneChanged"

CallWithChatAdapterSubscriptions.onから継承

on("selectedSpeakerChanged", PropertyChangedEvent)

function on(event: "selectedSpeakerChanged", listener: PropertyChangedEvent)

パラメーター

event

"selectedSpeakerChanged"

CallWithChatAdapterSubscriptions.onから継承

onStateChange((state: CallWithChatAdapterState) => void)

ハンドラーを stateChanged イベントにサブスクライブします。

function onStateChange(handler: (state: CallWithChatAdapterState) => void)

パラメーター

handler

(state: CallWithChatAdapterState) => void

AdapterState.onStateChangeから継承されます

queryCameras()

使用可能なカメラ デバイスのクエリを実行します。

function queryCameras(): Promise<VideoDeviceInfo[]>

戻り値

Promise<VideoDeviceInfo[]>

ビデオ デバイス情報エンティティの配列 <xref:%40azure%2Fcommunication-calling%23VideoDeviceInfo>

注釈

このメソッドは askDevicePermission() の後に呼び出す必要があります

CallWithChatAdapterManagement.queryCamerasから継承されます

queryMicrophones()

使用可能なマイク デバイスのクエリを実行します。

function queryMicrophones(): Promise<AudioDeviceInfo[]>

戻り値

Promise<AudioDeviceInfo[]>

オーディオ デバイス情報エンティティの配列 <xref:%40azure%2Fcommunication-calling%23AudioDeviceInfo>

注釈

このメソッドは askDevicePermission() の後に呼び出す必要があります

CallWithChatAdapterManagement.queryMicrophonesから継承

querySpeakers()

使用可能なマイク デバイスのクエリを実行します。

function querySpeakers(): Promise<AudioDeviceInfo[]>

戻り値

Promise<AudioDeviceInfo[]>

オーディオ デバイス情報エンティティの配列 <xref:%40azure%2Fcommunication-calling%23AudioDeviceInfo>

注釈

このメソッドは askDevicePermission() の後に呼び出す必要があります

CallWithChatAdapterManagement.querySpeakersから継承されます

removeParticipant(string)

通話から参加者を削除します。

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

パラメーター

userId

string

削除する参加者の UserId。

戻り値

Promise<void>

CallWithChatAdapterManagement.removeParticipantから継承

sendMessage(string, SendMessageOptions)

スレッドでメッセージを送信します。

function sendMessage(content: string, options?: SendMessageOptions): Promise<void>

パラメーター

content

string

戻り値

Promise<void>

CallWithChatAdapterManagement.sendMessageから継承されます

sendReadReceipt(string)

メッセージの開封確認メッセージを送信します。

function sendReadReceipt(chatMessageId: string): Promise<void>

パラメーター

chatMessageId

string

戻り値

Promise<void>

CallWithChatAdapterManagement.sendReadReceiptから継承されます

sendTypingIndicator()

スレッドで入力インジケーターを送信します。

function sendTypingIndicator(): Promise<void>

戻り値

Promise<void>

CallWithChatAdapterManagement.sendTypingIndicatorから継承されます

setCamera(VideoDeviceInfo, VideoStreamOptions)

呼び出しで使用するカメラを設定します。

function setCamera(sourceInfo: VideoDeviceInfo, options?: VideoStreamOptions): Promise<void>

パラメーター

sourceInfo
VideoDeviceInfo

選択するカメラ デバイス、queryCameras によって返される 1 つを選択する

options
VideoStreamOptions

カメラ ストリームのレンダリング方法を制御するオプション <xref:%40azure%2Fcommunication-calling%23VideoStreamOptions>

戻り値

Promise<void>

CallWithChatAdapterManagement.setCameraから継承されます

setMicrophone(AudioDeviceInfo)

通話で使用するマイクを設定します。

function setMicrophone(sourceInfo: AudioDeviceInfo): Promise<void>

パラメーター

sourceInfo
AudioDeviceInfo

選択するマイク デバイス、queryMicrophones によって返される 1 つを選択する

戻り値

Promise<void>

CallWithChatAdapterManagement.setMicrophoneから継承

setSpeaker(AudioDeviceInfo)

通話で使用するスピーカーを設定します。

function setSpeaker(sourceInfo: AudioDeviceInfo): Promise<void>

パラメーター

sourceInfo
AudioDeviceInfo

選択するスピーカー デバイス、querySpeakers によって返される 1 つを選択する

戻り値

Promise<void>

CallWithChatAdapterManagement.setSpeakerから継承

startCall(string[], StartCallOptions)

呼び出しを開始します。

function startCall(participants: string[], options?: StartCallOptions): undefined | Call

パラメーター

participants

string[]

参加する参加者 ID の配列

戻り値

undefined | Call

CallWithChatAdapterManagement.startCallから継承されます

startCamera(VideoStreamOptions)

カメラを起動します。

このメソッドは、呼び出しがアクティブでない場合に、ローカル カメラ ビューのレンダリングを開始します。

function startCamera(options?: VideoStreamOptions): Promise<void>

パラメーター

options
VideoStreamOptions

ビデオ ストリームのレンダリング方法を制御するオプション <xref:%40azure%2Fcommunication-calling%23VideoStreamOptions>

戻り値

Promise<void>

CallWithChatAdapterManagement.startCameraから継承されます

startScreenShare()

通話中に画面の共有を開始します。

function startScreenShare(): Promise<void>

戻り値

Promise<void>

CallWithChatAdapterManagement.startScreenShareから継承されます

stopCamera()

カメラを停止します。

呼び出しがアクティブでない場合、このメソッドはローカル カメラ ビューのレンダリングを停止します。

function stopCamera(): Promise<void>

戻り値

Promise<void>

CallWithChatAdapterManagement.stopCameraから継承されます

stopScreenShare()

画面の共有を停止します。

function stopScreenShare(): Promise<void>

戻り値

Promise<void>

CallWithChatAdapterManagement.stopScreenShareから継承されます

unmute()

通話中に現在のユーザーのミュートを解除するか、マイクをローカルで有効にします。

function unmute(): Promise<void>

戻り値

Promise<void>

CallWithChatAdapterManagement.unmuteから継承

updateMessage(string, string, Record<string, string>)

メッセージの内容を更新します。

function updateMessage(messageId: string, content: string, metadata?: Record<string, string>): Promise<void>

パラメーター

messageId

string

content

string

metadata

Record<string, string>

戻り値

Promise<void>

CallWithChatAdapterManagement.updateMessageから継承されます