调用CreateLiveRecordSliceFile创建直播录制片段文件。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
AppId | string | 是 | 应用唯一标识,由6位小写字母、数字组成。 | lq****cu |
LiveId | string | 是 | 直播ID。 | AE35****T95F |
StartTime | Long | 是 | 片段开始时间,时间戳,单位为毫秒。 | 1577836800000 |
EndTime | Long | 是 | 片段结束时间,时间戳,单位为毫秒。 | 1577836800000 |
FileName | string | 是 | 自定义文件名称。 | sliceFile |
返回参数
错误码
Http code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Invalid.Live.RecordContentExceed | The record content between StartTime and EndTime is exceeded, please narrow down the range. | 超出最大的录制片段文件的时间范围,请缩小开始时间和结束时间之间的范围。 |
400 | Invalid.Live.RecordContentTooShort | The record time between StartTime and EndTime is too short, please enlarger the range. | 开始时间和结束时间的间隔太短,请扩大时间范围。 |
400 | Invalid.Live.RecordEndTimeMismatch | Specified end time does not math the specified start time. | 开始时间和结束时间不匹配。 |
400 | Invalid.Live.RecordInvalidBucket | The oss bucket is invalid. | oss的bucket配置无效。 |
400 | Invalid.Live.RecordLiveNotFound | The live is not found. | 直播记录不存在,请检查输入的直播id是否有效。 |
400 | Invalid.Live.RecordLiveStreamNotFound | The live stream info is not found. | 该直播没有有效的推流信息。 |
400 | Invalid.Live.RecordNoContent | The record has no content, please check the live record toggle. | 没有回放的内容,请检查是否开启了录制开关生成了有效的录制文件。 |
400 | Invalid.Live.RecordPlaybackDomainNotFound | The record playback domain is not found, please open the liveRecordToggle in imp console and config playback domain. | 未找到回看域名,请检查是否打开了录制转回看的开关,已经配置了回看域名。 |
400 | Invalid.Live.WrongRecordOssConfig | Specified oss config is wrong. | 指定的oss配置有误,请检查oss配置。 |
400 | Invalid.Scene.LiveNotExist | The live record does not exist. Please check again. | 直播记录不存在,请检查后重试。 |
访问错误中心查看更多错误码。