检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
请求示例 创建媒资分类 POST https://{endpoint}/v1.0/{project_id}/asset/category Content-Type: application/json { "name": "电影" } 响应示例 状态码: 200 处理成功返回。
请求示例 通知点播服务媒资上传的状态 POST https://{endpoint}/v1.0/{project_id}/asset/status/uploaded Content-Type: application/json { "asset_id": "f488337c31c8e4622f1590735b134c65
请求示例 确认水印图片上传状态 POST https://{endpoint}/v1.0/{project_id}/watermark/status/uploaded Content-Type: application/json { "id": "2305739f855413a84af9e6ad6e2b21be
请求示例 创建转码模板集合 POST https://{endpoint}/v1.0/{project_id}/asset/template-collection/transcodings Content-Type: application/json { "name": "test
其中,“Content-Type”需要根据上传的字幕文件类型进行设置,如下所示:字幕文件:application/octet-stream。 状态码: 403 表6 响应Body参数 参数 参数类型 描述 error_code String 错误码。
1 2 3 POST https://iam.cn-north-4.myhuaweicloud.com/v3.0/OS-USER/users Content-Type: application/json X-Auth-Token: ABCDEFJ....
/xml" req.Header.Set("Content-Type", "application/xml") // 发送请求 resp, err := client.Do(req) if err !
请求示例 修改媒资文件在OBS的存储模式 PUT https://{endpoint}/v1/{project_id}/asset/storage-mode Content-Type: application/json { "asset_id": "2305739f855413a84af9e6ad6e2b21be
HttpResponse response = HttpRequest.post(signStr) .header("Content-Type","application/xml") .body(partInfo)
请求示例 转存存储在OBS桶中的HLS视频至点播服务中(ts文件需和m3u8文件在同一目录下) POST https://{endpoint}/v1.0/{project_id}/asset/reproduction Content-Type: application/json
请求示例 媒资转码处理 POST https://{endpoint}/v1.0/{project_id}/asset/process Content-Type: application/json { "asset_id": "b4f39691d66cc0ef75d62ee567146e11
请求示例 修改水印模板 PUT https://{endpoint}/v1.0/{project_id}/template/watermark Content-Type: application/json { "id": "2305739f855413a84af9e6ad6ebb21be
将已存储在OBS桶中的音视频文件同步到点播服务 POST https://{endpoint}/v1.0/{project_id}/asset/obs/host/stock/task Content-Type: application/json { "bucket": "obs-gg
part_info: 合并段信息 :type part_info: str :return: """ print("合并分段 start") # 请求消息头中增加“Content-Type”,值设置为“application
视频文件:video/视频格式,如:“video/mp4” 音频文件:audio/音频格式,如:“audio/mp3” 图片文件:image/图片格式,如:“image/png” 字幕文件:application/octet-stream content_md5 否 String
请求示例 创建水印模板 POST https://{endpoint}/v1.0/{project_id}/template/watermark Content-Type: application/json { "name": "test", "type": "PNG"
视频文件:video/视频格式,如:“video/mp4” 音频文件:audio/音频格式,如:“audio/mp3” 图片文件:image/图片格式,如:“image/png” 字幕文件:application/octet-stream content_md5 否 String
请求示例 审核上传的媒资 POST https://{endpoint}/v1.0/{project_id}/asset/review Content-Type: application/json { "asset_id": "3e1cd21131a94525be55acf65888bf46
以token鉴权为例,设置请求头 let headers = { "X-Auth-Token": token, "Content-Type": "application/
请求示例 创建转码模板 POST https://{endpoint}/v2/{project_id}/asset/template/transcodings Content-Type: application/json { "name": "trans_template_test