مشاركة عبر


CallConnection class

تمثل فئة CallConnection واجهات برمجة التطبيقات المستندة إلى اتصال الاتصال.

المنشئون

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

معرف الدعوة المستخدم لإلغاء طلب إضافة مشارك.

المرتجعات

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

الهدف الذي سيتم نقله إليه.

المرتجعات