You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `incomingCall` event includes an `incomingCall` instance that you can accept or reject.
113
113
114
-
When starting/joining/accepting a call with video on, if the specified video camera device is being used by another process or if it is disabled in the system, the call will start with video off, and a cameraStartFailed: true call diagnostic will be raised.
114
+
When starting/joining/accepting a call with video on, if the specified video camera device is being used by another process or if it's disabled in the system, the call starts with video off, and a cameraStartFailed: true call diagnostic will be raised.
115
+
116
+
## Hold and resume call
117
+
118
+
> [!NOTE]
119
+
> At any given moment of time, there should be only 1 active call ( in `Connected` state, with active media ). All other calls should be put on hold by a user, or programatically by application. This is common in scenarios like contact centers, where a user may need to handle multiple outbound and inbound calls, all inactive calls should be put on hold, and user should interact with others only in active call
120
+
121
+
To hold or resume the call, you can use the `hold` and `resume` asynchronous APIs:
122
+
123
+
To hold the call
124
+
```js
125
+
awaitcall.hold();
126
+
```
127
+
When `hold` API will resolve, call state will be set to 'LocalHold' , if this is a 1:1 call, other participant will be also put on hold, and state of the call from the perspective of that participant will be set to 'RemoteHold', That participant may further put its call on hold, which would result in state change to 'LocalHold'
128
+
If this is a group call - hold is just a local operation, it won't hold the call for other participants of that call.
129
+
To fully resume that call all users who initiated hold must resume it.
130
+
131
+
To resume call from hold:
132
+
```
133
+
await call.resume();
134
+
```
135
+
When `resume` API will resolve, call state will be set again to 'Connected'
115
136
116
137
## Mute and unmute
117
138
@@ -215,7 +236,7 @@ The state can be:
215
236
```
216
237
Note:
217
238
- This property is only set when adding a remote participant via the Call.addParticipant() API, and the remote participant declines for example.
218
-
- In the scenario where for example, UserB kicks UserC, from UserA's perspective, UserA will not see this flag get set forUserC. In other words UserA will not see UserC's callEndReason property get set at all.
239
+
- In the scenario, where for example, UserB kicks UserC, from UserA's perspective, UserA will not see this flag get set forUserC. In other words UserA will not see UserC's callEndReason property get set at all.
219
240
220
241
- `isMuted` status: To find out if a remote participant is muted, check the `isMuted` property. It returns `Boolean`.
0 commit comments