检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
查询播放带宽峰值接口 功能介绍 查询指定时间范围内播放带宽峰值。 如果不传入域名,则查询租户下所有播放域名的带宽峰值。 当查询租户级别带宽数据时,参数app、stream不生效。 最大查询跨度31天,最大查询周期一年。 接口约束 该接口暂只支持查询部署在新版视频直播服务上的域名的
调用API查看禁推直播流信息 调用查询禁止直播推流列表接口,设置请求参数“domain”、“app_name”和“stream_name”即可查看禁推的直播流信息。 GET /v1/{project_id}/stream/blocks?domain=play.example.com&app_name=l
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
流时长超过了最大断流合并时长,当前录制任务结束,触发该事件。 RECORD_FAILED:表示录制失败,当拉流失败、录制文件上传OBS失败等因素导致录制失败时,触发该事件。 publish_domain 直播推流域名。 app 应用名。 stream 录制的流名。 record_format
服务鉴权Token,服务开启鉴权,必须携带Access-Control-Allow-External访问服务。 表3 请求Body参数 参数 是否必选 参数类型 描述 domain 是 String 频道推流域名 app_name 是 String 组名或应用名 id 是 String 频道ID。频道唯一标识,为必填项
项目ID,获取方法请参考获取项目ID。 表2 Query参数 参数 是否必选 参数类型 描述 domain 是 String 域名 app_name 否 String 应用名称,不指定则查询domain下所有应用的禁止直播推流信息 stream_name 否 String 流名称 page
查询播放流量汇总接口 功能介绍 查询指定时间范围内流量汇总量。 如果不传入域名,则查询租户下所有播放域名的流量汇总。 当查询租户级别流量数据时,参数app、stream不生效。 最大查询跨度31天,最大查询周期一年。 查询数据会延迟10分钟左右。 接口约束 该接口暂只支持查询部署
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
"username", "password": "password", "domain": { "name": "domainname" } } } }, "scope":
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
"username", "password": "password", "domain": { "name": "domainname" } } } }, "scope":
信息。 日志示例: {"app":"stage","ctime":"2022-12-01T12:32:31.981+08:00","domain":"pull1822.example.com","hit_type":-1,"http_header_referer":"-","ht
调用禁止直播推流接口,设置请求参数“domain”、“app_name”、“stream_name”和“resume_time”即可禁推指定的直播流。 POST /v1/{project_id}/stream/blocks { "domain": "play.example.com"
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
}/template/transcodings?domain=play.example.com&app_name=live&page=0&size=10 响应示例 状态码: 200 直播转码模板查询成功 { "domain" : "play.example.com", "total"
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
public static void main(String[] args) { // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great
"result_code" : "LIVE.100011001", "result_msg" : "param check failed", "domain" : "push.testott.hls.com", "app_name" : "ott", "id" : ""
print(e.error_code) print(e.error_msg) if __name__ == "__main__": ak = os.environ["HUAWEICLOUD_SDK_AK"] sk = os.environ["