CallConnection class
CallConnection 클래스는 호출 연결 기반 API를 나타냅니다.
메서드
| add |
통화에 참가자 추가 |
| cancel |
참가자 추가 요청을 취소합니다. |
| get |
통화의 통화 연결 속성 가져오기 |
| get |
CallMedia의 새 인스턴스를 초기화합니다. |
| get |
통화에서 참가자 가져오기 |
| hang |
통화 자체를 중단하거나 전체 통화를 종료합니다. |
| list |
통화에서 모든 참가자 가져오기 |
| mute |
통화에서 참가자를 음소거합니다. |
| remove |
통화에서 참가자 제거 |
| transfer |
대상 참가자에게 호출 전송 |
생성자 세부 정보
CallConnection(string, string, TokenCredential | KeyCredential, CallAutomationApiClientOptionalParams)
new CallConnection(callConnectionId: string, endpoint: string, credential: TokenCredential | KeyCredential, options?: CallAutomationApiClientOptionalParams)
매개 변수
- callConnectionId
-
string
- endpoint
-
string
- credential
- options
-
CallAutomationApiClientOptionalParams
메서드 세부 정보
addParticipant(CallInvite, AddParticipantOptions)
통화에 참가자 추가
function addParticipant(targetParticipant: CallInvite, options?: AddParticipantOptions): Promise<AddParticipantResult>
매개 변수
- targetParticipant
- CallInvite
- options
- AddParticipantOptions
반환
Promise<AddParticipantResult>
cancelAddParticipantOperation(string, CancelAddParticipantOperationOptions)
참가자 추가 요청을 취소합니다.
function cancelAddParticipantOperation(invitationId: string, options?: CancelAddParticipantOperationOptions): Promise<CancelAddParticipantOperationResult>
매개 변수
- invitationId
-
string
참가자 추가 요청을 취소하는 데 사용되는 초대 ID입니다.
반환
Promise<CancelAddParticipantOperationResult>
getCallConnectionProperties(OperationOptions)
통화의 통화 연결 속성 가져오기
function getCallConnectionProperties(options?: OperationOptions): Promise<CallConnectionProperties>
매개 변수
- options
- OperationOptions
반환
Promise<CallConnectionProperties>
getCallMedia()
getParticipant(CommunicationIdentifier, OperationOptions)
통화에서 참가자 가져오기
function getParticipant(targetParticipant: CommunicationIdentifier, options?: OperationOptions): Promise<CallParticipant>
매개 변수
- targetParticipant
- CommunicationIdentifier
요청된 참가자의 통신 식별자입니다.
- options
- OperationOptions
반환
Promise<CallParticipant>
hangUp(boolean, OperationOptions)
통화 자체를 중단하거나 전체 통화를 종료합니다.
function hangUp(isForEveryone: boolean, options?: OperationOptions): Promise<void>
매개 변수
- isForEveryone
-
boolean
- options
- OperationOptions
반환
Promise<void>
listParticipants(OperationOptions)
통화에서 모든 참가자 가져오기
function listParticipants(options?: OperationOptions): Promise<ListParticipantsResult>
매개 변수
- options
- OperationOptions
반환
Promise<ListParticipantsResult>
muteParticipant(CommunicationIdentifier, MuteParticipantOption)
통화에서 참가자를 음소거합니다.
function muteParticipant(participant: CommunicationIdentifier, options?: MuteParticipantOption): Promise<MuteParticipantResult>
매개 변수
- participant
- CommunicationIdentifier
통화에서 음소거할 참가자입니다.
- options
- MuteParticipantOption
음소거 참가자에 대한 추가 특성입니다.
반환
Promise<MuteParticipantResult>
removeParticipant(CommunicationIdentifier, RemoveParticipantsOption)
통화에서 참가자 제거
function removeParticipant(participant: CommunicationIdentifier, options?: RemoveParticipantsOption): Promise<RemoveParticipantResult>
매개 변수
- participant
- CommunicationIdentifier
참가자는 통화에서 제거됩니다.
- options
- RemoveParticipantsOption
반환
Promise<RemoveParticipantResult>
transferCallToParticipant(CommunicationIdentifier, TransferCallToParticipantOptions)
대상 참가자에게 호출 전송
function transferCallToParticipant(targetParticipant: CommunicationIdentifier, options?: TransferCallToParticipantOptions): Promise<TransferCallResult>
매개 변수
- targetParticipant
- CommunicationIdentifier
전송할 대상입니다.
- options
- TransferCallToParticipantOptions
반환
Promise<TransferCallResult>