Freigeben über


CallConnection class

CallConnection-Klasse stellt verbindungsbasierte APIs dar.

Konstruktoren

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

Methoden

addParticipant(CallInvite, AddParticipantOptions)

Hinzufügen eines Teilnehmers zum Anruf

cancelAddParticipantOperation(string, CancelAddParticipantOperationOptions)

Anfrage zum Hinzufügen eines Teilnehmers abbrechen.

getCallConnectionProperties(OperationOptions)

Abrufen von Verbindungseigenschaften des Anrufs

getCallMedia()

Initialisiert eine neue Instanz von CallMedia.

getParticipant(CommunicationIdentifier, OperationOptions)

Abrufen eines Teilnehmers aus dem Anruf

hangUp(boolean, OperationOptions)

Hängen Sie den Anruf für sich selbst auf, oder beenden Sie den gesamten Anruf.

listParticipants(OperationOptions)

Abrufen aller Teilnehmer aus dem Anruf

muteParticipant(CommunicationIdentifier, MuteParticipantOption)

Teilnehmer aus dem Anruf stummschalten.

removeParticipant(CommunicationIdentifier, RemoveParticipantsOption)

Entfernen eines Teilnehmers aus dem Anruf

transferCallToParticipant(CommunicationIdentifier, TransferCallToParticipantOptions)

Durchstellen des Anrufs an einen Zielteilnehmer

Details zum Konstruktor

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

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

Parameter

callConnectionId

string

endpoint

string

options

CallAutomationApiClientOptionalParams

Details zur Methode

addParticipant(CallInvite, AddParticipantOptions)

Hinzufügen eines Teilnehmers zum Anruf

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

Parameter

targetParticipant
CallInvite

Gibt zurück

cancelAddParticipantOperation(string, CancelAddParticipantOperationOptions)

Anfrage zum Hinzufügen eines Teilnehmers abbrechen.

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

Parameter

invitationId

string

Einladungs-ID, die zum Abbrechen der Anforderung zum Hinzufügen eines Teilnehmers verwendet wird.

Gibt zurück

getCallConnectionProperties(OperationOptions)

Abrufen von Verbindungseigenschaften des Anrufs

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

Parameter

Gibt zurück

getCallMedia()

Initialisiert eine neue Instanz von CallMedia.

function getCallMedia(): CallMedia

Gibt zurück

getParticipant(CommunicationIdentifier, OperationOptions)

Abrufen eines Teilnehmers aus dem Anruf

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

Parameter

targetParticipant
CommunicationIdentifier

Der Kommunikationsbezeichner des angeforderten Teilnehmers.

Gibt zurück

Promise<CallParticipant>

hangUp(boolean, OperationOptions)

Hängen Sie den Anruf für sich selbst auf, oder beenden Sie den gesamten Anruf.

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

Parameter

isForEveryone

boolean

Gibt zurück

Promise<void>

listParticipants(OperationOptions)

Abrufen aller Teilnehmer aus dem Anruf

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

Parameter

Gibt zurück

muteParticipant(CommunicationIdentifier, MuteParticipantOption)

Teilnehmer aus dem Anruf stummschalten.

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

Parameter

participant
CommunicationIdentifier

Teilnehmer, der vom Anruf stummgeschaltet werden soll.

options
MuteParticipantOption

Zusätzliche Attribute für stummgeschalteten Teilnehmer.

Gibt zurück

removeParticipant(CommunicationIdentifier, RemoveParticipantsOption)

Entfernen eines Teilnehmers aus dem Anruf

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

Parameter

participant
CommunicationIdentifier

Der Teilnehmer wird aus dem Anruf entfernt.

Gibt zurück

transferCallToParticipant(CommunicationIdentifier, TransferCallToParticipantOptions)

Durchstellen des Anrufs an einen Zielteilnehmer

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

Parameter

targetParticipant
CommunicationIdentifier

Das Ziel, auf das übertragen werden soll.

Gibt zurück