-
Notifications
You must be signed in to change notification settings - Fork 190
/
CallAdapter.yml
701 lines (698 loc) · 24.1 KB
/
CallAdapter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
### YamlMime:TSType
name: CallAdapter
uid: '@azure/communication-react.CallAdapter'
package: '@azure/communication-react'
summary: '<xref:CallComposite> Adapter interface.'
fullName: CallAdapter
remarks: ''
isPreview: false
isDeprecated: false
type: interface
methods:
- name: askDevicePermission(PermissionConstraints)
uid: '@azure/communication-react.CallAdapter.askDevicePermission'
package: '@azure/communication-react'
summary: Ask for permissions of devices.
remarks: Browser permission window will pop up if permissions are not granted yet
isPreview: false
isDeprecated: false
syntax:
content: 'function askDevicePermission(constrain: PermissionConstraints)'
parameters:
- id: constrain
type: PermissionConstraints
description: >
Define constraints for accessing local devices {@link
@azure/communication-calling#PermissionConstraints }
return:
type: Promise<void>
description: ''
- name: 'createStreamView(string, VideoStreamOptions)'
uid: '@azure/communication-react.CallAdapter.createStreamView'
package: '@azure/communication-react'
summary: Create the html view for a stream.
remarks: This method is implemented for composite
isPreview: false
isDeprecated: false
syntax:
content: >-
function createStreamView(remoteUserId?: string, options?:
VideoStreamOptions)
parameters:
- id: remoteUserId
type: string
description: >-
Id of the participant to render, leave it undefined to create the
local camera view
- id: options
type: <xref uid="@azure/communication-react.VideoStreamOptions" />
description: >
Options to control how video streams are rendered {@link
@azure/communication-calling#VideoStreamOptions }
return:
type: Promise<void>
description: ''
- name: 'disposeStreamView(string, VideoStreamOptions)'
uid: '@azure/communication-react.CallAdapter.disposeStreamView'
package: '@azure/communication-react'
summary: Dispose the html view for a stream.
remarks: This method is implemented for composite
isPreview: false
isDeprecated: false
syntax:
content: >-
function disposeStreamView(remoteUserId?: string, options?:
VideoStreamOptions)
parameters:
- id: remoteUserId
type: string
description: >-
Id of the participant to render, leave it undefined to dispose the
local camera view
- id: options
type: <xref uid="@azure/communication-react.VideoStreamOptions" />
description: >
Options to control how video streams are rendered {@link
@azure/communication-calling#VideoStreamOptions }
return:
type: Promise<void>
description: ''
- name: joinCall(boolean)
uid: '@azure/communication-react.CallAdapter.joinCall'
package: '@azure/communication-react'
summary: Join the call with microphone initially on/off.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function joinCall(microphoneOn?: boolean)'
parameters:
- id: microphoneOn
type: boolean
description: |
Whether microphone is initially enabled
return:
type: Call | undefined
description: ''
- name: leaveCall(boolean)
uid: '@azure/communication-react.CallAdapter.leaveCall'
package: '@azure/communication-react'
summary: Leave the call
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function leaveCall(forEveryone?: boolean)'
parameters:
- id: forEveryone
type: boolean
description: |
Whether to remove all participants when leaving
return:
type: Promise<void>
description: ''
- name: mute()
uid: '@azure/communication-react.CallAdapter.mute'
package: '@azure/communication-react'
summary: Mute the current user during the call or disable microphone locally
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: function mute()
return:
type: Promise<void>
description: ''
- name: 'off("callEnded", CallEndedListener)'
uid: '@azure/communication-react.CallAdapter.off_7'
package: '@azure/communication-react'
summary: Unsubscribe function for 'callEnded' event.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function off(event: "callEnded", listener: CallEndedListener)'
parameters:
- id: event
type: '"callEnded"'
description: ''
- id: listener
type: <xref uid="@azure/communication-react.CallEndedListener" />
description: ''
- name: 'off("callIdChanged", CallIdChangedListener)'
uid: '@azure/communication-react.CallAdapter.off_3'
package: '@azure/communication-react'
summary: Unsubscribe function for 'callIdChanged' event.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function off(event: "callIdChanged", listener: CallIdChangedListener)'
parameters:
- id: event
type: '"callIdChanged"'
description: ''
- id: listener
type: <xref uid="@azure/communication-react.CallIdChangedListener" />
description: ''
- name: 'off("diagnosticChanged", DiagnosticChangedEventListner)'
uid: '@azure/communication-react.CallAdapter.off_8'
package: '@azure/communication-react'
summary: Unsubscribe function for 'diagnosticChanged' event.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function off(event: "diagnosticChanged", listener:
DiagnosticChangedEventListner)
parameters:
- id: event
type: '"diagnosticChanged"'
description: ''
- id: listener
type: >-
<xref uid="@azure/communication-react.DiagnosticChangedEventListner"
/>
description: ''
- name: 'off("displayNameChanged", DisplayNameChangedListener)'
uid: '@azure/communication-react.CallAdapter.off_5'
package: '@azure/communication-react'
summary: Unsubscribe function for 'displayNameChanged' event.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function off(event: "displayNameChanged", listener:
DisplayNameChangedListener)
parameters:
- id: event
type: '"displayNameChanged"'
description: ''
- id: listener
type: <xref uid="@azure/communication-react.DisplayNameChangedListener" />
description: ''
- name: 'off("error", (e: AdapterError) => void)'
uid: '@azure/communication-react.CallAdapter.off_9'
package: '@azure/communication-react'
summary: Unsubscribe function for 'error' event.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function off(event: "error", listener: (e: AdapterError) => void)'
parameters:
- id: event
type: '"error"'
description: ''
- id: listener
type: '(e: AdapterError) => void'
description: ''
- name: >-
off("isLocalScreenSharingActiveChanged",
IsLocalScreenSharingActiveChangedListener)
uid: '@azure/communication-react.CallAdapter.off_4'
package: '@azure/communication-react'
summary: Unsubscribe function for 'isLocalScreenSharingActiveChanged' event.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function off(event: "isLocalScreenSharingActiveChanged", listener:
IsLocalScreenSharingActiveChangedListener)
parameters:
- id: event
type: '"isLocalScreenSharingActiveChanged"'
description: ''
- id: listener
type: >-
<xref
uid="@azure/communication-react.IsLocalScreenSharingActiveChangedListener"
/>
description: ''
- name: 'off("isMutedChanged", IsMutedChangedListener)'
uid: '@azure/communication-react.CallAdapter.off_2'
package: '@azure/communication-react'
summary: Unsubscribe function for 'isMutedChanged' event.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function off(event: "isMutedChanged", listener: IsMutedChangedListener)'
parameters:
- id: event
type: '"isMutedChanged"'
description: ''
- id: listener
type: <xref uid="@azure/communication-react.IsMutedChangedListener" />
description: ''
- name: 'off("isSpeakingChanged", IsSpeakingChangedListener)'
uid: '@azure/communication-react.CallAdapter.off_6'
package: '@azure/communication-react'
summary: Unsubscribe function for 'isSpeakingChanged' event.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function off(event: "isSpeakingChanged", listener:
IsSpeakingChangedListener)
parameters:
- id: event
type: '"isSpeakingChanged"'
description: ''
- id: listener
type: <xref uid="@azure/communication-react.IsSpeakingChangedListener" />
description: ''
- name: 'off("participantsJoined", ParticipantsJoinedListener)'
uid: '@azure/communication-react.CallAdapter.off'
package: '@azure/communication-react'
summary: Unsubscribe function for 'participantsJoined' event.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function off(event: "participantsJoined", listener:
ParticipantsJoinedListener)
parameters:
- id: event
type: '"participantsJoined"'
description: ''
- id: listener
type: <xref uid="@azure/communication-react.ParticipantsJoinedListener" />
description: ''
- name: 'off("participantsLeft", ParticipantsLeftListener)'
uid: '@azure/communication-react.CallAdapter.off_1'
package: '@azure/communication-react'
summary: Unsubscribe function for 'participantsLeft' event.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function off(event: "participantsLeft", listener:
ParticipantsLeftListener)
parameters:
- id: event
type: '"participantsLeft"'
description: ''
- id: listener
type: <xref uid="@azure/communication-react.ParticipantsLeftListener" />
description: ''
- name: 'on("callEnded", CallEndedListener)'
uid: '@azure/communication-react.CallAdapter.on_7'
package: '@azure/communication-react'
summary: Subscribe function for 'callEnded' event.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function on(event: "callEnded", listener: CallEndedListener)'
parameters:
- id: event
type: '"callEnded"'
description: ''
- id: listener
type: <xref uid="@azure/communication-react.CallEndedListener" />
description: ''
- name: 'on("callIdChanged", CallIdChangedListener)'
uid: '@azure/communication-react.CallAdapter.on_3'
package: '@azure/communication-react'
summary: Subscribe function for 'callIdChanged' event.
remarks: The event will be triggered when callId of current user changed.
isPreview: false
isDeprecated: false
syntax:
content: 'function on(event: "callIdChanged", listener: CallIdChangedListener)'
parameters:
- id: event
type: '"callIdChanged"'
description: ''
- id: listener
type: <xref uid="@azure/communication-react.CallIdChangedListener" />
description: ''
- name: 'on("diagnosticChanged", DiagnosticChangedEventListner)'
uid: '@azure/communication-react.CallAdapter.on_8'
package: '@azure/communication-react'
summary: >
Subscribe function for 'diagnosticChanged' event.
This event fires whenever there is a change in user facing diagnostics
about the ongoing call.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function on(event: "diagnosticChanged", listener:
DiagnosticChangedEventListner)
parameters:
- id: event
type: '"diagnosticChanged"'
description: ''
- id: listener
type: >-
<xref uid="@azure/communication-react.DiagnosticChangedEventListner"
/>
description: ''
- name: 'on("displayNameChanged", DisplayNameChangedListener)'
uid: '@azure/communication-react.CallAdapter.on_5'
package: '@azure/communication-react'
summary: Subscribe function for 'displayNameChanged' event.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function on(event: "displayNameChanged", listener:
DisplayNameChangedListener)
parameters:
- id: event
type: '"displayNameChanged"'
description: ''
- id: listener
type: <xref uid="@azure/communication-react.DisplayNameChangedListener" />
description: ''
- name: 'on("error", (e: AdapterError) => void)'
uid: '@azure/communication-react.CallAdapter.on_9'
package: '@azure/communication-react'
summary: Subscribe function for 'error' event.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function on(event: "error", listener: (e: AdapterError) => void)'
parameters:
- id: event
type: '"error"'
description: ''
- id: listener
type: '(e: AdapterError) => void'
description: ''
- name: >-
on("isLocalScreenSharingActiveChanged",
IsLocalScreenSharingActiveChangedListener)
uid: '@azure/communication-react.CallAdapter.on_4'
package: '@azure/communication-react'
summary: Subscribe function for 'isLocalScreenSharingActiveChanged' event.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function on(event: "isLocalScreenSharingActiveChanged", listener:
IsLocalScreenSharingActiveChangedListener)
parameters:
- id: event
type: '"isLocalScreenSharingActiveChanged"'
description: ''
- id: listener
type: >-
<xref
uid="@azure/communication-react.IsLocalScreenSharingActiveChangedListener"
/>
description: ''
- name: 'on("isMutedChanged", IsMutedChangedListener)'
uid: '@azure/communication-react.CallAdapter.on_2'
package: '@azure/communication-react'
summary: Subscribe function for 'isMutedChanged' event.
remarks: >-
The event will be triggered whenever current user or remote user mute
state changed
isPreview: false
isDeprecated: false
syntax:
content: 'function on(event: "isMutedChanged", listener: IsMutedChangedListener)'
parameters:
- id: event
type: '"isMutedChanged"'
description: ''
- id: listener
type: <xref uid="@azure/communication-react.IsMutedChangedListener" />
description: ''
- name: 'on("isSpeakingChanged", IsSpeakingChangedListener)'
uid: '@azure/communication-react.CallAdapter.on_6'
package: '@azure/communication-react'
summary: Subscribe function for 'isSpeakingChanged' event.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function on(event: "isSpeakingChanged", listener:
IsSpeakingChangedListener)
parameters:
- id: event
type: '"isSpeakingChanged"'
description: ''
- id: listener
type: <xref uid="@azure/communication-react.IsSpeakingChangedListener" />
description: ''
- name: 'on("participantsJoined", ParticipantsJoinedListener)'
uid: '@azure/communication-react.CallAdapter.on'
package: '@azure/communication-react'
summary: Subscribe function for 'participantsJoined' event.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function on(event: "participantsJoined", listener:
ParticipantsJoinedListener)
parameters:
- id: event
type: '"participantsJoined"'
description: ''
- id: listener
type: <xref uid="@azure/communication-react.ParticipantsJoinedListener" />
description: ''
- name: 'on("participantsLeft", ParticipantsLeftListener)'
uid: '@azure/communication-react.CallAdapter.on_1'
package: '@azure/communication-react'
summary: Subscribe function for 'participantsLeft' event.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function on(event: "participantsLeft", listener:
ParticipantsLeftListener)
parameters:
- id: event
type: '"participantsLeft"'
description: ''
- id: listener
type: <xref uid="@azure/communication-react.ParticipantsLeftListener" />
description: ''
- name: queryCameras()
uid: '@azure/communication-react.CallAdapter.queryCameras'
package: '@azure/communication-react'
summary: Query for available camera devices.
remarks: This method should be called after askDevicePermission()
isPreview: false
isDeprecated: false
syntax:
content: function queryCameras()
return:
type: 'Promise<VideoDeviceInfo[]>'
description: >-
An array of video device information entities {@link
@azure/communication-calling#VideoDeviceInfo }
- name: queryMicrophones()
uid: '@azure/communication-react.CallAdapter.queryMicrophones'
package: '@azure/communication-react'
summary: Query for available microphone devices.
remarks: This method should be called after askDevicePermission()
isPreview: false
isDeprecated: false
syntax:
content: function queryMicrophones()
return:
type: 'Promise<AudioDeviceInfo[]>'
description: >-
An array of audio device information entities {@link
@azure/communication-calling#AudioDeviceInfo }
- name: querySpeakers()
uid: '@azure/communication-react.CallAdapter.querySpeakers'
package: '@azure/communication-react'
summary: Query for available microphone devices.
remarks: This method should be called after askDevicePermission()
isPreview: false
isDeprecated: false
syntax:
content: function querySpeakers()
return:
type: 'Promise<AudioDeviceInfo[]>'
description: >-
An array of audio device information entities {@link
@azure/communication-calling#AudioDeviceInfo }
- name: removeParticipant(string)
uid: '@azure/communication-react.CallAdapter.removeParticipant'
package: '@azure/communication-react'
summary: Remove a participant from the call.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function removeParticipant(userId: string)'
parameters:
- id: userId
type: string
description: |
Id of the participant to be removed
return:
type: Promise<void>
description: ''
- name: 'setCamera(VideoDeviceInfo, VideoStreamOptions)'
uid: '@azure/communication-react.CallAdapter.setCamera'
package: '@azure/communication-react'
summary: Set the camera to use in the call.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: >-
function setCamera(sourceInfo: VideoDeviceInfo, options?:
VideoStreamOptions)
parameters:
- id: sourceInfo
type: VideoDeviceInfo
description: >-
Camera device to choose, pick one returned by {@link
CallAdapterDeviceManagement#queryCameras }
- id: options
type: <xref uid="@azure/communication-react.VideoStreamOptions" />
description: >
Options to control how the camera stream is rendered {@link
@azure/communication-calling#VideoStreamOptions }
return:
type: Promise<void>
description: ''
- name: setMicrophone(AudioDeviceInfo)
uid: '@azure/communication-react.CallAdapter.setMicrophone'
package: '@azure/communication-react'
summary: Set the microphone to use in the call.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function setMicrophone(sourceInfo: AudioDeviceInfo)'
parameters:
- id: sourceInfo
type: AudioDeviceInfo
description: >
Microphone device to choose, pick one returned by {@link
CallAdapterDeviceManagement#queryMicrophones }
return:
type: Promise<void>
description: ''
- name: setSpeaker(AudioDeviceInfo)
uid: '@azure/communication-react.CallAdapter.setSpeaker'
package: '@azure/communication-react'
summary: Set the speaker to use in the call.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function setSpeaker(sourceInfo: AudioDeviceInfo)'
parameters:
- id: sourceInfo
type: AudioDeviceInfo
description: >
Speaker device to choose, pick one returned by {@link
CallAdapterDeviceManagement#querySpeakers }
return:
type: Promise<void>
description: ''
- name: 'startCall(string[])'
uid: '@azure/communication-react.CallAdapter.startCall'
package: '@azure/communication-react'
summary: Start the call.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function startCall(participants: string[])'
parameters:
- id: participants
type: 'string[]'
description: |
An array of participant ids to join
return:
type: Call | undefined
description: ''
- name: startCamera(VideoStreamOptions)
uid: '@azure/communication-react.CallAdapter.startCamera'
package: '@azure/communication-react'
summary: >-
Start the camera
This method will start rendering a local camera view when the call is not
active
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: 'function startCamera(options?: VideoStreamOptions)'
parameters:
- id: options
type: <xref uid="@azure/communication-react.VideoStreamOptions" />
description: >
Options to control how video streams are rendered {@link
@azure/communication-calling#VideoStreamOptions }
return:
type: Promise<void>
description: ''
- name: startScreenShare()
uid: '@azure/communication-react.CallAdapter.startScreenShare'
package: '@azure/communication-react'
summary: Start sharing the screen during a call.
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: function startScreenShare()
return:
type: Promise<void>
description: ''
- name: stopCamera()
uid: '@azure/communication-react.CallAdapter.stopCamera'
package: '@azure/communication-react'
summary: >-
Stop the camera
This method will stop rendering a local camera view when the call is not
active
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: function stopCamera()
return:
type: Promise<void>
description: ''
- name: stopScreenShare()
uid: '@azure/communication-react.CallAdapter.stopScreenShare'
package: '@azure/communication-react'
summary: Stop sharing the screen
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: function stopScreenShare()
return:
type: Promise<void>
description: ''
- name: unmute()
uid: '@azure/communication-react.CallAdapter.unmute'
package: '@azure/communication-react'
summary: Unmute the current user during the call or enable microphone locally
remarks: ''
isPreview: false
isDeprecated: false
syntax:
content: function unmute()
return:
type: Promise<void>
description: ''
extends: any