文档

CreateLiveRecordSliceFile - 创建直播录制片段文件

更新时间:

调用CreateLiveRecordSliceFile创建直播录制片段文件。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
AppIdstring

应用唯一标识,由6位小写字母、数字组成。

lq****cu
LiveIdstring

直播ID。

AE35****T95F
StartTimeLong

片段开始时间,时间戳,单位为毫秒。

1577836800000
EndTimeLong

片段结束时间,时间戳,单位为毫秒。

1577836800000
FileNamestring

自定义文件名称。

sliceFile

返回参数

名称类型描述示例值
object

Schema of Response

RequestIdstring

请求ID。

ER52****O9CA
Resultobject

创建场景化直播返回的结果。

SliceRecordUrlstring

片段录制文件的地址。

http://demo-app-playback.com/**.m3u8?auth_key=1627522726-0-0-******e620b363d4cf8a8e3

错误码

Http code错误码错误信息描述
400Invalid.Live.RecordContentExceedThe record content between StartTime and EndTime is exceeded, please narrow down the range.超出最大的录制片段文件的时间范围,请缩小开始时间和结束时间之间的范围。
400Invalid.Live.RecordContentTooShortThe record time between StartTime and EndTime is too short, please enlarger the range.开始时间和结束时间的间隔太短,请扩大时间范围。
400Invalid.Live.RecordEndTimeMismatchSpecified end time does not math the specified start time.开始时间和结束时间不匹配。
400Invalid.Live.RecordInvalidBucketThe oss bucket is invalid.oss的bucket配置无效。
400Invalid.Live.RecordLiveNotFoundThe live is not found.直播记录不存在,请检查输入的直播id是否有效。
400Invalid.Live.RecordLiveStreamNotFoundThe live stream info is not found.该直播没有有效的推流信息。
400Invalid.Live.RecordNoContentThe record has no content, please check the live record toggle.没有回放的内容,请检查是否开启了录制开关生成了有效的录制文件。
400Invalid.Live.RecordPlaybackDomainNotFoundThe record playback domain is not found, please open the liveRecordToggle in imp console and config playback domain.未找到回看域名,请检查是否打开了录制转回看的开关,已经配置了回看域名。
400Invalid.Live.WrongRecordOssConfigSpecified oss config is wrong.指定的oss配置有误,请检查oss配置。
400Invalid.Scene.LiveNotExistThe live record does not exist. Please check again.直播记录不存在,请检查后重试。

访问错误中心查看更多错误码。

  • 本页导读 (1)
文档反馈