tencent cloud

实时互动-教育版

动态与公告
低代码互动课堂产品更名公告
关于低代码互动课堂升级的公告
产品简介
产品概述
应用场景
产品功能
产品优势
购买指南
计费概述
包月套餐说明
计费示例
购买指引
欠费停服资源回收说明
退费说明
Demo 下载及体验
客户端集成指引
Web 和 H5
Android
iOS
Windows 和 macOS
控制台指南
概览
用量统计
应用管理
快速跑通
API 文档
History
Introduction
API Category
Making API Requests
User Login APIs
Room Management APIs
Group Management APIs
Application Configuration APIs
Recording Management APIs
Courseware Management APIs
User Management APIs
Developer APIs
Data Types
Error Codes
界面定制
快速开始
事件监听
监听服务端事件回调
高级功能
自定义业务域名
移动端屏幕分享
移动端预加载
实践教程
排课系统集成
账户体系集成
录制回放集成
课件模块集成
LCIC 政策
隐私政策
数据处理和安全协议
常见问题
计费相关问题
录制相关问题
控制台与 API 授权问题
互动白板涂鸦不跟手问题
屏幕共享相关问题
应对防火墙限制相关问题
集成相关问题(Web)
Electron 相关问题
设备性能要求问题
相关协议
Service Level Agreement

DescribeRoom

PDF
聚焦模式
字号
最后更新时间: 2025-10-30 21:46:46

1. API Description

Domain name for API request: lcic.intl.tencentcloudapi.com.

This API is used to get room information.
A maximum of 20 requests can be initiated per second for this API.

A maximum of 50 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeRoom.
Version Yes String Common Params. The value used for this API: 2022-08-17.
Region No String Common Params. This parameter is not required.
RoomId Yes Integer Room ID
RTMPStreamingURL No Integer Request RTMP stream link, 0: no, 1: yes, default is 0.

3. Output Parameters

Parameter Name Type Description
Name String Room name
StartTime Integer Reserved room start time, in UNIX timestamp format
EndTime Integer Reserved room end time, in UNIX timestamp format
TeacherId String Teacher ID
SdkAppId Integer LCIC SdkAppId
AudienceType Integer Watch type. Can have the following values: 1 interactive viewing 2 standard viewing
Resolution Integer Resolution. Valid values: 1: SD; 2: HD; 3: FHD
MaxMicNumber Integer Maximum number of mic-on users (excluding teachers). Value range: [0, 16]
AutoMic Integer Whether to automatically turn the mic on when the user enters a room. Valid values: 0: No (default value); 1: Yes.
AudioQuality Integer Whether to enable the high audio quality mode. Valid values: 0: No (default value); 1: Yes.
SubType String The room subtype. Valid values: videodoc: Document + Video; video: Video only.
DisableRecord Integer Whether to disable auto recording. Valid values: 0: No (default); 1: Yes. If this parameter is 0, recording will start when the class starts and stops when the class ends.
Assistants Array of String Assistant ID list Note: This field may return null, indicating that no valid values can be obtained.
RecordUrl String Recording URL. This parameter exists only after a room is ended. Note: This field may return null, indicating that no valid values can be obtained.
Status Integer The class status. 0: The class has not started. 1: The class has started. 2: The class ended. 3: The class expired. Note: This field may return null, indicating that no valid values can be obtained.
GroupId String Note: This field may return null, indicating that no valid values can be obtained.
EnableDirectControl Integer Whether the students' consent is required to control their cameras/microphones.
InteractionMode Integer Turn on focus mode. 0 Watch all character audio and video (default) 1 Watch only teachers and teaching assistants
VideoOrientation Integer Horizontal and vertical screen. 0: Horizontal screen to open broadcast (default); 1: Vertical screen to open broadcast, currently only support mobile pure video type
IsGradingRequiredPostClass Integer Whether the room is enabled for grading after the lesson. 0: not enabled 1: enabled
RoomType Integer Room Type: 0 Small Classroom(default); 1 Lecture Hall(public class)
VideoDuration Integer Recording Duration
EndDelayTime Integer Drag class time: unit minutes, 0 is unlimited (default), -1 is can't drag the class, greater than 0 is the time of dragging the class, the maximum value of 120 minutes
LiveType Integer Live type: 0 regular (default) 1 Simulated Live
RecordLiveUrl String Simulated Live link
EnableAutoStart Integer Whether to start the lesson automatically: 0 not automatic lesson (default) 1 automatic lesson live_type=1 is valid
RecordBackground String Recorded file background image, support png, jpg, jpeg, bmp format, does not support transparent channel for the time being
RTMPStreamingURL String RTMP stream link
RecordScene String Record customized scene, only recordlayout=9 this parameter is valid
RecordLang String Record customized language, only when recordlayout=9, this parameter is valid
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Getting the details of a room

This example shows you how to get the details of a classroom.

Input Example

POST / HTTP/1.1
Host: lcic.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeRoom
<Common request parameters>

{
    "RoomId": 1
}

Output Example

{
    "Response": {
        "AutoMic": 1,
        "RecordUrl": "https://example.com/test.mp4",
        "Name": "test",
        "AudioQuality": 1,
        "MaxMicNumber": 1,
        "SubType": "videodoc",
        "SdkAppId": 1,
        "RequestId": "test",
        "StartTime": 1,
        "TeacherId": "test",
        "Assistants": [
            "test"
        ],
        "EndTime": 1,
        "Resolution": 1,
        "DisableRecord": 1,
        "Status": 0,
        "EnableDirectControl": 0,
        "GroupId": "afdg"
    }
}

Example2 Example

This example shows you how to obtain the room information.

Input Example

POST / HTTP/1.1
Host: lcic.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeRoom
<common request parameters>

{
    "RoomId": 331450358
}

Output Example

{
    "Response": {
        "Assistants": [],
        "AudienceType": 1,
        "AudioQuality": 0,
        "AutoMic": 0,
        "DisableRecord": 0,
        "EnableDirectControl": 0,
        "EndTime": 1687943391,
        "GroupId": "",
        "InteractionMode": 1,
        "IsGradingRequiredPostClass": 0,
        "MaxMicNumber": 2,
        "Name": "Test1",
        "RecordUrl": "",
        "RequestId": "a8dea9b9-5172-4c01-a53d-5a53437f7fdf",
        "Resolution": 1,
        "RoomType": 1,
        "SdkAppId": 3923193,
        "StartTime": 1687943339,
        "Status": 0,
        "SubType": "video",
        "TeacherId": "2O2bjPEXxStIac3NC9kfH3mHeBC",
        "VideoDuration": 0,
        "VideoOrientation": 1
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation Operation failed.
InternalError Internal error.
ResourceNotFound.Room The room does not exist.

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈