tencentcloud-sdk-python-trtc 3.0.1238__tar.gz → 3.0.1259__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.
Potentially problematic release.
This version of tencentcloud-sdk-python-trtc might be problematic. Click here for more details.
- {tencentcloud-sdk-python-trtc-3.0.1238 → tencentcloud-sdk-python-trtc-3.0.1259}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1238 → tencentcloud-sdk-python-trtc-3.0.1259}/setup.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1238 → tencentcloud-sdk-python-trtc-3.0.1259}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1238 → tencentcloud-sdk-python-trtc-3.0.1259}/tencentcloud/trtc/v20190722/models.py +380 -19
- {tencentcloud-sdk-python-trtc-3.0.1238 → tencentcloud-sdk-python-trtc-3.0.1259}/tencentcloud_sdk_python_trtc.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-trtc-3.0.1259/tencentcloud_sdk_python_trtc.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-trtc-3.0.1238/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-trtc-3.0.1238 → tencentcloud-sdk-python-trtc-3.0.1259}/README.rst +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1238 → tencentcloud-sdk-python-trtc-3.0.1259}/setup.cfg +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1238 → tencentcloud-sdk-python-trtc-3.0.1259}/tencentcloud/trtc/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1238 → tencentcloud-sdk-python-trtc-3.0.1259}/tencentcloud/trtc/v20190722/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1238 → tencentcloud-sdk-python-trtc-3.0.1259}/tencentcloud/trtc/v20190722/errorcodes.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1238 → tencentcloud-sdk-python-trtc-3.0.1259}/tencentcloud/trtc/v20190722/trtc_client.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1238 → tencentcloud-sdk-python-trtc-3.0.1259}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1238 → tencentcloud-sdk-python-trtc-3.0.1259}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1238 → tencentcloud-sdk-python-trtc-3.0.1259}/tencentcloud_sdk_python_trtc.egg-info/top_level.txt +0 -0
|
@@ -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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1259"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Trtc SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -158,25 +158,18 @@ class AgentConfig(AbstractModel):
|
|
|
158
158
|
def __init__(self):
|
|
159
159
|
r"""
|
|
160
160
|
:param _UserId: 机器人的UserId,用于进房发起任务。【注意】这个UserId不能与当前房间内的主播观众[UserId](https://cloud.tencent.com/document/product/647/46351#userid)重复。如果一个房间发起多个任务时,机器人的UserId也不能相互重复,否则会中断前一个任务。需要保证机器人UserId在房间内唯一。
|
|
161
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
162
161
|
:type UserId: str
|
|
163
162
|
:param _UserSig: 机器人UserId对应的校验签名,即UserId和UserSig相当于机器人进房的登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
|
|
164
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
165
163
|
:type UserSig: str
|
|
166
164
|
:param _TargetUserId: 机器人拉流的UserId, 填写后,机器人会拉取该UserId的流进行实时处理
|
|
167
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
168
165
|
:type TargetUserId: str
|
|
169
166
|
:param _MaxIdleTime: 房间内超过MaxIdleTime 没有推流,后台自动关闭任务,默认值是60s。
|
|
170
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
171
167
|
:type MaxIdleTime: int
|
|
172
168
|
:param _WelcomeMessage: 机器人的欢迎语
|
|
173
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
174
169
|
:type WelcomeMessage: str
|
|
175
170
|
:param _InterruptMode: 智能打断模式,默认为0,0表示服务端自动打断,1表示服务端不打断,由端上发送打断信令进行打断
|
|
176
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
177
171
|
:type InterruptMode: int
|
|
178
172
|
:param _InterruptSpeechDuration: InterruptMode为0时使用,单位为毫秒,默认为500ms。表示服务端检测到持续InterruptSpeechDuration毫秒的人声则进行打断。
|
|
179
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
180
173
|
:type InterruptSpeechDuration: int
|
|
181
174
|
"""
|
|
182
175
|
self._UserId = None
|
|
@@ -530,26 +523,21 @@ class CloudStorage(AbstractModel):
|
|
|
530
523
|
0:腾讯云对象存储 COS
|
|
531
524
|
1:AWS
|
|
532
525
|
【注意】目前第三方云存储仅支持AWS,更多第三方云存储陆续支持中
|
|
533
|
-
示例值:0
|
|
534
526
|
:type Vendor: int
|
|
535
527
|
:param _Region: 腾讯云对象存储的[地域信息](https://cloud.tencent.com/document/product/436/6224#.E5.9C.B0.E5.9F.9F)。
|
|
536
528
|
示例值:cn-shanghai-1
|
|
537
529
|
|
|
538
530
|
AWS S3[地域信息](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-regions)
|
|
539
|
-
示例值:ap-southeast-3
|
|
540
531
|
:type Region: str
|
|
541
532
|
:param _Bucket: 云存储桶名称。
|
|
542
533
|
:type Bucket: str
|
|
543
534
|
:param _AccessKey: 云存储的access_key账号信息。
|
|
544
535
|
若存储至腾讯云对象存储COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretId值。
|
|
545
|
-
示例值:test-accesskey
|
|
546
536
|
:type AccessKey: str
|
|
547
537
|
:param _SecretKey: 云存储的secret_key账号信息。
|
|
548
538
|
若存储至腾讯云对象存储COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretKey值。
|
|
549
|
-
示例值:test-secretkey
|
|
550
539
|
:type SecretKey: str
|
|
551
540
|
:param _FileNamePrefix: 云存储bucket 的指定位置,由字符串数组组成。合法的字符串范围az,AZ,0~9,'_'和'-',举个例子,录制文件xxx.m3u8在 ["prefix1", "prefix2"]作用下,会变成prefix1/prefix2/TaskId/xxx.m3u8。
|
|
552
|
-
示例值:["prefix1", "prefix2"]
|
|
553
541
|
:type FileNamePrefix: list of str
|
|
554
542
|
"""
|
|
555
543
|
self._Vendor = None
|
|
@@ -5264,6 +5252,41 @@ class McuBackgroundCustomRender(AbstractModel):
|
|
|
5264
5252
|
|
|
5265
5253
|
|
|
5266
5254
|
|
|
5255
|
+
class McuCloudVod(AbstractModel):
|
|
5256
|
+
"""Mcu转推录制,点播相关参数。
|
|
5257
|
+
|
|
5258
|
+
"""
|
|
5259
|
+
|
|
5260
|
+
def __init__(self):
|
|
5261
|
+
r"""
|
|
5262
|
+
:param _McuTencentVod: 腾讯云点播相关参数。
|
|
5263
|
+
:type McuTencentVod: :class:`tencentcloud.trtc.v20190722.models.McuTencentVod`
|
|
5264
|
+
"""
|
|
5265
|
+
self._McuTencentVod = None
|
|
5266
|
+
|
|
5267
|
+
@property
|
|
5268
|
+
def McuTencentVod(self):
|
|
5269
|
+
return self._McuTencentVod
|
|
5270
|
+
|
|
5271
|
+
@McuTencentVod.setter
|
|
5272
|
+
def McuTencentVod(self, McuTencentVod):
|
|
5273
|
+
self._McuTencentVod = McuTencentVod
|
|
5274
|
+
|
|
5275
|
+
|
|
5276
|
+
def _deserialize(self, params):
|
|
5277
|
+
if params.get("McuTencentVod") is not None:
|
|
5278
|
+
self._McuTencentVod = McuTencentVod()
|
|
5279
|
+
self._McuTencentVod._deserialize(params.get("McuTencentVod"))
|
|
5280
|
+
memeber_set = set(params.keys())
|
|
5281
|
+
for name, value in vars(self).items():
|
|
5282
|
+
property_name = name[1:]
|
|
5283
|
+
if property_name in memeber_set:
|
|
5284
|
+
memeber_set.remove(property_name)
|
|
5285
|
+
if len(memeber_set) > 0:
|
|
5286
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5287
|
+
|
|
5288
|
+
|
|
5289
|
+
|
|
5267
5290
|
class McuCustomCrop(AbstractModel):
|
|
5268
5291
|
"""混流自定义裁剪参数
|
|
5269
5292
|
|
|
@@ -5621,11 +5644,11 @@ class McuLayoutParams(AbstractModel):
|
|
|
5621
5644
|
|
|
5622
5645
|
def __init__(self):
|
|
5623
5646
|
r"""
|
|
5624
|
-
:param _MixLayoutMode: 布局模式:动态布局(1:悬浮布局(默认),2:屏幕分享布局,3:九宫格布局),静态布局(4
|
|
5647
|
+
:param _MixLayoutMode: 布局模式:动态布局(1:悬浮布局(默认),2:屏幕分享布局,3:九宫格布局),静态布局(4:自定义布局)。最多支持混入16路音视频流,如果用户只上行音频,也会被算作一路;自定义布局中,如果子画面只设置占位图,也被算作一路。
|
|
5625
5648
|
:type MixLayoutMode: int
|
|
5626
5649
|
:param _PureAudioHoldPlaceMode: 纯音频上行是否占布局位置,只在动态布局中有效。0表示纯音频不占布局位置,1表示纯音频占布局位置,不填默认为0。
|
|
5627
5650
|
:type PureAudioHoldPlaceMode: int
|
|
5628
|
-
:param _MixLayoutList:
|
|
5651
|
+
:param _MixLayoutList: 自定义模板中有效,指定用户视频在混合画面中的位置,最多支持设置16个输入流。
|
|
5629
5652
|
:type MixLayoutList: list of McuLayout
|
|
5630
5653
|
:param _MaxVideoUser: 指定动态布局中悬浮布局和屏幕分享布局的大画面信息,只在悬浮布局和屏幕分享布局有效。
|
|
5631
5654
|
:type MaxVideoUser: :class:`tencentcloud.trtc.v20190722.models.MaxVideoUser`
|
|
@@ -5899,6 +5922,137 @@ class McuPublishCdnParam(AbstractModel):
|
|
|
5899
5922
|
|
|
5900
5923
|
|
|
5901
5924
|
|
|
5925
|
+
class McuRecordParams(AbstractModel):
|
|
5926
|
+
"""转推录制参数
|
|
5927
|
+
|
|
5928
|
+
"""
|
|
5929
|
+
|
|
5930
|
+
def __init__(self):
|
|
5931
|
+
r"""
|
|
5932
|
+
:param _UniRecord: 转推录制模式,
|
|
5933
|
+
0/不填: 暂不支持,行为未定义;
|
|
5934
|
+
1: 不开启录制;
|
|
5935
|
+
2: 开启录制(使用控制台自动录制模板参数,参考:[跳转文档](https://cloud.tencent.com/document/product/647/111748#.E5.BD.95.E5.88.B6.E6.8E.A7.E5.88.B6.E6.96.B9.E6.A1.88));
|
|
5936
|
+
3: 开启录制(使用API指定参数)。
|
|
5937
|
+
:type UniRecord: int
|
|
5938
|
+
:param _RecordKey: 录制任务 key,标识一个录制任务;您可以通过该参数,将多个转推任务录制成一个文件。不指定该参数时,只录制当前转推任务。
|
|
5939
|
+
【限制长度为128字节,只允许包含大小写英文字母(a-zA-Z)、数字(0-9)及下划线(_)和连词符(-)】
|
|
5940
|
+
:type RecordKey: str
|
|
5941
|
+
:param _RecordWaitTime: 【仅当UniRecord=3时此参数有效】
|
|
5942
|
+
续录等待时间,对应录制模板“续录等待时长”,单位:秒。该值需大于等于 5,且小于等于 86400(24小时),默认值为 30。启用续录时,录制任务空闲超过RecordWaitTime的时长,自动结束。
|
|
5943
|
+
:type RecordWaitTime: int
|
|
5944
|
+
:param _RecordFormat: 【仅当UniRecord=3时此参数有效】
|
|
5945
|
+
录制输出文件格式列表,对应录制模板“文件格式”,支持“hls”、"mp4"、"aac"三种格式,默认值为"mp4"。其中"mp4"和"aac"格式,不能同时指定。
|
|
5946
|
+
只录制 mp4格式,示例值:["mp4"]。同时录制mp4 和 HLS 格式,示例值:["mp4","hls"]。
|
|
5947
|
+
:type RecordFormat: list of str
|
|
5948
|
+
:param _MaxMediaFileDuration: 【仅当UniRecord=3时此参数有效】
|
|
5949
|
+
单个文件录制时长,对应录制模板“单个录制文件时长”,单位:分钟。该值需大于等于 1,且小于等于 1440(24小时),默认值为 1440。只对"mp4"或"aac"格式生效。实际单文件录制时长还受单文件大小不超过 2G 限制,超过2G则强制拆分。
|
|
5950
|
+
:type MaxMediaFileDuration: int
|
|
5951
|
+
:param _StreamType: 【仅当UniRecord=3时此参数有效】
|
|
5952
|
+
录制的音视频类型,对应录制模板“录制格式”,0:音视频,1:纯音频,2:纯视频。最终录制文件内容是录制指定类型和转推内容的交集。
|
|
5953
|
+
:type StreamType: int
|
|
5954
|
+
:param _UserDefineRecordPrefix: 录制文件名前缀,不超过64字符。只有存储为vod时生效。
|
|
5955
|
+
【限制长度为64字节,只允许包含大小写英文字母(a-zA-Z)、数字(0-9)及下划线(_)和连词符(-)】
|
|
5956
|
+
:type UserDefineRecordPrefix: str
|
|
5957
|
+
:param _McuStorageParams: 【仅当UniRecord=3时此参数有效】
|
|
5958
|
+
录制文件存储参数,对应控制台“存储位置”及相关参数。目前支持云点播VOD和对象存储COS两种存储方式,只能填写一种。
|
|
5959
|
+
:type McuStorageParams: :class:`tencentcloud.trtc.v20190722.models.McuStorageParams`
|
|
5960
|
+
"""
|
|
5961
|
+
self._UniRecord = None
|
|
5962
|
+
self._RecordKey = None
|
|
5963
|
+
self._RecordWaitTime = None
|
|
5964
|
+
self._RecordFormat = None
|
|
5965
|
+
self._MaxMediaFileDuration = None
|
|
5966
|
+
self._StreamType = None
|
|
5967
|
+
self._UserDefineRecordPrefix = None
|
|
5968
|
+
self._McuStorageParams = None
|
|
5969
|
+
|
|
5970
|
+
@property
|
|
5971
|
+
def UniRecord(self):
|
|
5972
|
+
return self._UniRecord
|
|
5973
|
+
|
|
5974
|
+
@UniRecord.setter
|
|
5975
|
+
def UniRecord(self, UniRecord):
|
|
5976
|
+
self._UniRecord = UniRecord
|
|
5977
|
+
|
|
5978
|
+
@property
|
|
5979
|
+
def RecordKey(self):
|
|
5980
|
+
return self._RecordKey
|
|
5981
|
+
|
|
5982
|
+
@RecordKey.setter
|
|
5983
|
+
def RecordKey(self, RecordKey):
|
|
5984
|
+
self._RecordKey = RecordKey
|
|
5985
|
+
|
|
5986
|
+
@property
|
|
5987
|
+
def RecordWaitTime(self):
|
|
5988
|
+
return self._RecordWaitTime
|
|
5989
|
+
|
|
5990
|
+
@RecordWaitTime.setter
|
|
5991
|
+
def RecordWaitTime(self, RecordWaitTime):
|
|
5992
|
+
self._RecordWaitTime = RecordWaitTime
|
|
5993
|
+
|
|
5994
|
+
@property
|
|
5995
|
+
def RecordFormat(self):
|
|
5996
|
+
return self._RecordFormat
|
|
5997
|
+
|
|
5998
|
+
@RecordFormat.setter
|
|
5999
|
+
def RecordFormat(self, RecordFormat):
|
|
6000
|
+
self._RecordFormat = RecordFormat
|
|
6001
|
+
|
|
6002
|
+
@property
|
|
6003
|
+
def MaxMediaFileDuration(self):
|
|
6004
|
+
return self._MaxMediaFileDuration
|
|
6005
|
+
|
|
6006
|
+
@MaxMediaFileDuration.setter
|
|
6007
|
+
def MaxMediaFileDuration(self, MaxMediaFileDuration):
|
|
6008
|
+
self._MaxMediaFileDuration = MaxMediaFileDuration
|
|
6009
|
+
|
|
6010
|
+
@property
|
|
6011
|
+
def StreamType(self):
|
|
6012
|
+
return self._StreamType
|
|
6013
|
+
|
|
6014
|
+
@StreamType.setter
|
|
6015
|
+
def StreamType(self, StreamType):
|
|
6016
|
+
self._StreamType = StreamType
|
|
6017
|
+
|
|
6018
|
+
@property
|
|
6019
|
+
def UserDefineRecordPrefix(self):
|
|
6020
|
+
return self._UserDefineRecordPrefix
|
|
6021
|
+
|
|
6022
|
+
@UserDefineRecordPrefix.setter
|
|
6023
|
+
def UserDefineRecordPrefix(self, UserDefineRecordPrefix):
|
|
6024
|
+
self._UserDefineRecordPrefix = UserDefineRecordPrefix
|
|
6025
|
+
|
|
6026
|
+
@property
|
|
6027
|
+
def McuStorageParams(self):
|
|
6028
|
+
return self._McuStorageParams
|
|
6029
|
+
|
|
6030
|
+
@McuStorageParams.setter
|
|
6031
|
+
def McuStorageParams(self, McuStorageParams):
|
|
6032
|
+
self._McuStorageParams = McuStorageParams
|
|
6033
|
+
|
|
6034
|
+
|
|
6035
|
+
def _deserialize(self, params):
|
|
6036
|
+
self._UniRecord = params.get("UniRecord")
|
|
6037
|
+
self._RecordKey = params.get("RecordKey")
|
|
6038
|
+
self._RecordWaitTime = params.get("RecordWaitTime")
|
|
6039
|
+
self._RecordFormat = params.get("RecordFormat")
|
|
6040
|
+
self._MaxMediaFileDuration = params.get("MaxMediaFileDuration")
|
|
6041
|
+
self._StreamType = params.get("StreamType")
|
|
6042
|
+
self._UserDefineRecordPrefix = params.get("UserDefineRecordPrefix")
|
|
6043
|
+
if params.get("McuStorageParams") is not None:
|
|
6044
|
+
self._McuStorageParams = McuStorageParams()
|
|
6045
|
+
self._McuStorageParams._deserialize(params.get("McuStorageParams"))
|
|
6046
|
+
memeber_set = set(params.keys())
|
|
6047
|
+
for name, value in vars(self).items():
|
|
6048
|
+
property_name = name[1:]
|
|
6049
|
+
if property_name in memeber_set:
|
|
6050
|
+
memeber_set.remove(property_name)
|
|
6051
|
+
if len(memeber_set) > 0:
|
|
6052
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6053
|
+
|
|
6054
|
+
|
|
6055
|
+
|
|
5902
6056
|
class McuSeiParams(AbstractModel):
|
|
5903
6057
|
"""混流SEI参数
|
|
5904
6058
|
|
|
@@ -5948,6 +6102,161 @@ class McuSeiParams(AbstractModel):
|
|
|
5948
6102
|
|
|
5949
6103
|
|
|
5950
6104
|
|
|
6105
|
+
class McuStorageParams(AbstractModel):
|
|
6106
|
+
"""Mcu转推录制,第三方存储参数。
|
|
6107
|
+
|
|
6108
|
+
"""
|
|
6109
|
+
|
|
6110
|
+
def __init__(self):
|
|
6111
|
+
r"""
|
|
6112
|
+
:param _CloudStorage: 第三方云存储的账号信息(特别说明:若您选择存储至对象存储COS将会收取录制文件投递至COS的费用,详见云端录制收费说明,存储至VOD将不收取此项费用。)。
|
|
6113
|
+
:type CloudStorage: :class:`tencentcloud.trtc.v20190722.models.CloudStorage`
|
|
6114
|
+
:param _McuCloudVod: 腾讯云云点播的账号信息。
|
|
6115
|
+
:type McuCloudVod: :class:`tencentcloud.trtc.v20190722.models.McuCloudVod`
|
|
6116
|
+
"""
|
|
6117
|
+
self._CloudStorage = None
|
|
6118
|
+
self._McuCloudVod = None
|
|
6119
|
+
|
|
6120
|
+
@property
|
|
6121
|
+
def CloudStorage(self):
|
|
6122
|
+
return self._CloudStorage
|
|
6123
|
+
|
|
6124
|
+
@CloudStorage.setter
|
|
6125
|
+
def CloudStorage(self, CloudStorage):
|
|
6126
|
+
self._CloudStorage = CloudStorage
|
|
6127
|
+
|
|
6128
|
+
@property
|
|
6129
|
+
def McuCloudVod(self):
|
|
6130
|
+
return self._McuCloudVod
|
|
6131
|
+
|
|
6132
|
+
@McuCloudVod.setter
|
|
6133
|
+
def McuCloudVod(self, McuCloudVod):
|
|
6134
|
+
self._McuCloudVod = McuCloudVod
|
|
6135
|
+
|
|
6136
|
+
|
|
6137
|
+
def _deserialize(self, params):
|
|
6138
|
+
if params.get("CloudStorage") is not None:
|
|
6139
|
+
self._CloudStorage = CloudStorage()
|
|
6140
|
+
self._CloudStorage._deserialize(params.get("CloudStorage"))
|
|
6141
|
+
if params.get("McuCloudVod") is not None:
|
|
6142
|
+
self._McuCloudVod = McuCloudVod()
|
|
6143
|
+
self._McuCloudVod._deserialize(params.get("McuCloudVod"))
|
|
6144
|
+
memeber_set = set(params.keys())
|
|
6145
|
+
for name, value in vars(self).items():
|
|
6146
|
+
property_name = name[1:]
|
|
6147
|
+
if property_name in memeber_set:
|
|
6148
|
+
memeber_set.remove(property_name)
|
|
6149
|
+
if len(memeber_set) > 0:
|
|
6150
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6151
|
+
|
|
6152
|
+
|
|
6153
|
+
|
|
6154
|
+
class McuTencentVod(AbstractModel):
|
|
6155
|
+
"""Mcu转推录制,腾讯云点播相关参数。
|
|
6156
|
+
|
|
6157
|
+
"""
|
|
6158
|
+
|
|
6159
|
+
def __init__(self):
|
|
6160
|
+
r"""
|
|
6161
|
+
:param _Procedure: 媒体后续任务处理操作,即完成媒体上传后,可自动发起任务流操作。参数值为任务流模板名,云点播支持 创建任务流模板 并为模板命名。
|
|
6162
|
+
:type Procedure: str
|
|
6163
|
+
:param _ExpireTime: 媒体文件过期时间,为当前时间的绝对过期时间;保存一天,就填"86400",永久保存就填"0",默认永久保存。
|
|
6164
|
+
:type ExpireTime: int
|
|
6165
|
+
:param _StorageRegion: 指定上传园区,仅适用于对上传地域有特殊需求的用户。
|
|
6166
|
+
:type StorageRegion: str
|
|
6167
|
+
:param _ClassId: 分类ID,用于对媒体进行分类管理,可通过 创建分类 接口,创建分类,获得分类 ID。
|
|
6168
|
+
默认值:0,表示其他分类。
|
|
6169
|
+
:type ClassId: int
|
|
6170
|
+
:param _SubAppId: 点播 子应用 ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
|
|
6171
|
+
:type SubAppId: int
|
|
6172
|
+
:param _SessionContext: 任务流上下文,任务完成回调时透传。
|
|
6173
|
+
:type SessionContext: str
|
|
6174
|
+
:param _SourceContext: 上传上下文,上传完成回调时透传。
|
|
6175
|
+
:type SourceContext: str
|
|
6176
|
+
"""
|
|
6177
|
+
self._Procedure = None
|
|
6178
|
+
self._ExpireTime = None
|
|
6179
|
+
self._StorageRegion = None
|
|
6180
|
+
self._ClassId = None
|
|
6181
|
+
self._SubAppId = None
|
|
6182
|
+
self._SessionContext = None
|
|
6183
|
+
self._SourceContext = None
|
|
6184
|
+
|
|
6185
|
+
@property
|
|
6186
|
+
def Procedure(self):
|
|
6187
|
+
return self._Procedure
|
|
6188
|
+
|
|
6189
|
+
@Procedure.setter
|
|
6190
|
+
def Procedure(self, Procedure):
|
|
6191
|
+
self._Procedure = Procedure
|
|
6192
|
+
|
|
6193
|
+
@property
|
|
6194
|
+
def ExpireTime(self):
|
|
6195
|
+
return self._ExpireTime
|
|
6196
|
+
|
|
6197
|
+
@ExpireTime.setter
|
|
6198
|
+
def ExpireTime(self, ExpireTime):
|
|
6199
|
+
self._ExpireTime = ExpireTime
|
|
6200
|
+
|
|
6201
|
+
@property
|
|
6202
|
+
def StorageRegion(self):
|
|
6203
|
+
return self._StorageRegion
|
|
6204
|
+
|
|
6205
|
+
@StorageRegion.setter
|
|
6206
|
+
def StorageRegion(self, StorageRegion):
|
|
6207
|
+
self._StorageRegion = StorageRegion
|
|
6208
|
+
|
|
6209
|
+
@property
|
|
6210
|
+
def ClassId(self):
|
|
6211
|
+
return self._ClassId
|
|
6212
|
+
|
|
6213
|
+
@ClassId.setter
|
|
6214
|
+
def ClassId(self, ClassId):
|
|
6215
|
+
self._ClassId = ClassId
|
|
6216
|
+
|
|
6217
|
+
@property
|
|
6218
|
+
def SubAppId(self):
|
|
6219
|
+
return self._SubAppId
|
|
6220
|
+
|
|
6221
|
+
@SubAppId.setter
|
|
6222
|
+
def SubAppId(self, SubAppId):
|
|
6223
|
+
self._SubAppId = SubAppId
|
|
6224
|
+
|
|
6225
|
+
@property
|
|
6226
|
+
def SessionContext(self):
|
|
6227
|
+
return self._SessionContext
|
|
6228
|
+
|
|
6229
|
+
@SessionContext.setter
|
|
6230
|
+
def SessionContext(self, SessionContext):
|
|
6231
|
+
self._SessionContext = SessionContext
|
|
6232
|
+
|
|
6233
|
+
@property
|
|
6234
|
+
def SourceContext(self):
|
|
6235
|
+
return self._SourceContext
|
|
6236
|
+
|
|
6237
|
+
@SourceContext.setter
|
|
6238
|
+
def SourceContext(self, SourceContext):
|
|
6239
|
+
self._SourceContext = SourceContext
|
|
6240
|
+
|
|
6241
|
+
|
|
6242
|
+
def _deserialize(self, params):
|
|
6243
|
+
self._Procedure = params.get("Procedure")
|
|
6244
|
+
self._ExpireTime = params.get("ExpireTime")
|
|
6245
|
+
self._StorageRegion = params.get("StorageRegion")
|
|
6246
|
+
self._ClassId = params.get("ClassId")
|
|
6247
|
+
self._SubAppId = params.get("SubAppId")
|
|
6248
|
+
self._SessionContext = params.get("SessionContext")
|
|
6249
|
+
self._SourceContext = params.get("SourceContext")
|
|
6250
|
+
memeber_set = set(params.keys())
|
|
6251
|
+
for name, value in vars(self).items():
|
|
6252
|
+
property_name = name[1:]
|
|
6253
|
+
if property_name in memeber_set:
|
|
6254
|
+
memeber_set.remove(property_name)
|
|
6255
|
+
if len(memeber_set) > 0:
|
|
6256
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6257
|
+
|
|
6258
|
+
|
|
6259
|
+
|
|
5951
6260
|
class McuUserInfoParams(AbstractModel):
|
|
5952
6261
|
"""混流用户参数
|
|
5953
6262
|
|
|
@@ -8232,18 +8541,18 @@ class STTConfig(AbstractModel):
|
|
|
8232
8541
|
18. German = "de" # 德语
|
|
8233
8542
|
19. Italian = "it" # 意大利语
|
|
8234
8543
|
20. Russian = "ru" # 俄语
|
|
8544
|
+
21. Swedish = "sv" # 瑞典语
|
|
8545
|
+
22. Danish = "da" # 丹麦语
|
|
8546
|
+
23. Norwegian = "no" # 挪威语
|
|
8235
8547
|
|
|
8236
8548
|
注意:
|
|
8237
8549
|
如果缺少满足您需求的语言,请联系我们技术人员。
|
|
8238
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
8239
8550
|
:type Language: str
|
|
8240
8551
|
:param _AlternativeLanguage: 发起模糊识别额外可能替代语言类型,最多填写3种语言类型,
|
|
8241
8552
|
注:Language指定为"zh-dialect" # 中国方言 时,不支持模糊识别,该字段无效
|
|
8242
8553
|
|
|
8243
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
8244
8554
|
:type AlternativeLanguage: list of str
|
|
8245
8555
|
:param _VadSilenceTime: 语音识别vad的时间,范围为240-2000,默认为1000,单位为ms。更小的值会让语音识别分句更快。
|
|
8246
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
8247
8556
|
:type VadSilenceTime: int
|
|
8248
8557
|
"""
|
|
8249
8558
|
self._Language = None
|
|
@@ -9364,12 +9673,14 @@ class StartPublishCdnStreamRequest(AbstractModel):
|
|
|
9364
9673
|
:type VideoParams: :class:`tencentcloud.trtc.v20190722.models.McuVideoParams`
|
|
9365
9674
|
:param _SingleSubscribeParams: 需要单流旁路转推的用户上行参数,单流旁路转推时,WithTranscoding需要设置为0。
|
|
9366
9675
|
:type SingleSubscribeParams: :class:`tencentcloud.trtc.v20190722.models.SingleSubscribeParams`
|
|
9367
|
-
:param _PublishCdnParams: 转推的CDN
|
|
9676
|
+
:param _PublishCdnParams: 转推的CDN参数,一个任务最多支持10个推流URL。和回推房间参数必须要有一个。
|
|
9368
9677
|
:type PublishCdnParams: list of McuPublishCdnParam
|
|
9369
9678
|
:param _SeiParams: 混流SEI参数
|
|
9370
9679
|
:type SeiParams: :class:`tencentcloud.trtc.v20190722.models.McuSeiParams`
|
|
9371
|
-
:param _FeedBackRoomParams:
|
|
9680
|
+
:param _FeedBackRoomParams: 回推房间信息,一个任务最多支持回推10个房间,和转推CDN参数必须要有一个。注:回推房间需使用10.4及以上SDK版本,如您有需求,请联系腾讯云技术支持。
|
|
9372
9681
|
:type FeedBackRoomParams: list of McuFeedBackRoomParams
|
|
9682
|
+
:param _RecordParams: 转推录制参数,[参考文档](https://cloud.tencent.com/document/product/647/111748)。
|
|
9683
|
+
:type RecordParams: :class:`tencentcloud.trtc.v20190722.models.McuRecordParams`
|
|
9373
9684
|
"""
|
|
9374
9685
|
self._SdkAppId = None
|
|
9375
9686
|
self._RoomId = None
|
|
@@ -9382,6 +9693,7 @@ class StartPublishCdnStreamRequest(AbstractModel):
|
|
|
9382
9693
|
self._PublishCdnParams = None
|
|
9383
9694
|
self._SeiParams = None
|
|
9384
9695
|
self._FeedBackRoomParams = None
|
|
9696
|
+
self._RecordParams = None
|
|
9385
9697
|
|
|
9386
9698
|
@property
|
|
9387
9699
|
def SdkAppId(self):
|
|
@@ -9471,6 +9783,14 @@ class StartPublishCdnStreamRequest(AbstractModel):
|
|
|
9471
9783
|
def FeedBackRoomParams(self, FeedBackRoomParams):
|
|
9472
9784
|
self._FeedBackRoomParams = FeedBackRoomParams
|
|
9473
9785
|
|
|
9786
|
+
@property
|
|
9787
|
+
def RecordParams(self):
|
|
9788
|
+
return self._RecordParams
|
|
9789
|
+
|
|
9790
|
+
@RecordParams.setter
|
|
9791
|
+
def RecordParams(self, RecordParams):
|
|
9792
|
+
self._RecordParams = RecordParams
|
|
9793
|
+
|
|
9474
9794
|
|
|
9475
9795
|
def _deserialize(self, params):
|
|
9476
9796
|
self._SdkAppId = params.get("SdkAppId")
|
|
@@ -9504,6 +9824,9 @@ class StartPublishCdnStreamRequest(AbstractModel):
|
|
|
9504
9824
|
obj = McuFeedBackRoomParams()
|
|
9505
9825
|
obj._deserialize(item)
|
|
9506
9826
|
self._FeedBackRoomParams.append(obj)
|
|
9827
|
+
if params.get("RecordParams") is not None:
|
|
9828
|
+
self._RecordParams = McuRecordParams()
|
|
9829
|
+
self._RecordParams._deserialize(params.get("RecordParams"))
|
|
9507
9830
|
memeber_set = set(params.keys())
|
|
9508
9831
|
for name, value in vars(self).items():
|
|
9509
9832
|
property_name = name[1:]
|
|
@@ -9823,6 +10146,8 @@ class StartWebRecordRequest(AbstractModel):
|
|
|
9823
10146
|
:type RecordId: str
|
|
9824
10147
|
:param _PublishCdnParams: 若您想要推流到CDN,可以使用PublishCdnParams.N参数设置,支持最多同时推流到10个CDN地址。若转推地址是腾讯云CDN时,请将IsTencentCdn明确设置为1
|
|
9825
10148
|
:type PublishCdnParams: list of McuPublishCdnParam
|
|
10149
|
+
:param _ReadyTimeout: 录制页面资源加载的超时时间,单位:秒。默认值为 0 秒,该值需大于等于 0秒,且小于等于 60秒。录制页面未启用页面加载超时检测时,请勿设置此参数。
|
|
10150
|
+
:type ReadyTimeout: int
|
|
9826
10151
|
"""
|
|
9827
10152
|
self._RecordUrl = None
|
|
9828
10153
|
self._MaxDurationLimit = None
|
|
@@ -9831,6 +10156,7 @@ class StartWebRecordRequest(AbstractModel):
|
|
|
9831
10156
|
self._SdkAppId = None
|
|
9832
10157
|
self._RecordId = None
|
|
9833
10158
|
self._PublishCdnParams = None
|
|
10159
|
+
self._ReadyTimeout = None
|
|
9834
10160
|
|
|
9835
10161
|
@property
|
|
9836
10162
|
def RecordUrl(self):
|
|
@@ -9888,6 +10214,14 @@ class StartWebRecordRequest(AbstractModel):
|
|
|
9888
10214
|
def PublishCdnParams(self, PublishCdnParams):
|
|
9889
10215
|
self._PublishCdnParams = PublishCdnParams
|
|
9890
10216
|
|
|
10217
|
+
@property
|
|
10218
|
+
def ReadyTimeout(self):
|
|
10219
|
+
return self._ReadyTimeout
|
|
10220
|
+
|
|
10221
|
+
@ReadyTimeout.setter
|
|
10222
|
+
def ReadyTimeout(self, ReadyTimeout):
|
|
10223
|
+
self._ReadyTimeout = ReadyTimeout
|
|
10224
|
+
|
|
9891
10225
|
|
|
9892
10226
|
def _deserialize(self, params):
|
|
9893
10227
|
self._RecordUrl = params.get("RecordUrl")
|
|
@@ -9906,6 +10240,7 @@ class StartWebRecordRequest(AbstractModel):
|
|
|
9906
10240
|
obj = McuPublishCdnParam()
|
|
9907
10241
|
obj._deserialize(item)
|
|
9908
10242
|
self._PublishCdnParams.append(obj)
|
|
10243
|
+
self._ReadyTimeout = params.get("ReadyTimeout")
|
|
9909
10244
|
memeber_set = set(params.keys())
|
|
9910
10245
|
for name, value in vars(self).items():
|
|
9911
10246
|
property_name = name[1:]
|
|
@@ -10220,9 +10555,14 @@ class StopPublishCdnStreamRequest(AbstractModel):
|
|
|
10220
10555
|
:type SdkAppId: int
|
|
10221
10556
|
:param _TaskId: 唯一标识转推任务。
|
|
10222
10557
|
:type TaskId: str
|
|
10558
|
+
:param _RecordKey: 录制任务 key,标识一个录制任务,对应转推任务发起时指定 RecordKey;
|
|
10559
|
+
如果填写该参数,表示调用者希望立即结束该录制任务。当RecordKey 指定的录制任务正在录制当前转推任务时,录制任务立即结束,否则录制任务不受影响。
|
|
10560
|
+
如果没有填写该参数,但是转推任务发起时填写了 RecordKey,则表示在续录等待时间结束后才结束录制任务,续录等待期间可以使用相同的 RecordKey 发起新的转推任务,和当前转推任务录制到同一文件。
|
|
10561
|
+
:type RecordKey: str
|
|
10223
10562
|
"""
|
|
10224
10563
|
self._SdkAppId = None
|
|
10225
10564
|
self._TaskId = None
|
|
10565
|
+
self._RecordKey = None
|
|
10226
10566
|
|
|
10227
10567
|
@property
|
|
10228
10568
|
def SdkAppId(self):
|
|
@@ -10240,10 +10580,19 @@ class StopPublishCdnStreamRequest(AbstractModel):
|
|
|
10240
10580
|
def TaskId(self, TaskId):
|
|
10241
10581
|
self._TaskId = TaskId
|
|
10242
10582
|
|
|
10583
|
+
@property
|
|
10584
|
+
def RecordKey(self):
|
|
10585
|
+
return self._RecordKey
|
|
10586
|
+
|
|
10587
|
+
@RecordKey.setter
|
|
10588
|
+
def RecordKey(self, RecordKey):
|
|
10589
|
+
self._RecordKey = RecordKey
|
|
10590
|
+
|
|
10243
10591
|
|
|
10244
10592
|
def _deserialize(self, params):
|
|
10245
10593
|
self._SdkAppId = params.get("SdkAppId")
|
|
10246
10594
|
self._TaskId = params.get("TaskId")
|
|
10595
|
+
self._RecordKey = params.get("RecordKey")
|
|
10247
10596
|
memeber_set = set(params.keys())
|
|
10248
10597
|
for name, value in vars(self).items():
|
|
10249
10598
|
property_name = name[1:]
|
|
@@ -10970,6 +11319,8 @@ https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.9
|
|
|
10970
11319
|
:type TranscriptionMode: int
|
|
10971
11320
|
:param _TargetUserId: TranscriptionMode为1时必填,机器人只会拉该userid的流,忽略房间里其他用户。
|
|
10972
11321
|
:type TargetUserId: str
|
|
11322
|
+
:param _TargetUserIdList: 机器人订阅的用户列表
|
|
11323
|
+
:type TargetUserIdList: list of str
|
|
10973
11324
|
"""
|
|
10974
11325
|
self._UserId = None
|
|
10975
11326
|
self._UserSig = None
|
|
@@ -10978,6 +11329,7 @@ https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.9
|
|
|
10978
11329
|
self._MaxIdleTime = None
|
|
10979
11330
|
self._TranscriptionMode = None
|
|
10980
11331
|
self._TargetUserId = None
|
|
11332
|
+
self._TargetUserIdList = None
|
|
10981
11333
|
|
|
10982
11334
|
@property
|
|
10983
11335
|
def UserId(self):
|
|
@@ -11043,6 +11395,14 @@ https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.9
|
|
|
11043
11395
|
def TargetUserId(self, TargetUserId):
|
|
11044
11396
|
self._TargetUserId = TargetUserId
|
|
11045
11397
|
|
|
11398
|
+
@property
|
|
11399
|
+
def TargetUserIdList(self):
|
|
11400
|
+
return self._TargetUserIdList
|
|
11401
|
+
|
|
11402
|
+
@TargetUserIdList.setter
|
|
11403
|
+
def TargetUserIdList(self, TargetUserIdList):
|
|
11404
|
+
self._TargetUserIdList = TargetUserIdList
|
|
11405
|
+
|
|
11046
11406
|
|
|
11047
11407
|
def _deserialize(self, params):
|
|
11048
11408
|
self._UserId = params.get("UserId")
|
|
@@ -11052,6 +11412,7 @@ https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.9
|
|
|
11052
11412
|
self._MaxIdleTime = params.get("MaxIdleTime")
|
|
11053
11413
|
self._TranscriptionMode = params.get("TranscriptionMode")
|
|
11054
11414
|
self._TargetUserId = params.get("TargetUserId")
|
|
11415
|
+
self._TargetUserIdList = params.get("TargetUserIdList")
|
|
11055
11416
|
memeber_set = set(params.keys())
|
|
11056
11417
|
for name, value in vars(self).items():
|
|
11057
11418
|
property_name = name[1:]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1259
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1238
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|