检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
'preview', // 降级地址 downgradeUrl: { flvUrl: 'https://xxxx/xx/xx/xx.flv', hlsUrl: 'https://xxxx/xx/xx/xx.m3u8' }, // 画面适配 objectFit:
me为用户所属的账号名称,可以在“我的凭证”页面获取,password为用户登录密码,projectname为项目的名称。 POST https://iam.cn-north-4.myhuaweicloud.com/v3/auth/tokens Content-Type: application/json
详细信息请参见构造请求。以“华北-北京四”为示例,若您需要调用其它区域的媒体直播接口,请替换成对应区域的IAM终端节点。 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:
参数类型 描述 error_code String 错误码 error_msg String 错误描述 请求示例 修改录制回调配置。 PUT https://{endpoint}/v1/{project_id}/record/callback/e89b76xxxxxx3425ui80af501cdxxxxxx
cache_hit 缓存命中状态,有如下两种: HIT MISS HIT scheme 访问协议,有如下四种: HTTP HTTPS RTMP WebRTC 标准直播:HTTP、HTTPS或RTMP 低时延直播:WebRTC method HTTP方法 GET period_bytes_sent
"app": "live", "stream_name": "test001", "snapshot_url": "https://xxx.obs.cn-north-4.myhuaweicloud.com:443...", "width": 720,
error_msg String 错误描述 请求示例 修改域名IPV6开关,域名为example.com,IPV6开关为开启 PUT https://{endpoint}/v1/{project_id}/domain/ipv6-switch { "domain" : "example
参数 参数类型 描述 error_code String 错误码 error_msg String 错误描述 请求示例 DELETE https://{endpoint}/v1/{project_id}/stream/blocks?domain=publish.example.huawei
参数 参数类型 描述 error_code String 错误码 error_msg String 错误描述 请求示例 DELETE https://{endpoint}/v1/{project_id}/guard/referer-chain?domain=play.example
app_name String 组名或应用名,为必填项 id String 频道ID。频道唯一标识,为必填项 请求示例 DELETE https://{endpoint}/v1/{project_id}/ott/channels?app_name=ott&domain=push.testott
描述 error_code String 错误码 error_msg String 错误描述 请求示例 删除直播截图配置。 DELETE https://{endpoint}/v1/{project_id}/stream/snapshot?domain=testsnapshot.com&app_name=live
响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String 错误描述 请求示例 GET https://{endpoint}/v1/{project_id}/stream/bandwidth?domain=play.example.huawei
响应Body参数 参数 参数类型 描述 error_code String 错误码 error_msg String 错误描述 请求示例 GET https://{endpoint}/v1/{project_id}/stream/traffic?domain=play.example.huawei
参数 参数类型 描述 error_code String 错误码 error_msg String 错误描述 请求示例 DELETE https://{endpoint}/v1/{project_id}/domains_mapping?pull_domain=play.example
描述 error_code String 错误码 error_msg String 错误描述 请求示例 查询域名HLS配置。 GET https://{endpoint}/v1/{project_id}/domain/hls?push_domain=push.example.com
支持RTMP推流。 支持HTTP-FLV拉流,起播需携带sequence header。 支持HLS-PULL拉流,支持HLS V3协议、HTTP或HTTPS协议。 支持SRT-Listener推流,仅支持TS流,支持携带streamid或不携带streamid。 支持SRT-Caller拉流,仅支持TS流。
错误码 error_msg String 错误描述 请求示例 修改OBS桶授权策略,桶名称为video-test02,操作为授权。 PUT https://{endpoint}/v1/${project_id}/obs/authority { "bucket" : "video-test02"
描述 error_code String 错误码 error_msg String 错误描述 请求示例 查询禁止直播推流列表。 GET https://{endpoint}/v1/{project_id}/stream/blocks?domain=publish.example.huawei
体直播用户指南》。 媒体直播服务提供了REST(Representational State Transfer)风格API,支持您通过HTTPS请求调用,调用方法请参见如何调用API。 终端节点 终端节点即调用API的请求地址,不同服务不同区域的终端节点不同,媒体直播的终端节点如