Large Classes
  • Overview
  • Demo App
  • Sample Codes
  • SDK Integration
  • Teacher-Side Implementation
  • Student-Side Implementation
  • GoClass Backend Service
  • Error Codes
  • Documentation
  • Large Classes
  • GoClass Backend Service
  • Get Co-Hosting Member List

Get Co-Hosting Member List

Last updated:2022-03-22 13:06

1 Description

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.

2 API Prototype

  • Request method: POST
  • Request endpoint: /edu_room/get_join_live_list
  • Transmission protocol: application/json

3 Request Parameters

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 :
  • 1: Small class
  • 2: Large class
Defaults to "Small class" if not specified.

4 Request Example

{
  "uid":171171717,
  "room_id":"123456",
  "room_type": 2
}

5 Response Parameters

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:
  • 1: Teacher
  • 2: Student
join_live_list.camera Int32 1 User's camera status.

Valid values:
  • 1: Off
  • 2: On
join_live_list.mic Int32 1 User's microphone status.

Valid values:
  • 1: Off
  • 2: On
join_live_list.can_share Int32 2 User's sharing permission.

Valid values:
  • 1: Off
  • 2: On
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.

6 Response Example

{
  "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"
  }
}

7 Return Codes

Return Code Description
10005 Please log in to the classroom first.
10006 The classroom does not exist.
Page Directory