视频接入服务 VIS-创建视频流:请求示例

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

请求示例

  • RTMP
    POST /v1/3266392d188c47d09948b1**********/streams
    
    {
      "name" : "stream_test1",
      "access_type" : "RTMP",
      "encode_type" : "H264",
      "share_type" : "PUBLIC",
      "access_key" : "ALKJOWLKJSDNFGO******KSJDF",
      "description" : "",
      "tag" : [ {
        "key" : "group",
        "value" : "number1"
      } ]
    }
  • HTTP-FLV
    POST /v1/3266392d188c47d09948b1**********/streams
    
    {
      "name" : "stream_test2",
      "access_type" : "HTTP-FLV",
      "encode_type" : "H264",
      "share_type" : "PUBLIC",
      "url" : "https://xxxxxxxx.com/live",
      "description" : "",
      "tag" : [ {
        "key" : "group",
        "value" : "number1"
      } ]
    }
support.huaweicloud.com/api-vis/CreateStream.html