检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
me为用户所属的账号名称,可以在“我的凭证”页面获取,password为用户登录密码,projectname为项目的名称。 POST https://iam.cn-north-4.myhuaweicloud.com/v3/auth/tokens Content-Type: application/json
”,则调用接口时将“X-Auth-Token: ABCDEFJ....”加到请求消息头即可,如下所示。 1 2 3 POST https://iam.cn-north-4.myhuaweicloud.com/v3.0/OS-USER/users Content-Type:
直播服务常用的消息通知方式为“短信”、“邮件”和“HTTP/HTTPS”。 短信协议 订阅的终端为手机,接收到的消息只包含消息内容。 邮件协议 订阅终端为邮箱,接收到的消息包含消息内容和取消订阅的链接。 HTTP/HTTPS协议 订阅终端为公网网址,消息通知服务向HTTP(S)终端
“配置”设置为“baseline”。 “微调”设置为“zerolatency”。 由于低时延直播推流端不推包含B帧的流,所以您需要在OBS推流端中关闭B帧。 图3 输出设置 在左侧菜单栏选择“直播”,输入步骤1获取的直播推流URL。 图4 直播设置 推流地址分两部分输入“服务器”和“推流码”中。具体填写规则如下:
”,则调用接口时将“X-Auth-Token: ABCDEFJ....”加到请求消息头即可,如下所示。 1 2 3 POST https://iam.cn-north-4.myhuaweicloud.com/v3.0/OS-USER/users Content-Type:
参数类型 描述 error_code String 错误码 error_msg String 错误描述 请求示例 修改录制回调配置。 PUT https://{endpoint}/v1/{project_id}/record/callback/e89b76xxxxxx3425ui80af501cdxxxxxx
is not supported. The API only supports the HTTPS protocol. 协议不支持,当前API仅支持https协议,不支持http协议 请使用https协议 400 LIVE.100011006 This API is not supported
is not supported. The API only supports the HTTPS protocol. 协议不支持,当前API仅支持https协议,不支持http协议 请使用https协议 400 LIVE.100011006 This API is not supported
iFrameInterval字段不生效。 bitrate_adaptive 否 String 自适应码率参数。 包含如下取值: off:关闭码率自适应,目标码率按设定的码率输出。 minimum:目标码率按设定码率和源文件码率最小值输出(即码率不上扬)。 adaptive:目标码率按源文件码率自适应输出。
iFrameInterval字段不生效。 bitrate_adaptive 否 String 自适应码率参数。 包含如下取值: off:关闭码率自适应,目标码率按设定的码率输出。 minimum:目标码率按设定码率和源文件码率最小值输出(即码率不上扬)。 adaptive:目标码率按源文件码率自适应输出。
cache_hit 缓存命中状态,有如下两种: HIT MISS HIT scheme 访问协议,有如下四种: HTTP HTTPS RTMP WebRTC 标准直播:HTTP、HTTPS或RTMP 低时延直播:WebRTC method HTTP方法 GET period_bytes_sent
请求示例 GET https://{endpoint}/v1/{project_id}/notifications/publish?domain=push.example.com 响应示例 状态码:200 直播推流通知配置查询成功 { "url" : "https://endpoint
"app": "live", "stream_name": "test001", "snapshot_url": "https://xxx.obs.cn-north-4.myhuaweicloud.com:443...", "width": 720,
参数 参数类型 描述 error_code String 错误码 error_msg String 错误描述 请求示例 DELETE https://{endpoint}/v1/{project_id}/stream/blocks?domain=publish.example.huawei
on:启用。 off:不启用。 call_back_url String 通知服务器地址,必须是合法的URL且携带协议,协议支持http和https。截图完成后直播服务会向此地址推送截图状态信息。 image_object_format String 截图存储文件命名规则, 仅支持jpg格式
on:启用。 off:不启用。 call_back_url 否 String 通知服务器地址,必须是合法的URL且携带协议,协议支持http和https。截图完成后直播服务会向此地址推送截图状态信息。 image_object_format 否 String 截图存储文件命名规则, 仅支持jpg格式
参数 参数类型 描述 error_code String 错误码 error_msg String 错误描述 请求示例 DELETE https://{endpoint}/v1/{project_id}/guard/referer-chain?domain=play.example
on:启用。 off:不启用。 call_back_url 否 String 通知服务器地址,必须是合法的URL且携带协议,协议支持http和https。截图完成后直播服务会向此地址推送截图状态信息。 image_object_format 否 String 截图存储文件命名规则, 仅支持jpg格式
描述 error_code String 错误码 error_msg String 错误描述 请求示例 停止计划录制任务。 DELETE https://{endpoint}/v1/{project_id}/schedule/record/tasks?task_id=4af897a3
参数类型 描述 error_code String 错误码 error_msg String 错误描述 请求示例 查询直播播放日志。 GET https://{endpoint}/v1/{project_id}/logs?play_domain=play.example.com&star