다음을 통해 공유


CallConnection class

CallConnection 클래스는 호출 연결 기반 API를 나타냅니다.

생성자

CallConnection(string, string, TokenCredential | KeyCredential, CallAutomationApiClientOptionalParams)

메서드

addParticipant(CallInvite, AddParticipantOptions)

통화에 참가자 추가

cancelAddParticipantOperation(string, CancelAddParticipantOperationOptions)

참가자 추가 요청을 취소합니다.

getCallConnectionProperties(OperationOptions)

통화의 통화 연결 속성 가져오기

getCallMedia()

CallMedia의 새 인스턴스를 초기화합니다.

getParticipant(CommunicationIdentifier, OperationOptions)

통화에서 참가자 가져오기

hangUp(boolean, OperationOptions)

통화 자체를 중단하거나 전체 통화를 종료합니다.

listParticipants(OperationOptions)

통화에서 모든 참가자 가져오기

muteParticipant(CommunicationIdentifier, MuteParticipantOption)

통화에서 참가자를 음소거합니다.

removeParticipant(CommunicationIdentifier, RemoveParticipantsOption)

통화에서 참가자 제거

transferCallToParticipant(CommunicationIdentifier, TransferCallToParticipantOptions)

대상 참가자에게 호출 전송

생성자 세부 정보

CallConnection(string, string, TokenCredential | KeyCredential, CallAutomationApiClientOptionalParams)

new CallConnection(callConnectionId: string, endpoint: string, credential: TokenCredential | KeyCredential, options?: CallAutomationApiClientOptionalParams)

매개 변수

callConnectionId

string

endpoint

string

options

CallAutomationApiClientOptionalParams

메서드 세부 정보

addParticipant(CallInvite, AddParticipantOptions)

통화에 참가자 추가

function addParticipant(targetParticipant: CallInvite, options?: AddParticipantOptions): Promise<AddParticipantResult>

매개 변수

targetParticipant
CallInvite

반환

cancelAddParticipantOperation(string, CancelAddParticipantOperationOptions)

참가자 추가 요청을 취소합니다.

function cancelAddParticipantOperation(invitationId: string, options?: CancelAddParticipantOperationOptions): Promise<CancelAddParticipantOperationResult>

매개 변수

invitationId

string

참가자 추가 요청을 취소하는 데 사용되는 초대 ID입니다.

반환

getCallConnectionProperties(OperationOptions)

통화의 통화 연결 속성 가져오기

function getCallConnectionProperties(options?: OperationOptions): Promise<CallConnectionProperties>

매개 변수

반환

getCallMedia()

CallMedia의 새 인스턴스를 초기화합니다.

function getCallMedia(): CallMedia

반환

getParticipant(CommunicationIdentifier, OperationOptions)

통화에서 참가자 가져오기

function getParticipant(targetParticipant: CommunicationIdentifier, options?: OperationOptions): Promise<CallParticipant>

매개 변수

targetParticipant
CommunicationIdentifier

요청된 참가자의 통신 식별자입니다.

반환

Promise<CallParticipant>

hangUp(boolean, OperationOptions)

통화 자체를 중단하거나 전체 통화를 종료합니다.

function hangUp(isForEveryone: boolean, options?: OperationOptions): Promise<void>

매개 변수

isForEveryone

boolean

반환

Promise<void>

listParticipants(OperationOptions)

통화에서 모든 참가자 가져오기

function listParticipants(options?: OperationOptions): Promise<ListParticipantsResult>

매개 변수

반환

muteParticipant(CommunicationIdentifier, MuteParticipantOption)

통화에서 참가자를 음소거합니다.

function muteParticipant(participant: CommunicationIdentifier, options?: MuteParticipantOption): Promise<MuteParticipantResult>

매개 변수

participant
CommunicationIdentifier

통화에서 음소거할 참가자입니다.

options
MuteParticipantOption

음소거 참가자에 대한 추가 특성입니다.

반환

removeParticipant(CommunicationIdentifier, RemoveParticipantsOption)

통화에서 참가자 제거

function removeParticipant(participant: CommunicationIdentifier, options?: RemoveParticipantsOption): Promise<RemoveParticipantResult>

매개 변수

participant
CommunicationIdentifier

참가자는 통화에서 제거됩니다.

반환

transferCallToParticipant(CommunicationIdentifier, TransferCallToParticipantOptions)

대상 참가자에게 호출 전송

function transferCallToParticipant(targetParticipant: CommunicationIdentifier, options?: TransferCallToParticipantOptions): Promise<TransferCallResult>

매개 변수

targetParticipant
CommunicationIdentifier

전송할 대상입니다.

반환