{"base_path":"/","components":null,"consumes":"[\"application/json; charset=UTF-8\"]","definitions":{"EncoderSettingsExpand":{"description":"输出编码扩展","properties":{"audio_descriptions":{"description":"音频输出配置的描述信息","items":{"properties":{"audio_selector_name":{"description":"音频选择器名称","example":"test","maxLength":255,"minLength":1,"type":"string"},"language_code":{"description":"语言代码,输入2或3个小写字母。","example":"cn","maxLength":3,"minLength":2,"type":"string"},"language_code_control":{"description":"语言代码控制。这里的设置不会修改音频实际的语言,只会修改音频对外展示的语言。\n\n包含如下选项:\n- FOLLOW_INPUT:如果所选音频选择器对应的输出音频有语言,则与其保持一致,否则会以这里配置的语言代码和流名称进行兜底。推荐当前选项,为默认值。\n- USE_CONFIGURED:用户根据实际情况自定义输出音频的语言和流名称。","enum":["FOLLOW_INPUT","USE_CONFIGURED"],"example":"FOLLOW_INPUT","type":"string"},"name":{"description":"音频输出配置的名称。仅支持大小写字母,数字,中划线(-),下划线(_)。\n\n同一个频道不同的音频输出配置名称,不允许重复。","example":"test","maxLength":255,"minLength":1,"type":"string"},"stream_name":{"description":"流名称","example":"Arabic","maxLength":255,"minLength":0,"type":"string"}},"required":["name","audio_selector_name"]},"maxItems":8,"minItems":0,"type":"array"}},"type":"object"},"ErrorRsp":{"description":"失败时返回的错误对象","properties":{"app_name":{"description":"组名或应用名,为必填项","maxLength":255,"minLength":1,"type":"string"},"domain":{"description":"推流域名","maxLength":255,"minLength":1,"type":"string"},"id":{"description":"频道ID。频道唯一标识,为必填项","maxLength":255,"minLength":1,"type":"string"},"result_code":{"description":"错误码","maxLength":3,"minLength":3,"type":"string"},"result_msg":{"description":"错误描述","maxLength":255,"minLength":1,"type":"string"}},"required":["result_code","result_msg"]},"ModifyOttChannelEncoderSettings":{"description":"OTT频道通用消息","properties":{"app_name":{"description":"组名或应用名","example":"live","maxLength":64,"minLength":1,"type":"string"},"domain":{"description":"频道推流域名","example":"www.huaweiott.pushdomain.com","maxLength":255,"minLength":1,"type":"string"},"encoder_settings":{"description":"转码模板配置","items":{"description":"转码模板配置项","properties":{"template_id":{"description":"转码模板ID","maxLength":255,"minLength":1,"type":"string"}}},"maxItems":12,"minItems":1,"type":"array"},"encoder_settings_expand":{"$ref":"#/definitions/EncoderSettingsExpand","description":"音频输出配置"},"id":{"description":"频道ID。频道唯一标识,为必填项","example":"channelId","maxLength":512,"minLength":2,"type":"string"}},"required":["domain","app_name","id"],"type":"object"},"SourceRsp":{"description":"RTMP推流地址。只有频道入流协议为RTMP_PUSH时,会返回RTMP推流地址","properties":{"bitrate":{"description":"码率。\n\n单位:bps。取值范围:(0,104,857,600](100Mbps)","example":104857600,"format":"int32","maximum":104857600,"minimum":0,"type":"integer"},"enable_snapshot":{"description":"描述是否使用该流做截图","example":false,"type":"boolean"},"height":{"description":"分辨率对应高的值。取值范围:0 - 2160(4K)","example":2160,"format":"int32","maximum":2160,"minimum":0,"type":"integer"},"url":{"description":"RTMP推流地址","example":"string","maxLength":1024,"minLength":1,"type":"string"},"width":{"description":"分辨率对应宽的值。取值范围:0 - 4096(4K)","example":4096,"format":"int32","maximum":4096,"minimum":0,"type":"integer"}},"type":"object"},"SuccessRsp":{"description":"创建成功响应","properties":{"app_name":{"description":"组名或应用名,为必填项","maxLength":255,"minLength":1,"type":"string"},"domain":{"description":"推流域名","maxLength":255,"minLength":1,"type":"string"},"id":{"description":"频道ID。频道唯一标识,为必填项","maxLength":255,"minLength":1,"type":"string"},"result_code":{"description":"错误码","maxLength":3,"minLength":3,"type":"string"},"result_msg":{"description":"错误描述","maxLength":255,"minLength":1,"type":"string"},"sources":{"description":"推流URL列表。创建频道时,只有入流协议为RTMP_PUSH时,会返回推流URL列表","items":{"$ref":"#/definitions/SourceRsp"},"maxItems":12,"minItems":1,"type":"array"}},"type":"object"}},"description":null,"group_id":"f01a6cf256d84c16985bc98f70ef068d","host":"live.cn-north-4.myhuaweicloud.com","id":"74cb88574ede4fe79cff5fdb8c0a6d20","info_version":"v1","method":"put","name":"ModifyOttChannelInfoEncoderSettings","parameters":{},"paths":{"/v1/{project_id}/ott/channels/encorder-settings":{"put":{"description":"修改频道转码模板信息。","operationId":"ModifyOttChannelInfoEncoderSettings","parameters":[{"description":"用户Token,使用Token鉴权方式时必选。通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":256,"minLength":1,"name":"X-Auth-Token","required":true,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXX..."},{"description":"服务鉴权Token,服务开启鉴权,必须携带Access-Control-Allow-Internal访问服务。","in":"header","maxLength":2048,"minLength":1,"name":"Access-Control-Allow-Internal","required":false,"type":"string"},{"description":"服务鉴权Token,服务开启鉴权,必须携带Access-Control-Allow-External访问服务。","in":"header","maxLength":2048,"minLength":1,"name":"Access-Control-Allow-External","required":false,"type":"string"},{"description":"项目ID,获取方法请参考[获取项目ID](live_26_0018.xml)。","in":"path","maxLength":64,"minLength":1,"name":"project_id","required":true,"type":"string","x-example":"70b76xxxxxx34253880af501cdxxxxxx"},{"description":"ModifyOttChannelInfoEncoderSettingsRequestBody","in":"body","name":"ModifyOttChannelInfoEncoderSettingsRequestBody","required":true,"schema":{"$ref":"#/definitions/ModifyOttChannelEncoderSettings"}}],"produces":["application/json"],"responses":{"200":{"description":"Demo Information","examples":{"application/json":{"app_name":"ott","domain":"push.testott.hls.com","id":"test","result_code":"LIVE.100000000","result_msg":"SUCCESS"}},"schema":{"$ref":"#/definitions/SuccessRsp"}},"400":{"description":"Error response","examples":{"application/json":{"app_name":"ott","domain":"push.testott.hls.com","id":"test2","result_code":"LIVE.103011019","result_msg":"The resource to access is not exists"}},"schema":{"$ref":"#/definitions/ErrorRsp"}}},"summary":"修改频道转码模板信息","tags":["OTT频道管理"],"x-is-registered":"Y","x-request-examples-1":{"app_name":"ott","domain":"push.testott.hls.com","encoder_settings":[{"template_id":"ld"}],"id":"test"},"x-request-examples-text-1":{"app_name":"ott","domain":"push.testott.hls.com","encoder_settings":[{"template_id":"ld"}],"id":"test"},"x-request-examples-url-1":" PUT https://{endpoint}/v1/{project_id}/ott/channels/encorder-settings","x-support-sdk":"Y"}}},"product_short":"Live","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"修改频道转码模板信息","tags":"OTT频道管理","uri":null,"version":"2.0"}