视频直播 Live-新建OTT频道:响应示例

时间:2025-02-12 15:04:25

响应示例

状态码:201

Demo Information

{  "result_code" : "LIVE.100000000",  "result_msg" : "SUC CES S",  "domain" : "push.testott.hls.com",  "app_name" : "ott",  "id" : "test",  "sources" : [ {    "url" : "rtmp://push.testott.hls.com/ott/test_1024?request_source=ott&channel_id=test",    "bitrate" : 1024,    "width" : 100,    "height" : 100  } ]}

状态码:400

Error response

{  "result_code" : "LIVE.100011001",  "result_msg" : "output url pull.testott.hls.com/ott/test/index.m3u8 is exist",  "domain" : "push.testott.hls.com",  "app_name" : "ott",  "id" : "test"}
support.huaweicloud.com/mediaapi-live/CreateOttChannelInfo.html