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
To set up a Azure Communication Services Rooms call, initialize a `CallCompositeRoomLocator`, supply it to the `CallCompositeRemoteOptions` object and set `CallCompositeParticipantRole` to the `CallCompositeLocalOptions` by `setRoleHint()`.
354
-
`CallComposite` will use role hint before connecting to the call. Once call is connected, actual up-to-date participant role is retrieved from Azure Communication Services.
355
-
353
+
To set up a Azure Communication Services Rooms call, initialize a `CallCompositeRoomLocator` with a room ID.
354
+
While on the setup screen, `CallComposite` will enable camera and microphone to all participants with any room role. Actual up-to-date participant role and capabilities are retrieved from Azure Communication Services once call is connected.
356
355
357
356
For more information about Rooms, how to create and manage one see [Rooms Quickstart](../../../rooms/get-started-rooms.md)
358
357
359
358
#### [Kotlin](#tab/kotlin)
360
359
361
360
```kotlin
361
+
// Optionally, if user is a Consumer role, disable camera and microphone buttons on the setup screen:
362
+
val setupScreenOptions =CallCompositeSetupScreenOptions()
363
+
.setCameraButtonEnabled(false)
364
+
.setMicrophoneButtonEnabled(false)
365
+
366
+
367
+
val callComposite =CallCompositeBuilder()
368
+
.setupScreenOptions(setupScreenOptions)
369
+
.build()
370
+
362
371
val locator =CallCompositeRoomLocator("<ROOM_ID>")
363
372
364
373
val remoteOptions =CallCompositeRemoteOptions(
@@ -367,26 +376,28 @@ val remoteOptions = CallCompositeRemoteOptions(
367
376
"DISPLAY_NAME",
368
377
)
369
378
370
-
val localOptions =CallCompositeLocalOptions().setRoleHint(participantRole)
To set up a Azure Communication Services Rooms call, inside the `startCallComposite` function, initialize a `RemoteOptions` instance for the `.roomCall` locator. Replace `<ROOM_ID>` with the Room ID for your call. Initialize a `LocalOptions` instance with `roleHint`.
219
-
220
-
Replace `<DISPLAY_NAME>` with your name.
221
-
222
-
`CallComposite` will use role hint before connecting to the call. Once call is connected, actual up-to-date participant role is retrieved from Azure Communication Services.
223
-
218
+
To set up a Azure Communication Services Rooms call, initialize a `CallCompositeRoomLocator` with a room ID.
219
+
While on the setup screen, `CallComposite` will enable camera and microphone to all participants with any room role. Actual up-to-date participant role and capabilities are retrieved from Azure Communication Services once call is connected.
224
220
225
221
For more information about Rooms, how to create and manage one see [Rooms Quickstart](../../../rooms/get-started-rooms.md)
226
222
227
223
```swift
228
224
let remoteOptions = RemoteOptions(for: .roomCall(roomId: "<ROOM_ID>"),
229
225
credential: communicationTokenCredential,
230
226
displayName: "<DISPLAY_NAME>")
231
-
let localOptions = LocalOptions(roleHint: participantRole)
0 commit comments