开始录制

Example

请求方式 POST

https://global.talk-cloud.net/RecordAPI/startRecord

参数名 必选 类型 说明
Tk-authkey string 企业Key
Content-Type string application/json;
参数名 必选 类型 说明
recordUrl string 需要录制的 WEB 页面访问 URL,需要 Chrome 浏览器能够访问
autoStart int 自动开始录制(打开recordUrl即刻录制),默认1,传0时,需要等待页面主动调用window.startRecord方法来触发开始录制
destRtmpPushUrl string rtmp转推url
videoType  int 录制分辨率(1:高清1280720、2超清19201080;默认1)
maxRecordTime  int 最大录制时间(单位:小时),不传以调endRecord接口为准或最大12小时
callBackUrl  string 录制完成回调地址
storageConfig  object 存储平台属性
storageConfig.platform  int 存储平台(1腾讯2华为3阿里4亚马逊)
storageConfig.accessKey  string
storageConfig.secretKey  string
storageConfig.bucket  string 存放桶
storageConfig.region  string 存放区域
storageConfig.filePath  string 文件存储目录,默认目录为taskId(接口成功后,会返回一个taskId)
参数名 类型 说明
result int 0成功 非0失败
data object 数据
msg string 接口消息

返回示例

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
{
        "recordUrl": "https://record.mp4",
        "autoStart": 1,
        "destRtmpPushUrl": "rtmp://record",
        "videoType":1,
        "maxRecordTime":2,
        "lang":"zh-CN",
        "callBackUrl":"https://record/callBackUrl",
        "storageConfig": {
                "platform":1,
                "accessKey": "123123123123",
                "secretKey": "1231231231231231",
                "bucket": "webrecord-xxx",
                "region": "ap-shanghai",
                "filePath": "recordpath"
            }
}

© 2016-2023 北京拓课网络科技有限公司 版权所有  京ICP备17018423号-1 京公网安备11010502043461号