diff --git a/shared/flexible-classroom/classroom-sdk/js.mdx b/shared/flexible-classroom/classroom-sdk/js.mdx index f8de8fbde..94ee776d2 100644 --- a/shared/flexible-classroom/classroom-sdk/js.mdx +++ b/shared/flexible-classroom/classroom-sdk/js.mdx @@ -456,28 +456,28 @@ Classroom event listener. Set in [`LaunchOption`](#launchoption). | Parameter | Description | | :----- | :----- | | `Ready`| `1`: Entered the classroom successfully.| -| `Destroyed`| `2`: The classroom has been destroyed.| +| `Destroyed`| `2`: The classroom has been destroyed. Includes the reason for leaving as a parameter: | | `FailedToJoin`| `3`: Failed to enter the classroom.| | `KickOut`| `101`: Being kicked out of the room.| | `TeacherTurnOnMyMic`| `102`: Audio streaming permission is enabled.| | `TeacherTurnOffMyMic`| `103`: Audio streaming permission is turned off.| | `UserAcceptToStage`| `106`: Get on the podium.| | `UserLeaveStage`| `107`: Leave the podium.| -| `RewardReceived`| `108`: Reward received.| +| `RewardReceived`| `108`: Reward received. Includes a list of rewarded users as a parameter.| | `TeacherTurnOnMyCam`| `109`: The video streaming permission is enabled.| | `TeacherTurnOffMyCam`| `110`: The video streaming permission has been turned off.| | `CurrentCamUnplugged`| `111`: The current camera device is unplugged.| | `CurrentMicUnplugged`| `112`: The current microphone device is unplugged.| | `CurrentSpeakerUnplugged`| `113`: The current speaker is unplugged.| | `CaptureScreenPermissionDenied`| `114`: No screen capture permission.| -| `BatchRewardReceived`| `117`: Receive bulk rewards.| -| `InvitedToGroup`| `118`: Receive invitation to join group.| -| `MoveToOtherGroup`| `119`: Moved to other groups.| +| `BatchRewardReceived`| `117`: Receive bulk rewards. Includes a list of rewarded users as a parameter.| +| `InvitedToGroup`| `118`: Receive invitation to join group. Includes group information as parameters.| +| `MoveToOtherGroup`| `119`: Moved to other groups. Includes the following parameters:| | `JoinSubRoom`| `120`: Join a group.| | `LeaveSubRoom`| `121`: Leave the group.| -| `AcceptedToGroup`| `122`: The user accepts to join the group.| -| `UserJoinGroup`| `123`: Other users join the group.| -| `UserLeaveGroup`| `124`: Other users leave the group.| -| `RejectedToGroup`| `125`: The user refuses to join the group.| -| `RTCStateChanged`| `201`: RTC connection status change.| -| `ClassStateChanged`| `202`: Classroom status changes. | +| `AcceptedToGroup`| `122`: The user accepts to join the group. Includes the following parameters: | +| `UserJoinGroup`| `123`: Other users join the group. Includes the following parameters: | +| `UserLeaveGroup`| `124`: Other users leave the group. Includes the following parameters: | +| `RejectedToGroup`| `125`: The user refuses to join the group. Includes the following parameters: | +| `RTCStateChanged`| `201`: RTC connection status change. Includes the RTC connection status as a parameter: | +| `ClassStateChanged`| `202`: Classroom status changes. Includes the class status as a parameter: | diff --git a/shared/flexible-classroom/integrate-flexible-classroom-fcr/web.mdx b/shared/flexible-classroom/integrate-flexible-classroom-fcr/web.mdx index e9b81db7d..6ccdd869d 100644 --- a/shared/flexible-classroom/integrate-flexible-classroom-fcr/web.mdx +++ b/shared/flexible-classroom/integrate-flexible-classroom-fcr/web.mdx @@ -73,9 +73,10 @@ If you are satisfied with the default UI of Cloud Classroom and do not want to c 1. Add the following code to the HTML file in your project: ```html - + ``` 2. To launch a classroom, call [FcrUIScene.launch](../../client-api/ui-scene#launch). @@ -88,10 +89,10 @@ If you are satisfied with the default UI of Cloud Classroom and do not want to c - - - - + + + + @@ -104,7 +105,7 @@ If you are satisfied with the default UI of Cloud Classroom and do not want to c
- - + + + +