Skip to content

Commit 8dad8cb

Browse files
Addressed comments
1 parent 7641385 commit 8dad8cb

File tree

3 files changed

+74
-74
lines changed

3 files changed

+74
-74
lines changed

articles/communication-services/how-tos/calling-sdk/breakoutRooms.md renamed to articles/communication-services/how-tos/calling-sdk/breakoutrooms.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Tutorial - Integrate Microsoft Teams breakout rooms
33
titleSuffix: An Azure Communication Services tutorial
4-
description: Use Azure Communication Services SDKs to access BreakoutRooms
4+
description: Use Azure Communication Services SDKs to access BreakoutRooms.
55
author: sravanthivelidandla
66
ms.author: insravan
77
ms.service: azure-communication-services
@@ -21,14 +21,14 @@ In this article, you learn how to implement Microsoft Teams breakout rooms with
2121
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
2222
- A deployed Communication Services resource. [Create a Communication Services resource](../../quickstarts/create-communication-resource.md).
2323
- A user access token to enable the calling client. For more information, see [Create and manage access tokens](../../quickstarts/identity/access-tokens.md).
24-
- Teams meeting organizer needs to have assigned Teams meeting policy that enables breakout rooms.[Teams meeting policy](/powershell/module/teams/set-csteamsmeetingpolicy?view=teams-ps&preserve-view=true)
24+
- Teams meeting organizer needs to assign Teams meeting policy that enables breakout rooms.[Teams meeting policy](/powershell/module/teams/set-csteamsmeetingpolicy?view=teams-ps&preserve-view=true)
2525
- Optional: Complete the quickstart to [add voice calling to your application](../../quickstarts/voice-video-calling/getting-started-with-calling.md)
2626

27-
Only Microsoft 365 Users with Organizer, Co-Organizer or Breakout Room manager roles can manage the breakout rooms.
27+
Only Microsoft 365 Users with Organizer, Co-Organizer, or Breakout Room manager roles can manage the breakout rooms.
2828

2929
## Support
3030
The following tables define support of breakout rooms in Azure Communication Services.
31-
### Identities & call types
31+
### Identities and call types
3232
The following tables show support of breakout rooms for specific call type and identity.
3333

3434
|Identities | Teams meeting | Room | 1:1 call | Group call | 1:1 Teams interop call | Group Teams interop call |
@@ -63,7 +63,7 @@ The following tables show support of breakout rooms feature in individual Azure
6363

6464
## Breakout rooms
6565

66-
[!INCLUDE [BreakoutRooms Client-side JavaScript](./includes/breakoutRooms/breakoutRooms-web.md)]
66+
[!INCLUDE [BreakoutRooms Client-side JavaScript](./includes/breakoutrooms/breakoutrooms-web.md)]
6767

6868
## Next steps
6969
- [Learn how to manage calls](./manage-calls.md)

articles/communication-services/how-tos/calling-sdk/includes/breakoutRooms/breakoutRooms-web.md renamed to articles/communication-services/how-tos/calling-sdk/includes/breakoutrooms/breakoutrooms-web.md

Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -27,95 +27,95 @@ To receive breakout room details, subscribe to the `breakoutRoomsUpdated` event
2727
breakoutRoomsFeature.on('breakoutRoomsUpdated', breakoutRoomsUpdatedListener);
2828
```
2929

30-
### Handling breakoutRoom events
30+
### Handle breakoutRoom events
3131

3232
Event **breakoutRoomsUpdated** provides instance of one of the following classes as an input parameter. You can use property `type` to distinguish between individual event types.
3333

3434
1. Class `BreakoutRoomsEvent`: This event is triggered when a user with a role organizer, co-organizer, or breakout room manager creates or updates the breakout rooms. Microsoft 365 users with role organizer, co-organizer or breakout room manager can receive this type of event. Developers can use the breakout rooms in property `data` to render details about all breakout rooms. This class has property `type` equal to `"breakoutRooms"`.
3535
```js
36-
export interface BreakoutRoomsEvent {
37-
/**
38-
* Breakout room event type
39-
*/
40-
type: "breakoutRooms",
41-
/**
42-
* list of Breakout rooms
43-
*/
44-
data: BreakoutRoom[] | undefined;
45-
}
36+
export interface BreakoutRoomsEvent {
37+
/**
38+
* Breakout room event type
39+
*/
40+
type: "breakoutRooms",
41+
/**
42+
* list of Breakout rooms
43+
*/
44+
data: BreakoutRoom[] | undefined;
45+
}
4646
```
4747

4848
2. Class `BreakoutRoomsSettingsEvent`: This event is triggered when a user with a role organizer, co-organizer, or breakout room manager updates the breakout room's settings. Developers can use this information to render the time when breakout room ends or decide whether to render button to join main room. This class has property `type` equal to `"breakoutRoomSettings"`.
4949
```js
50-
export interface BreakoutRoomSettingsEvent {
51-
/**
52-
* Breakout room event type
53-
*/
54-
type: "breakoutRoomSettings",
55-
/**
56-
* Breakout Room setting details
57-
*/
58-
data: BreakoutRoomSettings | undefined;
59-
}
50+
export interface BreakoutRoomSettingsEvent {
51+
/**
52+
* Breakout room event type
53+
*/
54+
type: "breakoutRoomSettings",
55+
/**
56+
* Breakout Room setting details
57+
*/
58+
data: BreakoutRoomSettings | undefined;
59+
}
6060
```
6161

6262
3. Class `AssignedBreakoutRoomsEvent`: This event is triggered when user is assigned to a breakout room, or assigned breakout room is updated. Users can join the breakout room when property `state` is set to `open`, leave the breakout room when property `state` is set to `closed` or render details of the breakout room. This class has property `type` equal to `"assignedBreakoutRoom"`.
6363
```js
64-
export interface AssignedBreakoutRoomEvent {
65-
/**
66-
* Breakout room event type
67-
*/
68-
type: "assignedBreakoutRoom";
69-
/**
70-
* Assigned breakout room details
71-
*/
72-
data: BreakoutRoom | undefined;
73-
}
64+
export interface AssignedBreakoutRoomEvent {
65+
/**
66+
* Breakout room event type
67+
*/
68+
type: "assignedBreakoutRoom";
69+
/**
70+
* Assigned breakout room details
71+
*/
72+
data: BreakoutRoom | undefined;
73+
}
7474
```
7575

7676

7777
4. Class `JoinBreakoutRoomsEvent` : This event is triggered when the participant is joining breakout room call. This can happen when user is automatically moved to breakout room (i.e., if `assignedBreakoutRoom` has property `state` set to `open` and `autoMoveParticipantToBreakoutRoom` is set to `true`) or when user explicitly joins breakout room (i.e., calls method `join` on the instance `assignedBreakoutRoom` when `autoMoveParticipantToBreakoutRoom` is set to `false`). Property `data` contains the breakout room `call` instance, that developers can use to control breakout room call. This class has property `type` equal to `"join"`.
7878
```js
79-
export interface JoinBreakoutRoomEvent {
80-
/**
81-
* Breakout room event type
82-
*/
83-
type: "join";
84-
/**
85-
* Breakoutroom call object
86-
*/
87-
data: Call | TeamsCall;
88-
}
79+
export interface JoinBreakoutRoomEvent {
80+
/**
81+
* Breakout room event type
82+
*/
83+
type: "join";
84+
/**
85+
* Breakoutroom call object
86+
*/
87+
data: Call | TeamsCall;
88+
}
8989
```
9090
The following code shows you valuable information received in the breakout room events:
9191
```js
92-
const breakoutRoomsUpdatedListener = (event) => {
93-
switch(event.type) {
94-
case "breakoutRooms":
95-
const breakoutRooms = event.data;
96-
console.log(`Breakout rooms are created or updated. There are ${breakoutRooms.length} breakout rooms in total.`);
97-
breakoutRooms.forEach((room)=>{
98-
console.log(`- ${room.displayName}`);
99-
});
100-
break;
101-
case "assignedBreakoutRooms":
102-
const assignedRoom = event.data;
103-
console.log(`You are assigned to breakout room named: ${assignedRoom.displayName}`);
104-
console.log(`Assigned breakout room thread Id: ${assignedRoom.threadId}`);
105-
console.log(`Automatically move participants to breakout room: ${assignedRoom.autoMoveParticipantToBreakoutRoom}`);
106-
console.log(`Assigned breakout room state : ${assignedRoom.state }`);
107-
break;
108-
case "breakoutRoomsSettings":
109-
const breakoutRoomSettings = event.data;
110-
console.log(`Breakout room ends at: ${breakoutRoomSettings.roomEndTime}`);
111-
console.log(`Disable the user to return to main meeting from breakout room call : ${breakoutRoomSettings.disableReturnToMainMeeting}`);
112-
break;
113-
case "join":
114-
const breakoutRoomCall = event.data;
115-
console.log(`You have joined breakout room with call ID: ${breakoutRoomCall.id}`);
116-
break;
117-
}
118-
}
92+
const breakoutRoomsUpdatedListener = (event) => {
93+
switch(event.type) {
94+
case "breakoutRooms":
95+
const breakoutRooms = event.data;
96+
console.log(`Breakout rooms are created or updated. There are ${breakoutRooms.length} breakout rooms in total.`);
97+
breakoutRooms.forEach((room)=>{
98+
console.log(`- ${room.displayName}`);
99+
});
100+
break;
101+
case "assignedBreakoutRooms":
102+
const assignedRoom = event.data;
103+
console.log(`You are assigned to breakout room named: ${assignedRoom.displayName}`);
104+
console.log(`Assigned breakout room thread Id: ${assignedRoom.threadId}`);
105+
console.log(`Automatically move participants to breakout room: ${assignedRoom.autoMoveParticipantToBreakoutRoom}`);
106+
console.log(`Assigned breakout room state : ${assignedRoom.state }`);
107+
break;
108+
case "breakoutRoomsSettings":
109+
const breakoutRoomSettings = event.data;
110+
console.log(`Breakout room ends at: ${breakoutRoomSettings.roomEndTime}`);
111+
console.log(`Disable the user to return to main meeting from breakout room call : ${breakoutRoomSettings.disableReturnToMainMeeting}`);
112+
break;
113+
case "join":
114+
const breakoutRoomCall = event.data;
115+
console.log(`You have joined breakout room with call ID: ${breakoutRoomCall.id}`);
116+
break;
117+
}
118+
}
119119
breakoutRoomsFeature.on('breakoutRoomsUpdated', breakoutRoomsUpdatedListener);
120120
```
121121
### List available breakout rooms

articles/communication-services/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ items:
469469
- name: Teams interoperability
470470
items:
471471
- name: Breakout rooms
472-
href: how-tos/calling-sdk/breakoutRooms.md
472+
href: how-tos/calling-sdk/breakoutrooms.md
473473
- name: Chat
474474
items:
475475
- name: Build an authentication service using Azure Functions

0 commit comments

Comments
 (0)