tencentcloud-sdk-python-trtc 3.0.1036__tar.gz → 3.0.1046__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (16) hide show
  1. {tencentcloud-sdk-python-trtc-3.0.1036 → tencentcloud-sdk-python-trtc-3.0.1046}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-trtc-3.0.1036 → tencentcloud-sdk-python-trtc-3.0.1046}/setup.py +1 -1
  3. {tencentcloud-sdk-python-trtc-3.0.1036 → tencentcloud-sdk-python-trtc-3.0.1046}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-trtc-3.0.1036 → tencentcloud-sdk-python-trtc-3.0.1046}/tencentcloud/trtc/v20190722/errorcodes.py +12 -0
  5. {tencentcloud-sdk-python-trtc-3.0.1036 → tencentcloud-sdk-python-trtc-3.0.1046}/tencentcloud/trtc/v20190722/models.py +494 -0
  6. {tencentcloud-sdk-python-trtc-3.0.1036 → tencentcloud-sdk-python-trtc-3.0.1046}/tencentcloud/trtc/v20190722/trtc_client.py +69 -0
  7. {tencentcloud-sdk-python-trtc-3.0.1036 → tencentcloud-sdk-python-trtc-3.0.1046}/tencentcloud_sdk_python_trtc.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-trtc-3.0.1046/tencentcloud_sdk_python_trtc.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-trtc-3.0.1036/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-trtc-3.0.1036 → tencentcloud-sdk-python-trtc-3.0.1046}/README.rst +0 -0
  11. {tencentcloud-sdk-python-trtc-3.0.1036 → tencentcloud-sdk-python-trtc-3.0.1046}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-trtc-3.0.1036 → tencentcloud-sdk-python-trtc-3.0.1046}/tencentcloud/trtc/__init__.py +0 -0
  13. {tencentcloud-sdk-python-trtc-3.0.1036 → tencentcloud-sdk-python-trtc-3.0.1046}/tencentcloud/trtc/v20190722/__init__.py +0 -0
  14. {tencentcloud-sdk-python-trtc-3.0.1036 → tencentcloud-sdk-python-trtc-3.0.1046}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-trtc-3.0.1036 → tencentcloud-sdk-python-trtc-3.0.1046}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-trtc-3.0.1036 → tencentcloud-sdk-python-trtc-3.0.1046}/tencentcloud_sdk_python_trtc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-trtc
3
- Version: 3.0.1036
3
+ Version: 3.0.1046
4
4
  Summary: Tencent Cloud Trtc SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-trtc',
11
- install_requires=["tencentcloud-sdk-python-common==3.0.1036"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1046"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Trtc SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1036'
17
+ __version__ = '3.0.1046'
@@ -35,6 +35,9 @@ FAILEDOPERATION_CRUNSUPPORTMETHOD = 'FailedOperation.CRUnsupportMethod'
35
35
  # 房间中没有设置混流模板。
36
36
  FAILEDOPERATION_MIXSESSIONNOTEXIST = 'FailedOperation.MixSessionNotExist'
37
37
 
38
+ # 查询任务失败
39
+ FAILEDOPERATION_QUERYTASKINFOFAILED = 'FailedOperation.QueryTaskInfoFailed'
40
+
38
41
  # 云API混流模板和SDK混流冲突。
39
42
  FAILEDOPERATION_REQUESTREJECTION = 'FailedOperation.RequestRejection'
40
43
 
@@ -47,6 +50,9 @@ FAILEDOPERATION_ROOMNOTEXIST = 'FailedOperation.RoomNotExist'
47
50
  # 应用ID不存在。
48
51
  FAILEDOPERATION_SDKAPPIDNOTEXIST = 'FailedOperation.SdkAppIdNotExist'
49
52
 
53
+ # 任务已存在
54
+ FAILEDOPERATION_TASKEXIST = 'FailedOperation.TaskExist'
55
+
50
56
  # 调用接口时任务已结束。
51
57
  FAILEDOPERATION_TASKFINISHED = 'FailedOperation.TaskFinished'
52
58
 
@@ -71,6 +77,9 @@ INTERNALERROR_GETROOMFROMCACHEERROR = 'InternalError.GetRoomFromCacheError'
71
77
  # http请求解析失败。
72
78
  INTERNALERROR_HTTPPARASEFALIED = 'InternalError.HttpParaseFalied'
73
79
 
80
+ # http请求解析失败。
81
+ INTERNALERROR_HTTPPARSEFAILED = 'InternalError.HttpParseFailed'
82
+
74
83
  # 接口错误。
75
84
  INTERNALERROR_INTERFACEERR = 'InternalError.InterfaceErr'
76
85
 
@@ -179,6 +188,9 @@ INVALIDPARAMETER_STRROOMID = 'InvalidParameter.StrRoomId'
179
188
  # StreamId参数错误。
180
189
  INVALIDPARAMETER_STREAMID = 'InvalidParameter.StreamId'
181
190
 
191
+ # TaskId 参数错误。
192
+ INVALIDPARAMETER_TASKID = 'InvalidParameter.TaskId'
193
+
182
194
  # Url解析参数失败。
183
195
  INVALIDPARAMETER_URLPARAMSERROR = 'InvalidParameter.UrlParamsError'
184
196
 
@@ -276,6 +276,63 @@ class AudioEncode(AbstractModel):
276
276
 
277
277
 
278
278
 
279
+ class AudioEncodeParams(AbstractModel):
280
+ """音频转码参数
281
+
282
+ """
283
+
284
+ def __init__(self):
285
+ r"""
286
+ :param _SampleRate: 音频采样率,取值为[48000, 44100],单位是Hz。
287
+ :type SampleRate: int
288
+ :param _Channel: 音频声道数,取值范围[1,2],1表示音频为单声道,2表示音频为双声道。
289
+ :type Channel: int
290
+ :param _BitRate: 音频码率,取值范围[8,500],单位为kbps。
291
+ :type BitRate: int
292
+ """
293
+ self._SampleRate = None
294
+ self._Channel = None
295
+ self._BitRate = None
296
+
297
+ @property
298
+ def SampleRate(self):
299
+ return self._SampleRate
300
+
301
+ @SampleRate.setter
302
+ def SampleRate(self, SampleRate):
303
+ self._SampleRate = SampleRate
304
+
305
+ @property
306
+ def Channel(self):
307
+ return self._Channel
308
+
309
+ @Channel.setter
310
+ def Channel(self, Channel):
311
+ self._Channel = Channel
312
+
313
+ @property
314
+ def BitRate(self):
315
+ return self._BitRate
316
+
317
+ @BitRate.setter
318
+ def BitRate(self, BitRate):
319
+ self._BitRate = BitRate
320
+
321
+
322
+ def _deserialize(self, params):
323
+ self._SampleRate = params.get("SampleRate")
324
+ self._Channel = params.get("Channel")
325
+ self._BitRate = params.get("BitRate")
326
+ memeber_set = set(params.keys())
327
+ for name, value in vars(self).items():
328
+ property_name = name[1:]
329
+ if property_name in memeber_set:
330
+ memeber_set.remove(property_name)
331
+ if len(memeber_set) > 0:
332
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
333
+
334
+
335
+
279
336
  class AudioParams(AbstractModel):
280
337
  """录制音频转码参数。
281
338
 
@@ -2126,6 +2183,91 @@ class DescribeScaleInfoResponse(AbstractModel):
2126
2183
  self._RequestId = params.get("RequestId")
2127
2184
 
2128
2185
 
2186
+ class DescribeStreamIngestRequest(AbstractModel):
2187
+ """DescribeStreamIngest请求参数结构体
2188
+
2189
+ """
2190
+
2191
+ def __init__(self):
2192
+ r"""
2193
+ :param _SdkAppId: TRTC的SDKAppId,和任务的房间所对应的SDKAppId相同
2194
+ :type SdkAppId: int
2195
+ :param _TaskId: 任务的唯一Id,在启动任务成功后会返回。
2196
+ :type TaskId: str
2197
+ """
2198
+ self._SdkAppId = None
2199
+ self._TaskId = None
2200
+
2201
+ @property
2202
+ def SdkAppId(self):
2203
+ return self._SdkAppId
2204
+
2205
+ @SdkAppId.setter
2206
+ def SdkAppId(self, SdkAppId):
2207
+ self._SdkAppId = SdkAppId
2208
+
2209
+ @property
2210
+ def TaskId(self):
2211
+ return self._TaskId
2212
+
2213
+ @TaskId.setter
2214
+ def TaskId(self, TaskId):
2215
+ self._TaskId = TaskId
2216
+
2217
+
2218
+ def _deserialize(self, params):
2219
+ self._SdkAppId = params.get("SdkAppId")
2220
+ self._TaskId = params.get("TaskId")
2221
+ memeber_set = set(params.keys())
2222
+ for name, value in vars(self).items():
2223
+ property_name = name[1:]
2224
+ if property_name in memeber_set:
2225
+ memeber_set.remove(property_name)
2226
+ if len(memeber_set) > 0:
2227
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2228
+
2229
+
2230
+
2231
+ class DescribeStreamIngestResponse(AbstractModel):
2232
+ """DescribeStreamIngest返回参数结构体
2233
+
2234
+ """
2235
+
2236
+ def __init__(self):
2237
+ r"""
2238
+ :param _Status: 任务的状态信息。
2239
+ InProgress:表示当前任务正在进行中。
2240
+ NotExist:表示当前任务不存在。
2241
+ 示例值:InProgress
2242
+ :type Status: str
2243
+ :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2244
+ :type RequestId: str
2245
+ """
2246
+ self._Status = None
2247
+ self._RequestId = None
2248
+
2249
+ @property
2250
+ def Status(self):
2251
+ return self._Status
2252
+
2253
+ @Status.setter
2254
+ def Status(self, Status):
2255
+ self._Status = Status
2256
+
2257
+ @property
2258
+ def RequestId(self):
2259
+ return self._RequestId
2260
+
2261
+ @RequestId.setter
2262
+ def RequestId(self, RequestId):
2263
+ self._RequestId = RequestId
2264
+
2265
+
2266
+ def _deserialize(self, params):
2267
+ self._Status = params.get("Status")
2268
+ self._RequestId = params.get("RequestId")
2269
+
2270
+
2129
2271
  class DescribeTRTCMarketQualityDataRequest(AbstractModel):
2130
2272
  """DescribeTRTCMarketQualityData请求参数结构体
2131
2273
 
@@ -8092,6 +8234,179 @@ class StartPublishCdnStreamResponse(AbstractModel):
8092
8234
  self._RequestId = params.get("RequestId")
8093
8235
 
8094
8236
 
8237
+ class StartStreamIngestRequest(AbstractModel):
8238
+ """StartStreamIngest请求参数结构体
8239
+
8240
+ """
8241
+
8242
+ def __init__(self):
8243
+ r"""
8244
+ :param _SdkAppId: TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和录制的房间所对应的SdkAppId相同。
8245
+ :type SdkAppId: int
8246
+ :param _RoomId: TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),录制的TRTC房间所对应的RoomId。
8247
+ :type RoomId: str
8248
+ :param _RoomIdType: TRTC房间号的类型。
8249
+ 【*注意】必须和录制的房间所对应的RoomId类型相同:
8250
+ 0: 字符串类型的RoomId
8251
+ 1: 32位整型的RoomId(默认)
8252
+ :type RoomIdType: int
8253
+ :param _UserId: 拉流转推机器人的UserId,用于进房发起拉流转推任务。
8254
+ :type UserId: str
8255
+ :param _UserSig: 拉流转推机器人UserId对应的校验签名,即UserId和UserSig相当于机器人进房的登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
8256
+ :type UserSig: str
8257
+ :param _SourceUrl: 源流URL。示例值:https://a.b/test.mp4
8258
+ :type SourceUrl: list of str
8259
+ :param _PrivateMapKey: TRTC房间权限加密串,只有在TRTC控制台启用了高级权限控制的时候需要携带,在TRTC控制台如果开启高级权限控制后,TRTC 的后台服务系统会校验一个叫做 [PrivateMapKey] 的“权限票据”,权限票据中包含了一个加密后的 RoomId 和一个加密后的“权限位列表”。由于 PrivateMapKey 中包含 RoomId,所以只提供了 UserSig 没有提供 PrivateMapKey 时,并不能进入指定的房间。
8260
+ :type PrivateMapKey: str
8261
+ :param _VideoEncodeParams: 视频编码参数。可选,如果不填,保持原始流的参数。
8262
+ :type VideoEncodeParams: :class:`tencentcloud.trtc.v20190722.models.VideoEncodeParams`
8263
+ :param _AudioEncodeParams: 音频编码参数。可选,如果不填,保持原始流的参数。
8264
+ :type AudioEncodeParams: :class:`tencentcloud.trtc.v20190722.models.AudioEncodeParams`
8265
+ """
8266
+ self._SdkAppId = None
8267
+ self._RoomId = None
8268
+ self._RoomIdType = None
8269
+ self._UserId = None
8270
+ self._UserSig = None
8271
+ self._SourceUrl = None
8272
+ self._PrivateMapKey = None
8273
+ self._VideoEncodeParams = None
8274
+ self._AudioEncodeParams = None
8275
+
8276
+ @property
8277
+ def SdkAppId(self):
8278
+ return self._SdkAppId
8279
+
8280
+ @SdkAppId.setter
8281
+ def SdkAppId(self, SdkAppId):
8282
+ self._SdkAppId = SdkAppId
8283
+
8284
+ @property
8285
+ def RoomId(self):
8286
+ return self._RoomId
8287
+
8288
+ @RoomId.setter
8289
+ def RoomId(self, RoomId):
8290
+ self._RoomId = RoomId
8291
+
8292
+ @property
8293
+ def RoomIdType(self):
8294
+ return self._RoomIdType
8295
+
8296
+ @RoomIdType.setter
8297
+ def RoomIdType(self, RoomIdType):
8298
+ self._RoomIdType = RoomIdType
8299
+
8300
+ @property
8301
+ def UserId(self):
8302
+ return self._UserId
8303
+
8304
+ @UserId.setter
8305
+ def UserId(self, UserId):
8306
+ self._UserId = UserId
8307
+
8308
+ @property
8309
+ def UserSig(self):
8310
+ return self._UserSig
8311
+
8312
+ @UserSig.setter
8313
+ def UserSig(self, UserSig):
8314
+ self._UserSig = UserSig
8315
+
8316
+ @property
8317
+ def SourceUrl(self):
8318
+ return self._SourceUrl
8319
+
8320
+ @SourceUrl.setter
8321
+ def SourceUrl(self, SourceUrl):
8322
+ self._SourceUrl = SourceUrl
8323
+
8324
+ @property
8325
+ def PrivateMapKey(self):
8326
+ return self._PrivateMapKey
8327
+
8328
+ @PrivateMapKey.setter
8329
+ def PrivateMapKey(self, PrivateMapKey):
8330
+ self._PrivateMapKey = PrivateMapKey
8331
+
8332
+ @property
8333
+ def VideoEncodeParams(self):
8334
+ return self._VideoEncodeParams
8335
+
8336
+ @VideoEncodeParams.setter
8337
+ def VideoEncodeParams(self, VideoEncodeParams):
8338
+ self._VideoEncodeParams = VideoEncodeParams
8339
+
8340
+ @property
8341
+ def AudioEncodeParams(self):
8342
+ return self._AudioEncodeParams
8343
+
8344
+ @AudioEncodeParams.setter
8345
+ def AudioEncodeParams(self, AudioEncodeParams):
8346
+ self._AudioEncodeParams = AudioEncodeParams
8347
+
8348
+
8349
+ def _deserialize(self, params):
8350
+ self._SdkAppId = params.get("SdkAppId")
8351
+ self._RoomId = params.get("RoomId")
8352
+ self._RoomIdType = params.get("RoomIdType")
8353
+ self._UserId = params.get("UserId")
8354
+ self._UserSig = params.get("UserSig")
8355
+ self._SourceUrl = params.get("SourceUrl")
8356
+ self._PrivateMapKey = params.get("PrivateMapKey")
8357
+ if params.get("VideoEncodeParams") is not None:
8358
+ self._VideoEncodeParams = VideoEncodeParams()
8359
+ self._VideoEncodeParams._deserialize(params.get("VideoEncodeParams"))
8360
+ if params.get("AudioEncodeParams") is not None:
8361
+ self._AudioEncodeParams = AudioEncodeParams()
8362
+ self._AudioEncodeParams._deserialize(params.get("AudioEncodeParams"))
8363
+ memeber_set = set(params.keys())
8364
+ for name, value in vars(self).items():
8365
+ property_name = name[1:]
8366
+ if property_name in memeber_set:
8367
+ memeber_set.remove(property_name)
8368
+ if len(memeber_set) > 0:
8369
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
8370
+
8371
+
8372
+
8373
+ class StartStreamIngestResponse(AbstractModel):
8374
+ """StartStreamIngest返回参数结构体
8375
+
8376
+ """
8377
+
8378
+ def __init__(self):
8379
+ r"""
8380
+ :param _TaskId: 拉流转推的任务 ID。任务 ID 是对一次拉流转推生命周期过程的唯一标识,结束任务时会失去意义。任务 ID 需要业务保存下来,作为下次针对这个任务操作的参数。
8381
+ :type TaskId: str
8382
+ :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8383
+ :type RequestId: str
8384
+ """
8385
+ self._TaskId = None
8386
+ self._RequestId = None
8387
+
8388
+ @property
8389
+ def TaskId(self):
8390
+ return self._TaskId
8391
+
8392
+ @TaskId.setter
8393
+ def TaskId(self, TaskId):
8394
+ self._TaskId = TaskId
8395
+
8396
+ @property
8397
+ def RequestId(self):
8398
+ return self._RequestId
8399
+
8400
+ @RequestId.setter
8401
+ def RequestId(self, RequestId):
8402
+ self._RequestId = RequestId
8403
+
8404
+
8405
+ def _deserialize(self, params):
8406
+ self._TaskId = params.get("TaskId")
8407
+ self._RequestId = params.get("RequestId")
8408
+
8409
+
8095
8410
  class StopMCUMixTranscodeByStrRoomIdRequest(AbstractModel):
8096
8411
  """StopMCUMixTranscodeByStrRoomId请求参数结构体
8097
8412
 
@@ -8314,6 +8629,76 @@ class StopPublishCdnStreamResponse(AbstractModel):
8314
8629
  self._RequestId = params.get("RequestId")
8315
8630
 
8316
8631
 
8632
+ class StopStreamIngestRequest(AbstractModel):
8633
+ """StopStreamIngest请求参数结构体
8634
+
8635
+ """
8636
+
8637
+ def __init__(self):
8638
+ r"""
8639
+ :param _SdkAppId: TRTC的SDKAppId,和任务的房间所对应的SDKAppId相同。
8640
+ :type SdkAppId: int
8641
+ :param _TaskId: 任务的唯一Id,在启动任务成功后会返回。
8642
+ :type TaskId: str
8643
+ """
8644
+ self._SdkAppId = None
8645
+ self._TaskId = None
8646
+
8647
+ @property
8648
+ def SdkAppId(self):
8649
+ return self._SdkAppId
8650
+
8651
+ @SdkAppId.setter
8652
+ def SdkAppId(self, SdkAppId):
8653
+ self._SdkAppId = SdkAppId
8654
+
8655
+ @property
8656
+ def TaskId(self):
8657
+ return self._TaskId
8658
+
8659
+ @TaskId.setter
8660
+ def TaskId(self, TaskId):
8661
+ self._TaskId = TaskId
8662
+
8663
+
8664
+ def _deserialize(self, params):
8665
+ self._SdkAppId = params.get("SdkAppId")
8666
+ self._TaskId = params.get("TaskId")
8667
+ memeber_set = set(params.keys())
8668
+ for name, value in vars(self).items():
8669
+ property_name = name[1:]
8670
+ if property_name in memeber_set:
8671
+ memeber_set.remove(property_name)
8672
+ if len(memeber_set) > 0:
8673
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
8674
+
8675
+
8676
+
8677
+ class StopStreamIngestResponse(AbstractModel):
8678
+ """StopStreamIngest返回参数结构体
8679
+
8680
+ """
8681
+
8682
+ def __init__(self):
8683
+ r"""
8684
+ :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8685
+ :type RequestId: str
8686
+ """
8687
+ self._RequestId = None
8688
+
8689
+ @property
8690
+ def RequestId(self):
8691
+ return self._RequestId
8692
+
8693
+ @RequestId.setter
8694
+ def RequestId(self, RequestId):
8695
+ self._RequestId = RequestId
8696
+
8697
+
8698
+ def _deserialize(self, params):
8699
+ self._RequestId = params.get("RequestId")
8700
+
8701
+
8317
8702
  class StorageFile(AbstractModel):
8318
8703
  """云端录制查询接口,录制文件的信息
8319
8704
 
@@ -9298,6 +9683,87 @@ class VideoEncode(AbstractModel):
9298
9683
 
9299
9684
 
9300
9685
 
9686
+ class VideoEncodeParams(AbstractModel):
9687
+ """视频转码参数
9688
+
9689
+ """
9690
+
9691
+ def __init__(self):
9692
+ r"""
9693
+ :param _Width: 宽。取值范围[0,1920],单位为像素值。
9694
+ :type Width: int
9695
+ :param _Height: 高。取值范围[0,1080],单位为像素值。
9696
+ :type Height: int
9697
+ :param _Fps: 帧率。取值范围[1,60],表示帧率可选范围为1到60fps。
9698
+ :type Fps: int
9699
+ :param _BitRate: 码率。取值范围[1,10000],单位为kbps。
9700
+ :type BitRate: int
9701
+ :param _Gop: gop。取值范围[1,2],单位为秒。
9702
+ :type Gop: int
9703
+ """
9704
+ self._Width = None
9705
+ self._Height = None
9706
+ self._Fps = None
9707
+ self._BitRate = None
9708
+ self._Gop = None
9709
+
9710
+ @property
9711
+ def Width(self):
9712
+ return self._Width
9713
+
9714
+ @Width.setter
9715
+ def Width(self, Width):
9716
+ self._Width = Width
9717
+
9718
+ @property
9719
+ def Height(self):
9720
+ return self._Height
9721
+
9722
+ @Height.setter
9723
+ def Height(self, Height):
9724
+ self._Height = Height
9725
+
9726
+ @property
9727
+ def Fps(self):
9728
+ return self._Fps
9729
+
9730
+ @Fps.setter
9731
+ def Fps(self, Fps):
9732
+ self._Fps = Fps
9733
+
9734
+ @property
9735
+ def BitRate(self):
9736
+ return self._BitRate
9737
+
9738
+ @BitRate.setter
9739
+ def BitRate(self, BitRate):
9740
+ self._BitRate = BitRate
9741
+
9742
+ @property
9743
+ def Gop(self):
9744
+ return self._Gop
9745
+
9746
+ @Gop.setter
9747
+ def Gop(self, Gop):
9748
+ self._Gop = Gop
9749
+
9750
+
9751
+ def _deserialize(self, params):
9752
+ self._Width = params.get("Width")
9753
+ self._Height = params.get("Height")
9754
+ self._Fps = params.get("Fps")
9755
+ self._BitRate = params.get("BitRate")
9756
+ self._Gop = params.get("Gop")
9757
+ memeber_set = set(params.keys())
9758
+ for name, value in vars(self).items():
9759
+ property_name = name[1:]
9760
+ if property_name in memeber_set:
9761
+ memeber_set.remove(property_name)
9762
+ if len(memeber_set) > 0:
9763
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
9764
+
9765
+
9766
+
9301
9767
  class VideoParams(AbstractModel):
9302
9768
  """录制视频转码参数。
9303
9769
 
@@ -9477,6 +9943,10 @@ class WaterMarkChar(AbstractModel):
9477
9943
  :type FontColor: str
9478
9944
  :param _BackGroundColor: 水印文字的背景色,为空代表背景透明,默认为空
9479
9945
  :type BackGroundColor: str
9946
+ :param _Font: 文字水印的字体,支持设置以下值:
9947
+ 1. Tencent (默认)
9948
+ 2. SourceHanSans
9949
+ :type Font: str
9480
9950
  """
9481
9951
  self._Top = None
9482
9952
  self._Left = None
@@ -9486,6 +9956,7 @@ class WaterMarkChar(AbstractModel):
9486
9956
  self._FontSize = None
9487
9957
  self._FontColor = None
9488
9958
  self._BackGroundColor = None
9959
+ self._Font = None
9489
9960
 
9490
9961
  @property
9491
9962
  def Top(self):
@@ -9551,6 +10022,14 @@ class WaterMarkChar(AbstractModel):
9551
10022
  def BackGroundColor(self, BackGroundColor):
9552
10023
  self._BackGroundColor = BackGroundColor
9553
10024
 
10025
+ @property
10026
+ def Font(self):
10027
+ return self._Font
10028
+
10029
+ @Font.setter
10030
+ def Font(self, Font):
10031
+ self._Font = Font
10032
+
9554
10033
 
9555
10034
  def _deserialize(self, params):
9556
10035
  self._Top = params.get("Top")
@@ -9561,6 +10040,7 @@ class WaterMarkChar(AbstractModel):
9561
10040
  self._FontSize = params.get("FontSize")
9562
10041
  self._FontColor = params.get("FontColor")
9563
10042
  self._BackGroundColor = params.get("BackGroundColor")
10043
+ self._Font = params.get("Font")
9564
10044
  memeber_set = set(params.keys())
9565
10045
  for name, value in vars(self).items():
9566
10046
  property_name = name[1:]
@@ -9756,9 +10236,14 @@ class WaterMarkTimestamp(AbstractModel):
9756
10236
  :type Pos: int
9757
10237
  :param _TimeZone: 显示时间戳的时区,默认东八区
9758
10238
  :type TimeZone: int
10239
+ :param _Font: 文字水印的字体,支持设置以下值:
10240
+ 1. Tencent (默认)
10241
+ 2. SourceHanSans
10242
+ :type Font: str
9759
10243
  """
9760
10244
  self._Pos = None
9761
10245
  self._TimeZone = None
10246
+ self._Font = None
9762
10247
 
9763
10248
  @property
9764
10249
  def Pos(self):
@@ -9776,10 +10261,19 @@ class WaterMarkTimestamp(AbstractModel):
9776
10261
  def TimeZone(self, TimeZone):
9777
10262
  self._TimeZone = TimeZone
9778
10263
 
10264
+ @property
10265
+ def Font(self):
10266
+ return self._Font
10267
+
10268
+ @Font.setter
10269
+ def Font(self, Font):
10270
+ self._Font = Font
10271
+
9779
10272
 
9780
10273
  def _deserialize(self, params):
9781
10274
  self._Pos = params.get("Pos")
9782
10275
  self._TimeZone = params.get("TimeZone")
10276
+ self._Font = params.get("Font")
9783
10277
  memeber_set = set(params.keys())
9784
10278
  for name, value in vars(self).items():
9785
10279
  property_name = name[1:]
@@ -363,6 +363,29 @@ class TrtcClient(AbstractClient):
363
363
  raise TencentCloudSDKException(type(e).__name__, str(e))
364
364
 
365
365
 
366
+ def DescribeStreamIngest(self, request):
367
+ """您可以查询转推任务的状态。
368
+
369
+ :param request: Request instance for DescribeStreamIngest.
370
+ :type request: :class:`tencentcloud.trtc.v20190722.models.DescribeStreamIngestRequest`
371
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.DescribeStreamIngestResponse`
372
+
373
+ """
374
+ try:
375
+ params = request._serialize()
376
+ headers = request.headers
377
+ body = self.call("DescribeStreamIngest", params, headers=headers)
378
+ response = json.loads(body)
379
+ model = models.DescribeStreamIngestResponse()
380
+ model._deserialize(response["Response"])
381
+ return model
382
+ except Exception as e:
383
+ if isinstance(e, TencentCloudSDKException):
384
+ raise
385
+ else:
386
+ raise TencentCloudSDKException(type(e).__name__, str(e))
387
+
388
+
366
389
  def DescribeTRTCMarketQualityData(self, request):
367
390
  """查询TRTC监控仪表盘-数据大盘质量指标(包括下列指标)
368
391
  joinSuccessRate:加入频道成功率。
@@ -1098,6 +1121,29 @@ class TrtcClient(AbstractClient):
1098
1121
  raise TencentCloudSDKException(type(e).__name__, str(e))
1099
1122
 
1100
1123
 
1124
+ def StartStreamIngest(self, request):
1125
+ """将一个在线媒体流推到TRTC房间。
1126
+
1127
+ :param request: Request instance for StartStreamIngest.
1128
+ :type request: :class:`tencentcloud.trtc.v20190722.models.StartStreamIngestRequest`
1129
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.StartStreamIngestResponse`
1130
+
1131
+ """
1132
+ try:
1133
+ params = request._serialize()
1134
+ headers = request.headers
1135
+ body = self.call("StartStreamIngest", params, headers=headers)
1136
+ response = json.loads(body)
1137
+ model = models.StartStreamIngestResponse()
1138
+ model._deserialize(response["Response"])
1139
+ return model
1140
+ except Exception as e:
1141
+ if isinstance(e, TencentCloudSDKException):
1142
+ raise
1143
+ else:
1144
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1145
+
1146
+
1101
1147
  def StopMCUMixTranscode(self, request):
1102
1148
  """接口说明:结束云端混流
1103
1149
 
@@ -1167,6 +1213,29 @@ class TrtcClient(AbstractClient):
1167
1213
  raise TencentCloudSDKException(type(e).__name__, str(e))
1168
1214
 
1169
1215
 
1216
+ def StopStreamIngest(self, request):
1217
+ """停止一个拉流转推任务。
1218
+
1219
+ :param request: Request instance for StopStreamIngest.
1220
+ :type request: :class:`tencentcloud.trtc.v20190722.models.StopStreamIngestRequest`
1221
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.StopStreamIngestResponse`
1222
+
1223
+ """
1224
+ try:
1225
+ params = request._serialize()
1226
+ headers = request.headers
1227
+ body = self.call("StopStreamIngest", params, headers=headers)
1228
+ response = json.loads(body)
1229
+ model = models.StopStreamIngestResponse()
1230
+ model._deserialize(response["Response"])
1231
+ return model
1232
+ except Exception as e:
1233
+ if isinstance(e, TencentCloudSDKException):
1234
+ raise
1235
+ else:
1236
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1237
+
1238
+
1170
1239
  def UpdatePublishCdnStream(self, request):
1171
1240
  """更新转推任务。
1172
1241
  注:请参见启动转推任务的接口说明和使用说明。
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-trtc
3
- Version: 3.0.1036
3
+ Version: 3.0.1046
4
4
  Summary: Tencent Cloud Trtc SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1046
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1036