tencentcloud-sdk-python-trtc 3.0.1127__tar.gz → 3.0.1128__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.
- {tencentcloud-sdk-python-trtc-3.0.1127 → tencentcloud-sdk-python-trtc-3.0.1128}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1127 → tencentcloud-sdk-python-trtc-3.0.1128}/setup.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1127 → tencentcloud-sdk-python-trtc-3.0.1128}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-trtc-3.0.1127 → tencentcloud-sdk-python-trtc-3.0.1128}/tencentcloud/trtc/v20190722/models.py +72 -1
- {tencentcloud-sdk-python-trtc-3.0.1127 → tencentcloud-sdk-python-trtc-3.0.1128}/tencentcloud_sdk_python_trtc.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-trtc-3.0.1128/tencentcloud_sdk_python_trtc.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-trtc-3.0.1127/tencentcloud_sdk_python_trtc.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-trtc-3.0.1127 → tencentcloud-sdk-python-trtc-3.0.1128}/README.rst +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1127 → tencentcloud-sdk-python-trtc-3.0.1128}/setup.cfg +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1127 → tencentcloud-sdk-python-trtc-3.0.1128}/tencentcloud/trtc/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1127 → tencentcloud-sdk-python-trtc-3.0.1128}/tencentcloud/trtc/v20190722/__init__.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1127 → tencentcloud-sdk-python-trtc-3.0.1128}/tencentcloud/trtc/v20190722/errorcodes.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1127 → tencentcloud-sdk-python-trtc-3.0.1128}/tencentcloud/trtc/v20190722/trtc_client.py +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1127 → tencentcloud-sdk-python-trtc-3.0.1128}/tencentcloud_sdk_python_trtc.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1127 → tencentcloud-sdk-python-trtc-3.0.1128}/tencentcloud_sdk_python_trtc.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-trtc-3.0.1127 → tencentcloud-sdk-python-trtc-3.0.1128}/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.1128"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Trtc SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -4706,6 +4706,63 @@ class McuAudioParams(AbstractModel):
|
|
|
4706
4706
|
|
|
4707
4707
|
|
|
4708
4708
|
|
|
4709
|
+
class McuBackgroundCustomRender(AbstractModel):
|
|
4710
|
+
"""混流自定义渲染参数
|
|
4711
|
+
|
|
4712
|
+
"""
|
|
4713
|
+
|
|
4714
|
+
def __init__(self):
|
|
4715
|
+
r"""
|
|
4716
|
+
:param _Width: 自定义渲染画面的宽度,单位为像素值,需大于0,且不能超过子布局的宽。
|
|
4717
|
+
:type Width: int
|
|
4718
|
+
:param _Height: 自定义渲染画面的高度,单位为像素值,需大于0,且不能超过子布局的高。
|
|
4719
|
+
:type Height: int
|
|
4720
|
+
:param _Radius: 自定义渲染画面的圆角半径,单位为像素值,不能超过渲染画面Width和Height最小值的一半,不指定默认为0,表示直角。
|
|
4721
|
+
:type Radius: int
|
|
4722
|
+
"""
|
|
4723
|
+
self._Width = None
|
|
4724
|
+
self._Height = None
|
|
4725
|
+
self._Radius = None
|
|
4726
|
+
|
|
4727
|
+
@property
|
|
4728
|
+
def Width(self):
|
|
4729
|
+
return self._Width
|
|
4730
|
+
|
|
4731
|
+
@Width.setter
|
|
4732
|
+
def Width(self, Width):
|
|
4733
|
+
self._Width = Width
|
|
4734
|
+
|
|
4735
|
+
@property
|
|
4736
|
+
def Height(self):
|
|
4737
|
+
return self._Height
|
|
4738
|
+
|
|
4739
|
+
@Height.setter
|
|
4740
|
+
def Height(self, Height):
|
|
4741
|
+
self._Height = Height
|
|
4742
|
+
|
|
4743
|
+
@property
|
|
4744
|
+
def Radius(self):
|
|
4745
|
+
return self._Radius
|
|
4746
|
+
|
|
4747
|
+
@Radius.setter
|
|
4748
|
+
def Radius(self, Radius):
|
|
4749
|
+
self._Radius = Radius
|
|
4750
|
+
|
|
4751
|
+
|
|
4752
|
+
def _deserialize(self, params):
|
|
4753
|
+
self._Width = params.get("Width")
|
|
4754
|
+
self._Height = params.get("Height")
|
|
4755
|
+
self._Radius = params.get("Radius")
|
|
4756
|
+
memeber_set = set(params.keys())
|
|
4757
|
+
for name, value in vars(self).items():
|
|
4758
|
+
property_name = name[1:]
|
|
4759
|
+
if property_name in memeber_set:
|
|
4760
|
+
memeber_set.remove(property_name)
|
|
4761
|
+
if len(memeber_set) > 0:
|
|
4762
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4763
|
+
|
|
4764
|
+
|
|
4765
|
+
|
|
4709
4766
|
class McuCustomCrop(AbstractModel):
|
|
4710
4767
|
"""混流自定义裁剪参数
|
|
4711
4768
|
|
|
@@ -4879,11 +4936,13 @@ class McuLayout(AbstractModel):
|
|
|
4879
4936
|
:type BackgroundImageUrl: str
|
|
4880
4937
|
:param _CustomCrop: 客户自定义裁剪,针对原始输入流裁剪
|
|
4881
4938
|
:type CustomCrop: :class:`tencentcloud.trtc.v20190722.models.McuCustomCrop`
|
|
4882
|
-
:param _BackgroundRenderMode: 子背景图在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底,3
|
|
4939
|
+
:param _BackgroundRenderMode: 子背景图在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底,3为变比例伸缩,4为自定义渲染。不填默认为3。
|
|
4883
4940
|
:type BackgroundRenderMode: int
|
|
4884
4941
|
:param _TransparentUrl: 子画面的透明模版url,指向一张包含透明通道的模板图片。填写该参数,后台混流时会提取该模板图片的透明通道,将其缩放作为目标画面的透明通道,再和其他画面进行混合。您可以通过透明模版实现目标画面的半透明效果和任意形状裁剪(如圆角、星形、心形等)。 支持png格式。图片大小限制不超过5MB。
|
|
4885
4942
|
注:1,模板图片宽高比应接近目标画面宽高比,以避免缩放适配目标画面时出现模板效果变形;2,透明模版只有RenderMode为0(裁剪)时才生效;3,您需要确保图片链接的可访问性,后台单次下载超时时间为10秒,最多重试3次,若最终图片下载失败,透明模版将不会生效。
|
|
4886
4943
|
:type TransparentUrl: str
|
|
4944
|
+
:param _BackgroundCustomRender: 子背景图的自定义渲染参数,当BackgroundRenderMode为4时必须配置。
|
|
4945
|
+
:type BackgroundCustomRender: :class:`tencentcloud.trtc.v20190722.models.McuBackgroundCustomRender`
|
|
4887
4946
|
"""
|
|
4888
4947
|
self._UserMediaStream = None
|
|
4889
4948
|
self._ImageWidth = None
|
|
@@ -4897,6 +4956,7 @@ class McuLayout(AbstractModel):
|
|
|
4897
4956
|
self._CustomCrop = None
|
|
4898
4957
|
self._BackgroundRenderMode = None
|
|
4899
4958
|
self._TransparentUrl = None
|
|
4959
|
+
self._BackgroundCustomRender = None
|
|
4900
4960
|
|
|
4901
4961
|
@property
|
|
4902
4962
|
def UserMediaStream(self):
|
|
@@ -4994,6 +5054,14 @@ class McuLayout(AbstractModel):
|
|
|
4994
5054
|
def TransparentUrl(self, TransparentUrl):
|
|
4995
5055
|
self._TransparentUrl = TransparentUrl
|
|
4996
5056
|
|
|
5057
|
+
@property
|
|
5058
|
+
def BackgroundCustomRender(self):
|
|
5059
|
+
return self._BackgroundCustomRender
|
|
5060
|
+
|
|
5061
|
+
@BackgroundCustomRender.setter
|
|
5062
|
+
def BackgroundCustomRender(self, BackgroundCustomRender):
|
|
5063
|
+
self._BackgroundCustomRender = BackgroundCustomRender
|
|
5064
|
+
|
|
4997
5065
|
|
|
4998
5066
|
def _deserialize(self, params):
|
|
4999
5067
|
if params.get("UserMediaStream") is not None:
|
|
@@ -5012,6 +5080,9 @@ class McuLayout(AbstractModel):
|
|
|
5012
5080
|
self._CustomCrop._deserialize(params.get("CustomCrop"))
|
|
5013
5081
|
self._BackgroundRenderMode = params.get("BackgroundRenderMode")
|
|
5014
5082
|
self._TransparentUrl = params.get("TransparentUrl")
|
|
5083
|
+
if params.get("BackgroundCustomRender") is not None:
|
|
5084
|
+
self._BackgroundCustomRender = McuBackgroundCustomRender()
|
|
5085
|
+
self._BackgroundCustomRender._deserialize(params.get("BackgroundCustomRender"))
|
|
5015
5086
|
memeber_set = set(params.keys())
|
|
5016
5087
|
for name, value in vars(self).items():
|
|
5017
5088
|
property_name = name[1:]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1128
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1127
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|