Skip to content

Commit 857ac5a

Browse files
Update breakoutrooms-web.md
renamed rejoinMainMeeting to returnToMainMeeting
1 parent faf1c14 commit 857ac5a

File tree

1 file changed

+8
-28
lines changed

1 file changed

+8
-28
lines changed

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

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -87,23 +87,7 @@ Event **breakoutRoomsUpdated** provides instance of one of the following classes
8787
data: Call | TeamsCall;
8888
}
8989
```
90-
5. Class `RejoinMainMeetingEvent` : This event is triggered when the participant is joining the main meeting when the breakout room is closed. This event can happen when the breakout room state is `closed` and the user is automatically moved to the main meeting. Property `data` contains the main meeting `call instance, that developers can use to listen to the breakout room events. This class has a property `type` equal to `"rejoinMainMeeting"`;
91-
```js
92-
/**
93-
* Name of event type for main meeting joined event
94-
*/
95-
export interface RejoinMainMeetingEvent {
96-
/**
97-
* Breakout room event type
98-
*/
99-
type: "rejoinMainMeeting";
100-
/**
101-
* Main meeting call object
102-
*/
103-
data: Call | TeamsCall;
104-
}
105-
```
106-
90+
10791
The following code shows you valuable information received in the breakout room events:
10892
```js
10993
const breakoutRoomsUpdatedListener = (event) => {
@@ -130,11 +114,7 @@ The following code shows you valuable information received in the breakout room
130114
case "join":
131115
const breakoutRoomCall = event.data;
132116
console.log(`You have joined breakout room with call ID: ${breakoutRoomCall.id}`);
133-
break;
134-
case "rejoinMainMeeting":
135-
const mainMeetingCall = event.data;
136-
console.log(`You have joined the main meeting with call ID: ${mainMeetingCall.id}`);
137-
break;
117+
break;
138118
}
139119
}
140120
breakoutRoomsFeature.on('breakoutRoomsUpdated', breakoutRoomsUpdatedListener);
@@ -209,22 +189,22 @@ if(breakoutRoom.state == 'open') {
209189
const breakoutRoomCall = await breakoutRoom.join();
210190
}
211191
```
212-
To exit a breakout room, users should execute the `hangUp()` function on the breakout room call. The user would be calling `RejoinToMainMeeting` to resume the main meeting call.
192+
To exit a breakout room, users should execute the `hangUp()` function on the breakout room call. The user would be calling `ReturnToMainMeeting` to resume the main meeting call.
213193

214194
```js
215195
breakoutRoomCall.hangUp();
216-
const mainMeetingCall = breakoutRoomCall.rejoinMainMeeting();
196+
const mainMeetingCall = breakoutRoomCall.returnToMainMeeting();
217197
```
218198

219199
### Leave breakout room
220200

221-
When the breakout room state is `closed`, user is informed about the end of breakout room by receiving event `breakoutRoomsUpdated` with class `AssignedBreakoutRoomsEvent` and property `type` equal to `assignedBreakoutRooms` that indicates that `assignedBreakoutRoom` has property `state` set to `closed`. User returns to the breakout room automatically and informed about rejoining the main meeting by receiving event `breakoutRoomsUpdated` with class `RejoinMainMeetingEvent` and property `type` equal to `rejoinMainMeeting`.
201+
When the breakout room state is `closed`, user is informed about the end of breakout room by receiving event `breakoutRoomsUpdated` with class `AssignedBreakoutRoomsEvent` and property `type` equal to `assignedBreakoutRooms` that indicates that `assignedBreakoutRoom` has property `state` set to `closed`. User leaves the breakout room automatically and can return to the main meeting by calling `returnToMainMeeting()` as shown above.
222202

223-
If the user wants to leave the breakout room even before the room is closed and the breakout room settings `breakoutRoomsFeature.breakoutRoomsSettings` have property `disableReturnToMainMeeting` set to `false` then user can rejoin to the main meeting call with the following code:
203+
If the user wants to leave the breakout room even before the room is closed and the breakout room settings `breakoutRoomsFeature.breakoutRoomsSettings` have property `disableReturnToMainMeeting` set to `false` then user can return to the main meeting call with the following code:
224204

225205
```js
226206
breakoutRoomCall.hangUp();
227-
const mainMeetingCall = breakoutRoomCall.rejoinMainMeeting();
207+
const mainMeetingCall = breakoutRoomCall.returnToMainMeeting();
228208
```
229209

230210
### Get participants of the breakout room
@@ -301,7 +281,7 @@ const roomEndTime : TimestampInfo = breakoutRoomsSettings.roomEndTime;
301281
|412| 46258 | UnexpectedClientError | Unable to read breakout room details. | Gather browser console logs and contact Azure Communication Services support. |
302282
|500 | 46259| UnexpectedServerError | Could not hang up the Breakout room call. | Follow the instructions defined in the section `Leave breakout room` for manual leaving of breakout room. |
303283
|412| 46260 | UnexpectedClientError | Cannot join Breakout Room as it is not yet assigned. | Ensure that the `breakoutRoomsFeature.assignedBreakoutRoom` is having the details of the assigned breakout room. Ensure that the `state` of `assignedBreakoutRoom` is `open` and call `breakoutRoomsFeature.assignedBreakoutRoom.join()` method explicitly. |
304-
|412| 46261 | UnexpectedClientError | Unable to join the main meeting. Please try again by calling the RejoinMainMeeting() method. If the issue persists, gather browser console logs and contact Azure Communication Services support.|
284+
|412| 46261 | UnexpectedClientError | Unable to join the main meeting. Please try again by calling the `breakoutRoomsFeature.assignedBreakoutRoom.returnToMainMeeting()` method. If the issue persists, gather browser console logs and contact Azure Communication Services support.|
305285
|412| 46262 | ExpectedError | Already in the main meeting. Please call this method only when the participant is in breakout room and removed from the main meeting.|
306286
|412| 46263 | UnexpectedClientError | Existing breakout room call hangup failed. Try to call hangup() method again to hangup the call. Call join() method to join the breakout room again. |
307287

0 commit comments

Comments
 (0)