Release Notes
Announcements

IsReserve is true, after the user exits the room, the user's stream will still be in the stream mix task, and the last frame of video image and mute will be used to complement the stream. If IsReserve is false, after the user exits the room, the user's stream will be deleted from the stream mix task. If a new user enters the room later, the new user's stream will be added to the stream mix.Parameter | Type | Required | Description |
SdkAppId | Int | Yes | Application ID, which is used to distinguish different TRTC applications. |
RoomId | Int | Yes | Room ID in integer type, which is used to uniquely identify a room in a TRTC application. |
StrRoomId | String | No | Room ID in string type. Either RoomId or StrRoomId must be configured. If both are configured, RoomId will be used. |
UserId | String | Yes | Recorded user ID, which is used to uniquely identify a user in a TRTC application. |
UserSig | String | Yes | Recorded user signature, which is used to authenticate the user login. |
CosConfig | cosConfig | Yes | COS storage configuration for recording file storage. |
Callback | String | No | Callback address after recording. The POST method is used for callback. |
Mode | String | No | 10: mixed audio stream output in MP3 format (default mode). 11: mixed video stream output in MP4 format. 12: mixed audio/video stream output in MP4 format. |
IsReserve | Boolean | No | false: when the anchor exits the room, the stream being mixed will be automatically deleted. true: when the anchor exits the room, the last frame of the video image and mute will be used to complement the stream in the stream mix task. The default value is true. |
CosConfig are as follows:Parameter | Type | Required | Description |
SecretId | String | No | SecretId of Tencent Cloud account. For more information, please see Root Account Access Key Management. |
SecretKey | String | No | SecretKey of Tencent Cloud account. For more information, please see Root Account Access Key Management. |
Region | String | Yes | COS region, such as ap-guangzhou. |
Bucket | String | Yes | Bucket name, such as susu-123456789. |
Path | String | Yes | Path in the bucket. For example, for /test, the root directory is /. |
UserId is the specified user ID. Idempotency is not guaranteed for multiple requests to API Gateway. SecretId and SecretKey are not configured in CosConfig, the function will use the permission of the execution role SCF_ExecuteRole when accessing COS.RoomId, you need to call the RemoveUser API.StrRoomId, you need to call the RemoveUserByStrRoomId API.Parameter | Type | Required | Description |
SdkAppId | String | Yes | Application ID. |
RoomId | String | Yes | Room ID in integer type. |
UserId | String | Yes | Recorded user ID. |
StrRoomId | String | Yes | Room ID in string type. |
Files | Array | Yes | [{},{},{},{}] |
Files array is a JSON object as follows:Parameter | Type | Required | Description |
UserId | String | Yes | Recorded user ID. |
RecordFile | String | Yes | URL of the recording file uploaded to COS. |
Status | Int | Yes | 0: failure. 1: success. |
Message | String | Yes | Execution result of the recording task, such as recording failed, transcoding failed, and write to COS failed. |




CFS_PATH to a local directory, such as /mnt/audio/.
roomId is the room ID of the created TRTC application, and userId is the ID of another random user (which must be unique). Below is the sample code:{"SdkAppId": 1400000000,"RoomId": 43474,"UserId": "user_55952145","Mode":"12","UserSig": "eJwtzNEKgkAUBNB-2efQ3e3eUqG3tMCKJJEIIxxxxxxxxxxxxxxxhvmweLWzGlUxj0mLs1GXKVf3mgrq*GFUdUR0UQrAYWDyW6Y15cwTwDm4UkxF36iXpkq1joiSc9xxxxxxxxxxxxx-S*CZeOk9sHfnEhCwlUW*fE4oWusw3dULlJ7HoSJ2e6d9fM8Y98fxUAzWA__","CosConfig": {"Region": "ap-shanghai","Bucket": "test-123456789","Path": "/trtc"},"IsReserve":false,"Callback":"https:xxxxxxxx.com/post/xxx"}

RequestId of this function will be returned through x-scf-reqid in the HTTP header as shown below:


Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan