提交工单
咨询集成、功能及报价等问题
Call get_join_live_list
to obtain the information of all members who are participating in live interactions (i.e., co-hosting) in the classroom, including user role, user ID, user nickname, user's camera and microphone status, user's sharing permission, etc.
API call frequency limit: 10 times/second.
POST
/edu_room/get_join_live_list
application/json
Parameter | Type | Mandatory | Example | Description |
---|---|---|---|---|
room_id | String | Yes | "123456" | Room ID of the classroom, a string with a maximum of 9 characters and contains only digits. |
uid | Int64 | Yes | 171171717 | User ID. |
room_type | Int32 | No | 2 | Room type. Valid values :
|
{
"uid":171171717,
"room_id":"123456",
"room_type": 2
}
Parameter | Type | Example | Description |
---|---|---|---|
room_id | String | "123456" | Room ID of the classroom. |
seq | Int64 | 1 | The sequence number of the co-hosted member list, which should be cached locally on the client to detect any data out-of-sync issues. |
join_live_list | Object | - | Co-hosting member list. |
The data structure of join_live_list
is as follows:
Parameter | Type | Example | Description |
---|---|---|---|
join_live_list.uid | Int64 | 171171717 | User ID. |
join_live_list.nick_name | String | "Shawn" | User nickname. |
join_live_list.role | Int32 | 1 | User role. Valid values:
|
join_live_list.camera | Int32 | 1 | User's camera status. Valid values:
|
join_live_list.mic | Int32 | 1 | User's microphone status. Valid values:
|
join_live_list.can_share | Int32 | 2 | User's sharing permission. Valid values:
|
join_live_list.login_time | Int64 | 1600928701534 | The time when the user logged in to the classroom, a Unix timestamp in milliseconds. |
join_live_list.join_live_time | Int64 | 1600928726313 | The time when the user joined live interactions (i.e., became a co-host), a Unix timestamp in milliseconds. |
{
"ret": {
"code": 0,
"message": "succeed"
},
"data": {
"join_live_list": [
{
"uid": 171171717,
"nick_name": "Shawn",
"role": 1,
"login_time": 1600928701534,
"join_live_time": 1600928726313,
"camera": 2,
"mic": 2,
"can_share": 2
}
],
"seq": 1,
"room_id": "123456"
}
}
Return Code | Description |
---|---|
10005 | Please log in to the classroom first. |
10006 | The classroom does not exist. |