视频接入服务 VIS-创建视频流:响应示例

时间:2024-07-04 09:16:57

响应示例

状态码: 201

正常

  • 示例 1
    {
      "stream_id" : "stream-0BOPSRsT",
      "name" : "stream_test1",
      "encode_type" : "H264",
      "access_type" : "RTMP",
      "access_key" : "ALKJOWLKJSDNFGO******KSJDF",
      "share_type" : "PUBLIC",
      "state" : "STOPPED",
      "created_at" : "2018-06-12T13:00:01Z",
      "updated_at" : "2018-06-12T13:00:01Z",
      "description" : "",
      "tag" : [ {
        "key" : "group",
        "value" : "number1"
      } ]
    }
  • 示例 2
    {
      "stream_id" : "stream-9IzU3TdL",
      "name" : "stream_test2",
      "encode_type" : "H264",
      "access_type" : "HTTP-FLV",
      "url" : "https://xxxxxxxx.com/live",
      "share_type" : "PUBLIC",
      "state" : "STOPPED",
      "created_at" : "2018-06-12T13:00:01Z",
      "updated_at" : "2018-06-12T13:00:01Z",
      "description" : "",
      "tag" : [ {
        "key" : "group",
        "value" : "number1"
      } ]
    }

状态码: 400

请求错误。具体返回错误码请参考错误码说明

{
  "error_msg" : "Invalid request parameter, url can not be null or empty when access type is HTTP-FLV.",
  "error_code" : "VIS.0005"
}
support.huaweicloud.com/api-vis/CreateStream.html