tccli 3.0.846.1__py2.py3-none-any.whl → 3.0.847.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/billing/v20180709/api.json +2 -20
  3. tccli/services/billing/v20180709/examples.json +2 -2
  4. tccli/services/cat/v20180409/api.json +0 -28
  5. tccli/services/cat/v20180409/examples.json +7 -7
  6. tccli/services/ccc/v20200210/api.json +16 -7
  7. tccli/services/ccc/v20200210/examples.json +2 -2
  8. tccli/services/cdb/v20170320/api.json +63 -46
  9. tccli/services/cdb/v20170320/examples.json +3 -3
  10. tccli/services/cdn/v20180606/api.json +1 -11
  11. tccli/services/cdn/v20180606/examples.json +1 -1
  12. tccli/services/cls/v20201016/api.json +44 -33
  13. tccli/services/cls/v20201016/examples.json +3 -3
  14. tccli/services/cvm/v20170312/api.json +2 -4
  15. tccli/services/ess/ess_client.py +212 -0
  16. tccli/services/ess/v20201111/api.json +456 -21
  17. tccli/services/ess/v20201111/examples.json +45 -1
  18. tccli/services/essbasic/v20210526/api.json +1 -1
  19. tccli/services/iotexplorer/v20190423/api.json +25 -33
  20. tccli/services/iotexplorer/v20190423/examples.json +9 -9
  21. tccli/services/monitor/v20180724/api.json +8 -0
  22. tccli/services/monitor/v20180724/examples.json +2 -2
  23. tccli/services/mps/v20190612/api.json +2 -7
  24. tccli/services/ocr/v20181119/api.json +45 -66
  25. tccli/services/ocr/v20181119/examples.json +16 -16
  26. tccli/services/tcss/v20201101/api.json +40 -7
  27. tccli/services/tcss/v20201101/examples.json +3 -3
  28. tccli/services/trtc/v20190722/api.json +41 -29
  29. tccli/services/trtc/v20190722/examples.json +10 -10
  30. {tccli-3.0.846.1.dist-info → tccli-3.0.847.1.dist-info}/METADATA +2 -2
  31. {tccli-3.0.846.1.dist-info → tccli-3.0.847.1.dist-info}/RECORD +35 -35
  32. {tccli-3.0.846.1.dist-info → tccli-3.0.847.1.dist-info}/LICENSE +0 -0
  33. {tccli-3.0.846.1.dist-info → tccli-3.0.847.1.dist-info}/WHEEL +0 -0
  34. {tccli-3.0.846.1.dist-info → tccli-3.0.847.1.dist-info}/entry_points.txt +0 -0
  35. {tccli-3.0.846.1.dist-info → tccli-3.0.847.1.dist-info}/top_level.txt +0 -0
@@ -156,8 +156,8 @@
156
156
  ],
157
157
  "FinanBillSliceOCR": [
158
158
  {
159
- "document": "",
160
- "input": "https://ocr.tencentcloudapi.com/?Action=FinanBillSliceOCR\r\n&ImageUrl=https://xx/a.jpg \r\n&<公共请求参数>",
159
+ "document": "金融票据切片识别示例代码",
160
+ "input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: FinanBillSliceOCR\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://xx/a.jpg \"\n}",
161
161
  "output": "{\n \"Response\": {\n \"FinanBillSliceInfos\": [\n {\n \"Name\": \"票号1\",\n \"Value\": \"31300051\"\n },\n {\n \"Name\": \"票号2\",\n \"Value\": \"46686866\"\n }\n ],\n \"RequestId\": \"f904eaa3-c868-4a89-9bd9-60afe9635c81\"\n }\n}",
162
162
  "title": "金融票据切片识别示例代码"
163
163
  }
@@ -338,15 +338,15 @@
338
338
  ],
339
339
  "MainlandPermitOCR": [
340
340
  {
341
- "document": "",
342
- "input": "https://ocr.tencentcloudapi.com/?Action=MainlandPermitOCR\n&ImageUrl=https://xx/a.jpg\n&RetProfile=False\n&<公共请求参数>",
341
+ "document": "港澳台来往内地通行证识别",
342
+ "input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: MainlandPermitOCR\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://xx/a.jpg\",\n \"RetProfile\": \"False\"\n}",
343
343
  "output": "{\n \"Response\": {\n \"Name\": \"李明\",\n \"EnglishName\": \"LIMING\",\n \"Number\": \"C00000000\",\n \"Sex\": \"男\",\n \"ValidDate\": \"2018.10.09-2028.10.08\",\n \"IssueAuthority\": \"公安部出入境管理局\",\n \"IssueAddress\": \"广东\",\n \"Birthday\": \"1981.08.03\",\n \"IssueNumber\": \"02\",\n \"Type\": \"台湾居民来往大陆通行证\",\n \"Profile\": \"\",\n \"RequestId\": \"3090debe-3662-4ef1-8784-6ef2fb59f75e\"\n }\n}",
344
344
  "title": "港澳台来往内地通行证识别示例代码"
345
345
  }
346
346
  ],
347
347
  "MixedInvoiceDetect": [
348
348
  {
349
- "document": "",
349
+ "document": "混贴票据分类",
350
350
  "input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: MixedInvoiceDetect\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://xx/a.jpg\",\n \"ReturnImage\": \"False\"\n}",
351
351
  "output": "{\n \"Response\": {\n \"InvoiceDetectInfos\": [\n {\n \"Angle\": 0,\n \"Type\": 3,\n \"Rect\": {\n \"X\": 19,\n \"Y\": 43,\n \"Width\": 1340,\n \"Height\": 852\n },\n \"Image\": null\n },\n {\n \"Angle\": 0,\n \"Type\": 13,\n \"Rect\": {\n \"X\": 20,\n \"Y\": 891,\n \"Width\": 479,\n \"Height\": 597\n },\n \"Image\": null\n },\n {\n \"Angle\": 0,\n \"Type\": 2,\n \"Rect\": {\n \"X\": 520,\n \"Y\": 904,\n \"Width\": 455,\n \"Height\": 286\n },\n \"Image\": null\n }\n ],\n \"RequestId\": \"c8cedc79-d03b-463d-8b95-b807b4ca5135\"\n }\n}",
352
352
  "title": "混贴票据分类示例代码"
@@ -368,8 +368,8 @@
368
368
  ],
369
369
  "OrgCodeCertOCR": [
370
370
  {
371
- "document": "",
372
- "input": "https://ocr.tencentcloudapi.com/?Action=OrgCodeCertOCR\n&ImageUrl=https://xx/a.jpg \n&<公共请求参数>",
371
+ "document": "组织机构代码证识别",
372
+ "input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OrgCodeCertOCR\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://xx/a.jpg \"\n}",
373
373
  "output": "{\n \"Response\": {\n \"OrgCode\": \"300000-3\",\n \"Name\": \"望江县xxx店\",\n \"Address\": \"望江县天鹅购物广场xxx铺\",\n \"ValidDate\": \"自2019年07月01日至2023年06月30日\",\n \"RequestId\": \"e7fdecd4-39a3-46a7-a565-274a2004af2e\"\n }\n}",
374
374
  "title": "组织机构代码证识别示例代码"
375
375
  }
@@ -377,31 +377,31 @@
377
377
  "PassportOCR": [
378
378
  {
379
379
  "document": "以中国大陆地区护照为例",
380
- "input": "https://ocr.tencentcloudapi.com/?Action=PassportOCR\n&ImageUrl=https://xx/a.jpg\n&Type=CN\n&<公共请求参数>",
380
+ "input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: PassportOCR\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://xx/a.jpg\",\n \"Type\": \"CN\"\n}",
381
381
  "output": "{\n \"Response\": {\n \"Country\": \"CHN\",\n \"PassportNo\": \"G12345678\",\n \"Sex\": \"M\",\n \"Nationality\": \"CHN\",\n \"BirthDate\": \"19920922\",\n \"BirthPlace\": \"SHANGHAI\",\n \"IssueDate\": \"20100820\",\n \"IssuePlace\": \"SHANGHAI\",\n \"ExpiryDate\": \"20200819\",\n \"Signature\": \"\",\n \"CodeSet\": \"POCHNZHANG<<SAN<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\",\n \"CodeCrc\": \"G123456785CHN9209220M200819219203100<<<<<<60\",\n \"Name\": \"张三\",\n \"FamilyName\": \"ZHANG\",\n \"FirstName\": \"SAN\",\n \"RequestId\": \"39cce0fc-77b1-4271-82ae-9f0bf1036906\"\n }\n}",
382
382
  "title": "护照识别示例代码 [前往调试工具](https://console.cloud.tencent.com/api/explorer?Product=ocr&Version=2018-11-19&Action=PassportOCR)"
383
383
  }
384
384
  ],
385
385
  "PermitOCR": [
386
386
  {
387
- "document": "",
388
- "input": "https://ocr.tencentcloudapi.com/?Action=PermitOCR\n&ImageUrl=https://xx/a.jpg \n&<公共请求参数>",
387
+ "document": "港澳台通行证识",
388
+ "input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: PermitOCR\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://xx/a.jpg \"\n}",
389
389
  "output": "{\n \"Response\": {\n \"Name\": \"李明\",\n \"EnglishName\": \"LIMING\",\n \"Number\": \"C00000000\",\n \"Sex\": \"男\",\n \"ValidDate\": \"2018.10.09-2028.10.08\",\n \"IssueAuthority\": \"公安部出入境管理局\",\n \"IssueAddress\": \"广东\",\n \"Birthday\": \"1981.08.03\",\n \"RequestId\": \"3090debe-3662-4ef1-8784-6ef2fb59f75e\"\n }\n}",
390
390
  "title": "港澳台通行证识别示例代码"
391
391
  }
392
392
  ],
393
393
  "PropOwnerCertOCR": [
394
394
  {
395
- "document": "",
396
- "input": "https://ocr.tencentcloudapi.com/?Action=PropOwnerCertOCR\n&ImageUrl=https://xx/a.jpg\n&<公共请求参数>",
395
+ "document": "房产证识别",
396
+ "input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: PropOwnerCertOCR\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://xx/a.jpg\"\n}",
397
397
  "output": "{\n \"Response\": {\n \"Owner\": \"李明\",\n \"Possession\": \"单独所有\",\n \"RegisterTime\": \"2015-02-22\",\n \"Purpose\": \"成套住宅\",\n \"Nature\": \"商品房\",\n \"Location\": \"上海市徐汇区田林路397号腾云大厦\",\n \"RequestId\": \"67c12150-b6e4-41a0-a404-503fe83d7e85\"\n }\n}",
398
398
  "title": "房产证识别示例代码"
399
399
  }
400
400
  ],
401
401
  "QrcodeOCR": [
402
402
  {
403
- "document": "",
404
- "input": "https://ocr.tencentcloudapi.com/?Action=QrcodeOCR\n&ImageUrl=https://xx/a.jpg\n&<公共请求参数>",
403
+ "document": "二维码和条形码识别",
404
+ "input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QrcodeOCR\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://xx/a.jpg\"\n}",
405
405
  "output": "{\n \"Response\": {\n \"CodeResults\": [\n {\n \"TypeName\": \"QR_CODE\",\n \"Url\": \"http://baike.baidu.com\",\n \"Position\": {\n \"LeftTop\": {\n \"X\": 0,\n \"Y\": 0\n },\n \"RightTop\": {\n \"X\": 380,\n \"Y\": 0\n },\n \"RightBottom\": {\n \"X\": 380,\n \"Y\": 380\n },\n \"LeftBottom\": {\n \"X\": 0,\n \"Y\": 380\n }\n }\n }\n ],\n \"ImgSize\": {\n \"Wide\": 380,\n \"High\": 380\n },\n \"RequestId\": \"06c7ba12-ec94-4fd4-be48-239c714f0cf4\"\n }\n}",
406
406
  "title": "二维码和条形码识别示例代码 [前往调试工具](https://console.cloud.tencent.com/api/explorer?Product=ocr&Version=2018-11-19&Action=QrcodeOCR)"
407
407
  }
@@ -424,8 +424,8 @@
424
424
  ],
425
425
  "RecognizeContainerOCR": [
426
426
  {
427
- "document": "",
428
- "input": "https://ocr.tencentcloudapi.com/?Action=RecognizeContainerOCR\n&ImageUrl=https://xx/a.jpg\n&<公共请求参数>",
427
+ "document": "集装箱识别",
428
+ "input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RecognizeContainerOCR\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://xx/a.jpg\"\n}",
429
429
  "output": "{\n \"Response\": {\n \"ContainerId\": \"APHU7042391\",\n \"ContainerType\": \"45G1\",\n \"GrossKG\": \"32500KG\",\n \"GrossLB\": \"71650LB\",\n \"PayloadKG\": \"28630KG\",\n \"PayloadLB\": \"63120LB\",\n \"TareKG\": \"3870KG\",\n \"TareLB\": \"8530LB\",\n \"CapacityM3\": \"76.4CUM\",\n \"CapacityFT3\": \"2700CUFT\",\n \"Warn\": [\n -9926,\n -9927\n ],\n \"RequestId\": \"45afaba3-5fb8-480e-83f9-2681f1373783\"\n }\n}",
430
430
  "title": "集装箱识别示例代码"
431
431
  }
@@ -25780,7 +25780,6 @@
25780
25780
  "document": "DescribeVulSummary请求参数结构体",
25781
25781
  "members": [
25782
25782
  {
25783
- "default": "",
25784
25783
  "document": "过滤条件。\n<li>OnlyAffectedNewestImage- string- 是否必填:否 - 仅展示影响最新版本镜像的漏洞true,false</li>\n<li>OnlyAffectedContainer-string- 是否必填:否 - 仅展示影响容器的漏洞,true,false</li>\n<li>CategoryType- string - 是否必填:否 - 漏洞分类: SYSTEM:系统漏洞 WEB:web应用漏洞 ALL:全部漏洞</li>",
25785
25784
  "example": "无",
25786
25785
  "member": "RunTimeFilters",
@@ -25799,7 +25798,6 @@
25799
25798
  "example": "10",
25800
25799
  "member": "int64",
25801
25800
  "name": "VulTotalCount",
25802
- "required": true,
25803
25801
  "type": "int",
25804
25802
  "value_allowed_null": false
25805
25803
  },
@@ -25808,7 +25806,6 @@
25808
25806
  "example": "1",
25809
25807
  "member": "int64",
25810
25808
  "name": "SeriousVulCount",
25811
- "required": true,
25812
25809
  "type": "int",
25813
25810
  "value_allowed_null": false
25814
25811
  },
@@ -25817,7 +25814,6 @@
25817
25814
  "example": "1",
25818
25815
  "member": "int64",
25819
25816
  "name": "SuggestVulCount",
25820
- "required": true,
25821
25817
  "type": "int",
25822
25818
  "value_allowed_null": false
25823
25819
  },
@@ -25826,7 +25822,6 @@
25826
25822
  "example": "1",
25827
25823
  "member": "int64",
25828
25824
  "name": "PocExpLevelVulCount",
25829
- "required": true,
25830
25825
  "type": "int",
25831
25826
  "value_allowed_null": false
25832
25827
  },
@@ -25835,7 +25830,6 @@
25835
25830
  "example": "1",
25836
25831
  "member": "int64",
25837
25832
  "name": "RemoteExpLevelVulCount",
25838
- "required": true,
25839
25833
  "type": "int",
25840
25834
  "value_allowed_null": false
25841
25835
  },
@@ -25844,7 +25838,46 @@
25844
25838
  "example": "1",
25845
25839
  "member": "int64",
25846
25840
  "name": "SeriousVulNewestImageCount",
25847
- "required": true,
25841
+ "type": "int",
25842
+ "value_allowed_null": false
25843
+ },
25844
+ {
25845
+ "document": "系统漏洞重点关注数",
25846
+ "example": "1",
25847
+ "member": "int64",
25848
+ "name": "SystemVulnerabilityFocusCount",
25849
+ "type": "int",
25850
+ "value_allowed_null": false
25851
+ },
25852
+ {
25853
+ "document": "web漏洞重点关注数",
25854
+ "example": "1",
25855
+ "member": "int64",
25856
+ "name": "WebVulnerabilityFocusCount",
25857
+ "type": "int",
25858
+ "value_allowed_null": false
25859
+ },
25860
+ {
25861
+ "document": "受影响本地镜像数",
25862
+ "example": "1",
25863
+ "member": "int64",
25864
+ "name": "SeriousVulnerabilityLocalImageCount",
25865
+ "type": "int",
25866
+ "value_allowed_null": false
25867
+ },
25868
+ {
25869
+ "document": "受影响仓库镜像数",
25870
+ "example": "1",
25871
+ "member": "int64",
25872
+ "name": "SeriousVulnerabilityRegistryImageCount",
25873
+ "type": "int",
25874
+ "value_allowed_null": false
25875
+ },
25876
+ {
25877
+ "document": "应急漏洞数量",
25878
+ "example": "1",
25879
+ "member": "int64",
25880
+ "name": "EmergencyVulnerabilityCount",
25848
25881
  "type": "int",
25849
25882
  "value_allowed_null": false
25850
25883
  },
@@ -2236,9 +2236,9 @@
2236
2236
  ],
2237
2237
  "DescribeVulSummary": [
2238
2238
  {
2239
- "document": "",
2240
- "input": "https://tcss.tencentcloudapi.com/?Action=DescribeVulSummary\n&Filters.0.Name=CategoryType\n&Filters.0.Values.0=ALL\n&<公共请求参数>",
2241
- "output": "{\n \"Response\": {\n \"SeriousVulCount\": 0,\n \"VulTotalCount\": 0,\n \"RequestId\": \"xx\",\n \"SeriousVulNewestImageCount\": 0,\n \"SuggestVulCount\": 0,\n \"PocExpLevelVulCount\": 0,\n \"RemoteExpLevelVulCount\": 0\n }\n}",
2239
+ "document": "查询漏洞风险统计概览",
2240
+ "input": "POST / HTTP/1.1\nHost: tcss.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeVulSummary\n<公共请求参数>\n\n{}",
2241
+ "output": "{\n \"Response\": {\n \"VulTotalCount\": 0,\n \"SeriousVulCount\": 0,\n \"SuggestVulCount\": 0,\n \"PocExpLevelVulCount\": 0,\n \"RemoteExpLevelVulCount\": 0,\n \"SeriousVulNewestImageCount\": 0,\n \"SystemVulnerabilityFocusCount\": 0,\n \"WebVulnerabilityFocusCount\": 0,\n \"SeriousVulnerabilityLocalImageCount\": 0,\n \"SeriousVulnerabilityRegistryImageCount\": 0,\n \"EmergencyVulnerabilityCount\": 0,\n \"RequestId\": \"abc\"\n }\n}",
2242
2242
  "title": "查询漏洞风险统计概览"
2243
2243
  }
2244
2244
  ],
@@ -225,7 +225,7 @@
225
225
  "status": "online"
226
226
  },
227
227
  "StartPublishCdnStream": {
228
- "document": "接口说明:启动旁路以及混流转推任务。TRTC 的房间中可能会同时存在多路音视频流,您可以通过此API接口,实现以下几种效果:\n1、支持将单个主播的音视频流发布(也称作“转推”)到直播CDN上,请参考示例2(发起单流音视频旁路转推)和示例3(发起单流纯音频旁路转推)。\n2、支持将同个房间多个主播或者不同房间多个主播的音视频混合成1路后再发布到直播CDN上,您可以通过AudioParams.SubscribeAudioList和VideoParams.LayoutParams调整参与混音的用户列表以及指定各路混流画面的布局位置。请参考示例1(发起混流转推)。\n3、支持预先设置一个房间的混流模板,将该房间中的多个音视频混合成1路发布到直播CDN,腾讯云后台实时监控TRTC房间中的主播变化,自动按照混流模板调整布局。目前已经支持了如下几种混流预设模板:\n - 悬浮模板:第一个进入房间的用户的视频画面会铺满整个屏幕,其他用户的视频画面从左下角依次水平排列,显示为小画面,最多4行,每行4个,小画面悬浮于大画面之上。最多支持1个大画面和15个小画面。\n - 九宫格模板:所有用户的视频画面大小一致,平分整个屏幕,人数越多,每个画面的尺寸越小,最多支持16个画面。\n - 屏幕分享模板:适合视频会议和在线教育场景的布局,屏幕分享(或者主讲的摄像头)始终占据屏幕左侧的大画面位置,其他用户依次垂直排列于右侧,最多两列,每列最多8个小画面。最多支持1个大画面和15个小画面。若上行分辨率宽高比与画面输出宽高比不一致时,左侧大画面为了保持内容的完整性采用缩放方式处理,右侧小画面采用裁剪方式处理。\n4、支持同时将音视频流发布到最多10个直播CDN上。您可以通过PublishCdnParams.PublishCdnUrl指定转推CDN的url,如果您想转推到腾讯云CDN,PublishCdnParams.IsTencentCdn填为1。\n5、支持通过配置服务端回调,实时将转推状态以HTTP/HTTPS POST 请求发送给您的服务器,如果您需要接入转推事件回调,请联系腾讯云技术支持。\n6、云API调用支持广州、上海、北京、香港四个地域,如果您想转推海外,请选择香港地域。\n7、国内站默认只支持转推腾讯云CDN,如您有转推第三方CDN的需求,请联系腾讯云技术支持,由后台进行评估。\n注意:\n1、**混流转码为收费功能,调用接口将产生云端混流转码费用,详见[云端混流转推计费说明](https://cloud.tencent.com/document/product/647/49446)。**\n2、**转推非腾讯云CDN将产生云端转推费用,详见[云端混流转推计费说明](https://cloud.tencent.com/document/product/647/82155)。**\n\n其他使用说明如下:\n1、使用混流转推接口时,您需要先调用启动转推任务接口(StartPublishCdnStream),获取启动转推任务响应中的任务ID标识(TaskId)。后续传入任务ID标识(TaskId)来更新转推任务(UpdatePublishCdnStream)和停止转推任务(StopPublishCdnStream)。\n2、为了确保转推链接的稳定,同一个转推任务不支持纯音频、音视频、纯视频之间的切换。\n3、为了确保转推链接的稳定,更新转推任务接口(UpdatePublishCdnStream)不支持时更改视频参数(codec)和音频参数(codec、采样率、码率、声道数),其余参数建议全量带齐。\n4、发起单流旁路任务时,AudioParams和VideoParams都填写表示音视频旁路,如果仅填写AudioParams表示纯音频旁路,任务进行过程中不支持纯音频到音视频的切换。音视频旁路时,VideoParams中的Width、Height、Fps、BitRate、Gop需要按照真实上行参数填写。\n5、更新转推任务(UpdatePublishCdnStream)必须携带SequenceNumber参数,用于防止请求乱序。客户保证对同一个任务更新时的SequenceNumber参数递增:腾讯云返回InternalError错误码时,需重试请求(不换SequenceNumber);腾讯云返回FailedOperation.OutdateRequest过期错误码时,无需处理即可。\n6、您可以在主播进房前,提前创建转推任务,结束转推任务时需要主动调用停止接口。如果您没有调用停止转推任务接口时,腾讯云后台会按照所有参与混流的用户没有任何数据上行的时间算起,直到超过启动转推任务时设置的超时时间(AgentParams.MaxIdleTime)为止,自动停止混流转推任务。",
228
+ "document": "接口说明:启动旁路以及混流转推任务。TRTC 的房间中可能会同时存在多路音视频流,您可以通过此API接口,实现以下几种效果:\n1、支持将单个主播的音视频流发布(也称作“转推”)到直播CDN上,请参考示例2(发起单流音视频旁路转推)和示例3(发起单流纯音频旁路转推)。\n2、支持将同个房间多个主播或者不同房间多个主播的音视频混合成1路后再发布到直播CDN上,您可以通过AudioParams.SubscribeAudioList和VideoParams.LayoutParams调整参与混音的用户列表以及指定各路混流画面的布局位置。请参考示例1(发起混流转推)。\n3、支持预先设置一个房间的混流模板,将该房间中的多个音视频混合成1路发布到直播CDN,腾讯云后台实时监控TRTC房间中的主播变化,自动按照混流模板调整布局。目前已经支持了如下几种混流预设模板:\n - 悬浮模板:第一个进入房间的用户的视频画面会铺满整个屏幕,其他用户的视频画面从左下角依次水平排列,显示为小画面,最多4行,每行4个,小画面悬浮于大画面之上。最多支持1个大画面和15个小画面。\n - 九宫格模板:所有用户的视频画面大小一致,平分整个屏幕,人数越多,每个画面的尺寸越小,最多支持16个画面。\n - 屏幕分享模板:适合视频会议和在线教育场景的布局,屏幕分享(或者主讲的摄像头)始终占据屏幕左侧的大画面位置,其他用户依次垂直排列于右侧,最多两列,每列最多8个小画面。最多支持1个大画面和15个小画面。若上行分辨率宽高比与画面输出宽高比不一致时,左侧大画面为了保持内容的完整性采用缩放方式处理,右侧小画面采用裁剪方式处理。\n4、支持同时将音视频流发布到最多10个直播CDN上。您可以通过PublishCdnParams.PublishCdnUrl指定转推CDN的url,如果您想转推到腾讯云CDN,PublishCdnParams.IsTencentCdn填为1。\n5、支持通过配置服务端回调,实时将转推状态以HTTP/HTTPS POST 请求发送给您的服务器,如果您需要接入转推事件回调,请联系腾讯云技术支持。\n6、云API调用支持广州、上海、北京、香港四个地域,如果您想转推海外,请选择香港地域。\n7、国内站默认只支持转推腾讯云CDN,如您有转推第三方CDN的需求,请联系腾讯云技术支持,由后台进行评估。\n注意:\n1、**混流转码为收费功能,调用接口将产生云端混流转码费用,详见[云端混流转推计费说明](https://cloud.tencent.com/document/product/647/49446)。**\n2、**转推非腾讯云CDN将产生云端转推费用,详见[云端混流转推计费说明](https://cloud.tencent.com/document/product/647/82155)。**\n\n其他使用说明如下:\n1、使用混流转推接口时,您需要先调用启动转推任务接口(StartPublishCdnStream),获取启动转推任务响应中的任务ID标识(TaskId)。后续传入任务ID标识(TaskId)来更新转推任务(UpdatePublishCdnStream)和停止转推任务(StopPublishCdnStream)。\n2、为了确保转推链接的稳定,同一个转推任务不支持纯音频、音视频、纯视频之间的切换。\n3、为了确保转推链接的稳定,更新转推任务接口(UpdatePublishCdnStream)不支持时更改视频参数(codec)和音频参数(codec、采样率、码率、声道数),其余参数建议全量带齐,如您有转码/非转码切换,其余参数则必须全量带齐。\n4、发起单流旁路任务时,AudioParams和VideoParams都填写表示音视频旁路,如果仅填写AudioParams表示纯音频旁路,任务进行过程中不支持纯音频到音视频的切换。音视频旁路时,VideoParams中的Width、Height、Fps、BitRate、Gop需要按照真实上行参数填写。\n5、更新转推任务(UpdatePublishCdnStream)必须携带SequenceNumber参数,用于防止请求乱序。客户保证对同一个任务更新时的SequenceNumber参数递增:腾讯云返回InternalError错误码时,需重试请求(不换SequenceNumber);腾讯云返回FailedOperation.OutdateRequest过期错误码时,无需处理即可。\n6、您可以在主播进房前,提前创建转推任务,结束转推任务时需要主动调用停止接口。如果您没有调用停止转推任务接口时,腾讯云后台会按照所有参与混流的用户没有任何数据上行的时间算起,直到超过启动转推任务时设置的超时时间(AgentParams.MaxIdleTime)为止,自动停止混流转推任务。",
229
229
  "input": "StartPublishCdnStreamRequest",
230
230
  "name": "启动转推任务",
231
231
  "output": "StartPublishCdnStreamResponse",
@@ -1873,7 +1873,32 @@
1873
1873
  },
1874
1874
  "DescribeTrtcRoomUsageRequest": {
1875
1875
  "document": "DescribeTrtcRoomUsage请求参数结构体",
1876
- "members": [],
1876
+ "members": [
1877
+ {
1878
+ "document": "TRTC的SdkAppId,和房间所对应的SdkAppId相同。",
1879
+ "example": "1400017192",
1880
+ "member": "uint64",
1881
+ "name": "SdkAppid",
1882
+ "required": true,
1883
+ "type": "int"
1884
+ },
1885
+ {
1886
+ "document": "查询开始时间,格式为YYYY-MM-DD HH:MM,精确到分钟级。",
1887
+ "example": "2023-01-06 00:00",
1888
+ "member": "string",
1889
+ "name": "StartTime",
1890
+ "required": true,
1891
+ "type": "string"
1892
+ },
1893
+ {
1894
+ "document": "查询结束时间,格式为YYYY-MM-DD HH:MM,单次查询不超过24h。",
1895
+ "example": "2023-01-06 10:00",
1896
+ "member": "string",
1897
+ "name": "EndTime",
1898
+ "required": true,
1899
+ "type": "string"
1900
+ }
1901
+ ],
1877
1902
  "type": "object"
1878
1903
  },
1879
1904
  "DescribeTrtcRoomUsageResponse": {
@@ -2859,6 +2884,16 @@
2859
2884
  "required": false,
2860
2885
  "type": "object",
2861
2886
  "value_allowed_null": false
2887
+ },
2888
+ {
2889
+ "default": "",
2890
+ "document": "屏幕分享模板、悬浮模板、九宫格模版有效,画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底",
2891
+ "example": "0",
2892
+ "member": "uint64",
2893
+ "name": "RenderMode",
2894
+ "required": false,
2895
+ "type": "int",
2896
+ "value_allowed_null": false
2862
2897
  }
2863
2898
  ],
2864
2899
  "usage": "in"
@@ -4684,7 +4719,6 @@
4684
4719
  "document": "StartPublishCdnStream请求参数结构体",
4685
4720
  "members": [
4686
4721
  {
4687
- "default": "",
4688
4722
  "document": "TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和转推的房间所对应的SdkAppId相同。",
4689
4723
  "example": "1400188366",
4690
4724
  "member": "uint64",
@@ -4693,7 +4727,6 @@
4693
4727
  "type": "int"
4694
4728
  },
4695
4729
  {
4696
- "default": "",
4697
4730
  "document": "主房间信息RoomId,转推的TRTC房间所对应的RoomId。",
4698
4731
  "example": "room_1234",
4699
4732
  "member": "string",
@@ -4702,7 +4735,6 @@
4702
4735
  "type": "string"
4703
4736
  },
4704
4737
  {
4705
- "default": "",
4706
4738
  "document": "主房间信息RoomType,必须和转推的房间所对应的RoomId类型相同,0为整形房间号,1为字符串房间号。",
4707
4739
  "example": "1",
4708
4740
  "member": "uint64",
@@ -4711,7 +4743,6 @@
4711
4743
  "type": "int"
4712
4744
  },
4713
4745
  {
4714
- "default": "",
4715
4746
  "document": "转推服务加入TRTC房间的机器人参数。",
4716
4747
  "example": "AgentParams",
4717
4748
  "member": "AgentParams",
@@ -4720,8 +4751,7 @@
4720
4751
  "type": "object"
4721
4752
  },
4722
4753
  {
4723
- "default": "",
4724
- "document": "是否转码,0表示无需转码,1表示需要转码。",
4754
+ "document": "是否转码,0表示无需转码,1表示需要转码。是否收取转码费是由WithTranscoding参数决定的,WithTranscoding为0,表示旁路转推,不会收取转码费用,WithTranscoding为1,表示混流转推,会收取转吗费用。",
4725
4755
  "example": "1",
4726
4756
  "member": "uint64",
4727
4757
  "name": "WithTranscoding",
@@ -4729,8 +4759,7 @@
4729
4759
  "type": "int"
4730
4760
  },
4731
4761
  {
4732
- "default": "",
4733
- "document": "转推流的音频编码参数。",
4762
+ "document": "转推流的音频编码参数。由于音频是必转码的(不会收取转码费用),所以启动任务的时候,必须填写。",
4734
4763
  "example": "AudioParams",
4735
4764
  "member": "McuAudioParams",
4736
4765
  "name": "AudioParams",
@@ -4738,7 +4767,6 @@
4738
4767
  "type": "object"
4739
4768
  },
4740
4769
  {
4741
- "default": "",
4742
4770
  "document": "转推流的视频编码参数,不填表示纯音频转推。",
4743
4771
  "example": "VideoParams",
4744
4772
  "member": "McuVideoParams",
@@ -4747,7 +4775,6 @@
4747
4775
  "type": "object"
4748
4776
  },
4749
4777
  {
4750
- "default": "",
4751
4778
  "document": "需要单流旁路转推的用户上行参数,单流旁路转推时,WithTranscoding需要设置为0。",
4752
4779
  "example": "SingleSubscribeParams",
4753
4780
  "member": "SingleSubscribeParams",
@@ -4756,8 +4783,7 @@
4756
4783
  "type": "object"
4757
4784
  },
4758
4785
  {
4759
- "default": "",
4760
- "document": "转推的CDN参数。",
4786
+ "document": "转推的CDN参数。和回推房间参数必须要有一个。",
4761
4787
  "example": "PublishCdnParams",
4762
4788
  "member": "McuPublishCdnParam",
4763
4789
  "name": "PublishCdnParams",
@@ -4765,7 +4791,6 @@
4765
4791
  "type": "list"
4766
4792
  },
4767
4793
  {
4768
- "default": "",
4769
4794
  "document": "混流SEI参数",
4770
4795
  "example": "SeiParams",
4771
4796
  "member": "McuSeiParams",
@@ -4774,8 +4799,7 @@
4774
4799
  "type": "object"
4775
4800
  },
4776
4801
  {
4777
- "default": "",
4778
- "document": "回推房间信息",
4802
+ "document": "回推房间信息,和转推CDN参数必须要有一个。",
4779
4803
  "example": "FeedBackRoomParams",
4780
4804
  "member": "McuFeedBackRoomParams",
4781
4805
  "name": "FeedBackRoomParams",
@@ -4793,7 +4817,6 @@
4793
4817
  "example": "5df46eb2-8e4b-490e-9c3c-dbd3b84faefc",
4794
4818
  "member": "string",
4795
4819
  "name": "TaskId",
4796
- "required": true,
4797
4820
  "type": "string",
4798
4821
  "value_allowed_null": false
4799
4822
  },
@@ -5331,7 +5354,6 @@
5331
5354
  "document": "UpdatePublishCdnStream请求参数结构体",
5332
5355
  "members": [
5333
5356
  {
5334
- "default": "",
5335
5357
  "document": "TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和转推的房间所对应的SdkAppId相同。",
5336
5358
  "example": "1400188366",
5337
5359
  "member": "uint64",
@@ -5340,7 +5362,6 @@
5340
5362
  "type": "int"
5341
5363
  },
5342
5364
  {
5343
- "default": "",
5344
5365
  "document": "唯一标识转推任务。",
5345
5366
  "example": "xxxxxxxx",
5346
5367
  "member": "string",
@@ -5349,7 +5370,6 @@
5349
5370
  "type": "string"
5350
5371
  },
5351
5372
  {
5352
- "default": "",
5353
5373
  "document": "客户保证同一个任务,每次更新请求中的SequenceNumber递增,防止请求乱序。",
5354
5374
  "example": "2",
5355
5375
  "member": "uint64",
@@ -5358,7 +5378,6 @@
5358
5378
  "type": "int"
5359
5379
  },
5360
5380
  {
5361
- "default": "",
5362
5381
  "document": "是否转码,0表示无需转码,1表示需要转码。",
5363
5382
  "example": "1",
5364
5383
  "member": "uint64",
@@ -5367,7 +5386,6 @@
5367
5386
  "type": "int"
5368
5387
  },
5369
5388
  {
5370
- "default": "",
5371
5389
  "document": "更新相关参数,只支持更新参与混音的主播列表参数。不填表示不更新此参数。",
5372
5390
  "example": "AudioParams",
5373
5391
  "member": "McuAudioParams",
@@ -5376,7 +5394,6 @@
5376
5394
  "type": "object"
5377
5395
  },
5378
5396
  {
5379
- "default": "",
5380
5397
  "document": "更新视频相关参数,转码时支持更新除编码类型之外的编码参数,视频布局参数,背景图片和背景颜色参数,水印参数。不填表示不更新此参数。",
5381
5398
  "example": "VideoParams",
5382
5399
  "member": "McuVideoParams",
@@ -5385,7 +5402,6 @@
5385
5402
  "type": "object"
5386
5403
  },
5387
5404
  {
5388
- "default": "",
5389
5405
  "document": "更新单流转推的用户上行参数,仅在非转码时有效。不填表示不更新此参数。",
5390
5406
  "example": "SingleSubscribeParams",
5391
5407
  "member": "SingleSubscribeParams",
@@ -5394,7 +5410,6 @@
5394
5410
  "type": "object"
5395
5411
  },
5396
5412
  {
5397
- "default": "",
5398
5413
  "document": "更新转推的CDN参数。不填表示不更新此参数。",
5399
5414
  "example": "PublishCdnParams",
5400
5415
  "member": "McuPublishCdnParam",
@@ -5403,7 +5418,6 @@
5403
5418
  "type": "list"
5404
5419
  },
5405
5420
  {
5406
- "default": "",
5407
5421
  "document": "混流SEI参数",
5408
5422
  "example": "SeiParams",
5409
5423
  "member": "McuSeiParams",
@@ -5412,7 +5426,6 @@
5412
5426
  "type": "object"
5413
5427
  },
5414
5428
  {
5415
- "default": "",
5416
5429
  "document": "回推房间信息",
5417
5430
  "example": "FeedBackRoomParams",
5418
5431
  "member": "McuFeedBackRoomParams",
@@ -5431,7 +5444,6 @@
5431
5444
  "example": "xxxx",
5432
5445
  "member": "string",
5433
5446
  "name": "TaskId",
5434
- "required": true,
5435
5447
  "type": "string",
5436
5448
  "value_allowed_null": false
5437
5449
  },
@@ -154,8 +154,8 @@
154
154
  ],
155
155
  "DescribeTrtcRoomUsage": [
156
156
  {
157
- "document": "",
158
- "input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTrtcRoomUsage\n<公共请求参数>\n\n{}",
157
+ "document": "查询TRTC音视频房间维度用量",
158
+ "input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTrtcRoomUsage\n<公共请求参数>\n\n{\n \"StartTime\": \"2023-01-06 00:00\",\n \"EndTime\": \"2023-01-06 10:00\",\n \"SdkAppid\": 1400017192\n}",
159
159
  "output": "{\n \"Response\": {\n \"RequestId\": \"68fccf1c-c2c7-466a-9f14-1db4bed6054b\"\n }\n}",
160
160
  "title": "查询TRTC音视频房间维度用量"
161
161
  }
@@ -258,32 +258,32 @@
258
258
  ],
259
259
  "StartPublishCdnStream": [
260
260
  {
261
- "document": "",
261
+ "document": "",
262
262
  "input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<公共请求参数>\n\n{\n \"AudioParams\": {\n \"SubscribeAudioList\": [\n {\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"195044\",\n \"UserId\": \"Trtc_User_0\"\n }\n },\n {\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"195044\",\n \"UserId\": \"Trtc_User_1\"\n }\n },\n {\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"195044\",\n \"UserId\": \"Trtc_User_2\"\n }\n },\n {\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"195044\",\n \"UserId\": \"Trtc_User_3\"\n }\n }\n ],\n \"AudioEncode\": {\n \"SampleRate\": 48000,\n \"Codec\": 0,\n \"BitRate\": 64,\n \"Channel\": 2\n }\n },\n \"AgentParams\": {\n \"MaxIdleTime\": 30,\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"VideoParams\": {\n \"VideoEncode\": {\n \"Height\": 720,\n \"Width\": 1280,\n \"Fps\": 15,\n \"BitRate\": 512,\n \"Gop\": 2\n },\n \"LayoutParams\": {\n \"PureAudioHoldPlaceMode\": 0,\n \"MixLayoutMode\": 4,\n \"MixLayoutList\": [\n {\n \"LocationX\": 0,\n \"LocationY\": 0,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"195044\",\n \"UserId\": \"Trtc_User_0\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 360,\n \"ImageWidth\": 640,\n \"RenderMode\": 0\n },\n {\n \"LocationX\": 640,\n \"LocationY\": 0,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"195044\",\n \"UserId\": \"Trtc_User_1\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 360,\n \"ImageWidth\": 640,\n \"RenderMode\": 0\n },\n {\n \"LocationX\": 0,\n \"LocationY\": 360,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"195044\",\n \"UserId\": \"Trtc_User_2\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 360,\n \"ImageWidth\": 640,\n \"RenderMode\": 0\n },\n {\n \"LocationX\": 640,\n \"LocationY\": 360,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"195044\",\n \"UserId\": \"Trtc_User_3\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 360,\n \"ImageWidth\": 640,\n \"RenderMode\": 0\n }\n ]\n },\n \"BackGroundColor\": \"0xFF0000\",\n \"WaterMarkList\": [\n {\n \"WaterMarkType\": 0,\n \"WaterMarkImage\": {\n \"LocationX\": 64,\n \"LocationY\": 64,\n \"WaterMarkHeight\": 64,\n \"WaterMarkWidth\": 64,\n \"WaterMarkUrl\": \"https://xkt-course-1304449343.cos.ap-beijing.myqcloud.com/test/mark/37f9eb62-ca72-430e-bfca-e700b59b20e0.png\",\n \"ZOrder\": 3\n }\n }\n ]\n },\n \"PublishCdnParams\": [\n {\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test1\",\n \"IsTencentCdn\": 0\n },\n {\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test2\",\n \"IsTencentCdn\": 0\n }\n ],\n \"RoomIdType\": 0,\n \"SdkAppId\": 1400188366,\n \"WithTranscoding\": 1,\n \"RoomId\": \"195044\"\n}",
263
263
  "output": "{\n \"Response\": {\n \"TaskId\": \"-m97l2ZU7vxyBSmXYsRx1Xy9Kf4bVVfbbhSKC4K-4pycoZWKv542xbi139uTvGt1zAHoAQ..\",\n \"RequestId\": \"b934c535-8d82-4f52-bd52-a1cbb043c4be\"\n }\n}",
264
264
  "title": "发起混流转推"
265
265
  },
266
266
  {
267
- "document": "",
267
+ "document": "",
268
268
  "input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<公共请求参数>\n\n{\n \"AudioParams\": {\n \"AudioEncode\": {\n \"SampleRate\": 48000,\n \"Codec\": 0,\n \"BitRate\": 64,\n \"Channel\": 2\n }\n },\n \"AgentParams\": {\n \"MaxIdleTime\": 30,\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"VideoParams\": {\n \"VideoEncode\": {\n \"Height\": 720,\n \"Width\": 1280,\n \"Fps\": 15,\n \"BitRate\": 512,\n \"Gop\": 2\n }\n },\n \"SingleSubscribeParams\": {\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"195044\",\n \"UserId\": \"Trtc_User_0\"\n }\n }\n },\n \"PublishCdnParams\": [\n {\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test1\",\n \"IsTencentCdn\": 0\n }\n ],\n \"RoomIdType\": 0,\n \"SdkAppId\": 1400188366,\n \"WithTranscoding\": 0,\n \"RoomId\": \"195044\"\n}",
269
269
  "output": "{\n \"Response\": {\n \"TaskId\": \"-m97l2ZU7tq6nEsHR89259B8aCDblqnbGhWKC4K-4pycoZWpyHnld1jC9aCD+EU7V8WRAQ..\",\n \"RequestId\": \"f23d95bf-ddaf-4d0c-86c0-6bf50c74c0a0\"\n }\n}",
270
270
  "title": "发起单流音视频旁路转推"
271
271
  },
272
272
  {
273
- "document": "",
273
+ "document": "",
274
274
  "input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<公共请求参数>\n\n{\n \"AudioParams\": {\n \"AudioEncode\": {\n \"SampleRate\": 48000,\n \"Codec\": 0,\n \"BitRate\": 64,\n \"Channel\": 2\n }\n },\n \"AgentParams\": {\n \"MaxIdleTime\": 30,\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"SingleSubscribeParams\": {\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"195044\",\n \"UserId\": \"Trtc_User_0\"\n }\n }\n },\n \"PublishCdnParams\": [\n {\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test1\",\n \"IsTencentCdn\": 0\n }\n ],\n \"RoomIdType\": 0,\n \"SdkAppId\": 1400188366,\n \"WithTranscoding\": 0,\n \"RoomId\": \"195044\"\n}",
275
275
  "output": "{\n \"Response\": {\n \"TaskId\": \"-m97l2ZU7r57nZBesMa84KgzxhH0OBbbCRaKC4K-4pycoZW7yFPtusNuZOen1Ca0qtQQAQ..\",\n \"RequestId\": \"ef089f8b-d0d1-4131-894d-4edd68d61605\"\n }\n}",
276
276
  "title": "发起单流纯音频旁路转推"
277
277
  },
278
278
  {
279
- "document": "",
280
- "input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<公共请求参数>\n\n{\n \"AudioParams\": {\n \"SubscribeAudioList\": [\n {\n \"UserInfo\": {\n \"RoomIdType\": \"0\",\n \"RoomId\": \"295066\",\n \"UserId\": \"57906\"\n }\n }\n ],\n \"AudioEncode\": {\n \"SampleRate\": \"48000\",\n \"Codec\": \"0\",\n \"BitRate\": \"64\",\n \"Channel\": \"2\"\n }\n },\n \"AgentParams\": {\n \"MaxIdleTime\": \"10\",\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"VideoParams\": {\n \"VideoEncode\": {\n \"Height\": \"720\",\n \"Width\": \"1280\",\n \"Fps\": \"15\",\n \"BitRate\": \"512\",\n \"Gop\": \"2\"\n },\n \"LayoutParams\": {\n \"MixLayoutMode\": \"4\",\n \"MixLayoutList\": [\n {\n \"LocationX\": \"0\",\n \"LocationY\": \"0\",\n \"UserMediaStream\": {\n \"StreamType\": \"0\",\n \"UserInfo\": {\n \"RoomIdType\": \"0\",\n \"RoomId\": \"295066\",\n \"UserId\": \"57906\"\n }\n },\n \"ZOrder\": \"0\",\n \"ImageHeight\": \"0\",\n \"ImageWidth\": \"0\",\n \"RenderMode\": \"0\"\n }\n ]\n }\n },\n \"PublishCdnParams\": [\n {\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/1400188366_owen_main_1\"\n }\n ],\n \"RoomIdType\": \"0\",\n \"SdkAppId\": \"1400188366\",\n \"WithTranscoding\": \"1\",\n \"RoomId\": \"295066\"\n}",
279
+ "document": "",
280
+ "input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<公共请求参数>\n\n{\n \"AudioParams\": {\n \"SubscribeAudioList\": [\n {\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"57906\"\n }\n }\n ],\n \"AudioEncode\": {\n \"SampleRate\": 48000,\n \"Codec\": 0,\n \"BitRate\": 64,\n \"Channel\": 2\n }\n },\n \"AgentParams\": {\n \"MaxIdleTime\": 10,\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"VideoParams\": {\n \"VideoEncode\": {\n \"Height\": 720,\n \"Width\": 1280,\n \"Fps\": 15,\n \"BitRate\": 512,\n \"Gop\": 2\n },\n \"LayoutParams\": {\n \"MixLayoutMode\": 4,\n \"MixLayoutList\": [\n {\n \"LocationX\": 0,\n \"LocationY\": 0,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"57906\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 0,\n \"ImageWidth\": 0,\n \"RenderMode\": 0\n }\n ]\n }\n },\n \"PublishCdnParams\": [\n {\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/1400188366_owen_main_1\"\n }\n ],\n \"RoomIdType\": 0,\n \"SdkAppId\": 1400188366,\n \"WithTranscoding\": 1,\n \"RoomId\": \"295066\"\n}",
281
281
  "output": "{\n \"Response\": {\n \"TaskId\": \"-m9liFNU7m+nWPL+icY53kcSoQ+-czzbEhD2AYK-4pycoZXmj3cMGzreW5xwhHTpcPRNAQ..\",\n \"RequestId\": \"6774662b-64a0-4aec-8389-0513873585b4\"\n }\n}",
282
282
  "title": "音视频上行,只混纯音频,和透传上行SEI"
283
283
  },
284
284
  {
285
- "document": "",
286
- "input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<公共请求参数>\n\n{\n \"AudioParams\": {\n \"AudioEncode\": {\n \"SampleRate\": \"48000\",\n \"Codec\": \"0\",\n \"BitRate\": \"64\",\n \"Channel\": \"2\"\n }\n },\n \"AgentParams\": {\n \"MaxIdleTime\": \"10\",\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"VideoParams\": {\n \"VideoEncode\": {\n \"Height\": \"720\",\n \"Width\": \"1280\",\n \"Fps\": \"15\",\n \"BitRate\": \"512\",\n \"Gop\": \"2\"\n },\n \"LayoutParams\": {\n \"MixLayoutMode\": \"4\",\n \"MixLayoutList\": [\n {\n \"LocationX\": \"0\",\n \"LocationY\": \"0\",\n \"UserMediaStream\": {\n \"StreamType\": \"0\",\n \"UserInfo\": {\n \"RoomIdType\": \"0\",\n \"RoomId\": \"295066\",\n \"UserId\": \"57906\"\n }\n },\n \"ZOrder\": \"0\",\n \"ImageHeight\": \"640\",\n \"ImageWidth\": \"1280\",\n \"RenderMode\": \"0\"\n }\n ]\n }\n },\n \"PublishCdnParams\": [\n {\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/1400188366_owen_main_1\"\n }\n ],\n \"RoomIdType\": \"0\",\n \"SdkAppId\": \"1400188366\",\n \"WithTranscoding\": \"1\",\n \"RoomId\": \"295066\"\n}",
285
+ "document": "",
286
+ "input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartPublishCdnStream\n<公共请求参数>\n\n{\n \"AudioParams\": {\n \"AudioEncode\": {\n \"SampleRate\": 48000,\n \"Codec\": 0,\n \"BitRate\": 64,\n \"Channel\": 2\n }\n },\n \"AgentParams\": {\n \"MaxIdleTime\": 10,\n \"UserSig\": \"eJw1zV8LgjAUBfCvInsO2dStGfQSQUb2pFJvsnLJJZW1LekPffdc6X08v8O5b5Snmd9LjRYeCnyMZt4vgUp2Fi7wB6vtuVRC207q0kpjSzIVTXUVSkE11EiEMeE8ZGw0*VCg5SCcDeRuBAutiwkLeRRwOo*nMajduy5O*gIaus9qel9vX*lJbHJmyDMxuKFFI27tsT*I1S6pl*jzBb*IOTE_\",\n \"UserId\": \"trtc_partner_test_1\"\n },\n \"VideoParams\": {\n \"VideoEncode\": {\n \"Height\": 720,\n \"Width\": 1280,\n \"Fps\": 15,\n \"BitRate\": 512,\n \"Gop\": 2\n },\n \"LayoutParams\": {\n \"MixLayoutMode\": 4,\n \"MixLayoutList\": [\n {\n \"LocationX\": 0,\n \"LocationY\": 0,\n \"UserMediaStream\": {\n \"StreamType\": 0,\n \"UserInfo\": {\n \"RoomIdType\": 0,\n \"RoomId\": \"295066\",\n \"UserId\": \"57906\"\n }\n },\n \"ZOrder\": 0,\n \"ImageHeight\": 640,\n \"ImageWidth\": 1280,\n \"RenderMode\": 0\n }\n ]\n }\n },\n \"PublishCdnParams\": [\n {\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/1400188366_owen_main_1\"\n }\n ],\n \"RoomIdType\": 0,\n \"SdkAppId\": 1400188366,\n \"WithTranscoding\": 1,\n \"RoomId\": \"295066\"\n}",
287
287
  "output": "{\n \"Response\": {\n \"TaskId\": \"-m9liFNU7qjpXnrk6cloz8KXukyLKjzbLhP2AYK-4pycoZVbtyt6U21l9vJOqqeIfwR5AQ..\",\n \"RequestId\": \"97dae8e4-4778-45c8-9abe-cdce33c1a450\"\n }\n}",
288
288
  "title": "混一个人的音视频,和房间所有人的声音"
289
289
  }
@@ -320,7 +320,7 @@
320
320
  "title": "更新混音和布局参数"
321
321
  },
322
322
  {
323
- "document": "",
323
+ "document": "",
324
324
  "input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdatePublishCdnStream\n<公共请求参数>\n\n{\n \"SdkAppId\": 1400188366,\n \"TaskId\": \"-m97l2ZU7kOlV5cTRMoU6yoGp2nDYkzbJ13EC4K-4pycoZXVv+XVrNoUXQ8++8Z2PwUlAQ..\",\n \"SequenceNumber\": 20,\n \"WithTranscoding\": 1,\n \"PublishCdnParams\": [\n {\n \"IsTencentCdn\": 1,\n \"PublishCdnUrl\": \"rtmp://3891.livepush.myqcloud.com/live/trtc_publishcdn_test2?bizid=3891&txSecret=23aeb6ec16fd275af0d00a447b2282f7&txTime=62635BDE\"\n }\n ]\n}",
325
325
  "output": "{\n \"Response\": {\n \"RequestId\": \"71993312-6ab8-4768-9124-118e0a20c45f\",\n \"TaskId\": \"xxxx\"\n }\n}",
326
326
  "title": "更新转推参数"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tccli
3
- Version: 3.0.846.1
3
+ Version: 3.0.847.1
4
4
  Summary: Universal Command Line Environment for Tencent Cloud
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-cli.git
6
6
  Author: Tencent Cloud
@@ -21,7 +21,7 @@ Classifier: Programming Language :: Python :: 3.3
21
21
  Classifier: Programming Language :: Python :: 3.4
22
22
  Classifier: Programming Language :: Python :: 3.5
23
23
  Classifier: Programming Language :: Python :: 3.6
24
- Requires-Dist: tencentcloud-sdk-python (>=3.0.846)
24
+ Requires-Dist: tencentcloud-sdk-python (>=3.0.847)
25
25
  Requires-Dist: jmespath (==0.10.0)
26
26
  Requires-Dist: six (==1.16.0)
27
27