tencentcloud-sdk-trtc 3.0.801 → 3.0.802
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190722/models.rb +34 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 28c2b05595453c8cd453158456e6eaf7dedfe0a1
|
|
4
|
+
data.tar.gz: 44aa6c45238f2f636330bbf71d04e4174c492c6d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6214ca079bb7be0d2e7781c544baf637173e81182c72c8855058905e90c1e43385079c309e309a1c1c9ab9052e03c8827316c6be2b5a04015526ee52110862de
|
|
7
|
+
data.tar.gz: b0e5dbf187223650ed19f5cd8498c63e609f5237b6dd16cc5ab2748b7e0eca142d9290fa19178c8bf0246ed7baf23e5500a7c3e98f8aee840fed1046c74e22f9
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.802
|
data/lib/v20190722/models.rb
CHANGED
|
@@ -2254,6 +2254,30 @@ module TencentCloud
|
|
|
2254
2254
|
end
|
|
2255
2255
|
end
|
|
2256
2256
|
|
|
2257
|
+
# 混流自定义渲染参数
|
|
2258
|
+
class McuBackgroundCustomRender < TencentCloud::Common::AbstractModel
|
|
2259
|
+
# @param Width: 自定义渲染画面的宽度,单位为像素值,需大于0,且不能超过子布局的宽。
|
|
2260
|
+
# @type Width: Integer
|
|
2261
|
+
# @param Height: 自定义渲染画面的高度,单位为像素值,需大于0,且不能超过子布局的高。
|
|
2262
|
+
# @type Height: Integer
|
|
2263
|
+
# @param Radius: 自定义渲染画面的圆角半径,单位为像素值,不能超过渲染画面Width和Height最小值的一半,不指定默认为0,表示直角。
|
|
2264
|
+
# @type Radius: Integer
|
|
2265
|
+
|
|
2266
|
+
attr_accessor :Width, :Height, :Radius
|
|
2267
|
+
|
|
2268
|
+
def initialize(width=nil, height=nil, radius=nil)
|
|
2269
|
+
@Width = width
|
|
2270
|
+
@Height = height
|
|
2271
|
+
@Radius = radius
|
|
2272
|
+
end
|
|
2273
|
+
|
|
2274
|
+
def deserialize(params)
|
|
2275
|
+
@Width = params['Width']
|
|
2276
|
+
@Height = params['Height']
|
|
2277
|
+
@Radius = params['Radius']
|
|
2278
|
+
end
|
|
2279
|
+
end
|
|
2280
|
+
|
|
2257
2281
|
# 混流自定义裁剪参数
|
|
2258
2282
|
class McuCustomCrop < TencentCloud::Common::AbstractModel
|
|
2259
2283
|
# @param LocationX: 自定义裁剪起始位置的X偏移,单位为像素值,大于等于0。
|
|
@@ -2340,15 +2364,17 @@ module TencentCloud
|
|
|
2340
2364
|
# @type BackgroundImageUrl: String
|
|
2341
2365
|
# @param CustomCrop: 客户自定义裁剪,针对原始输入流裁剪
|
|
2342
2366
|
# @type CustomCrop: :class:`Tencentcloud::Trtc.v20190722.models.McuCustomCrop`
|
|
2343
|
-
# @param BackgroundRenderMode: 子背景图在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底,3
|
|
2367
|
+
# @param BackgroundRenderMode: 子背景图在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底,3为变比例伸缩,4为自定义渲染。不填默认为3。
|
|
2344
2368
|
# @type BackgroundRenderMode: Integer
|
|
2345
2369
|
# @param TransparentUrl: 子画面的透明模版url,指向一张包含透明通道的模板图片。填写该参数,后台混流时会提取该模板图片的透明通道,将其缩放作为目标画面的透明通道,再和其他画面进行混合。您可以通过透明模版实现目标画面的半透明效果和任意形状裁剪(如圆角、星形、心形等)。 支持png格式。图片大小限制不超过5MB。
|
|
2346
2370
|
# 注:1,模板图片宽高比应接近目标画面宽高比,以避免缩放适配目标画面时出现模板效果变形;2,透明模版只有RenderMode为0(裁剪)时才生效;3,您需要确保图片链接的可访问性,后台单次下载超时时间为10秒,最多重试3次,若最终图片下载失败,透明模版将不会生效。
|
|
2347
2371
|
# @type TransparentUrl: String
|
|
2372
|
+
# @param BackgroundCustomRender: 子背景图的自定义渲染参数,当BackgroundRenderMode为4时必须配置。
|
|
2373
|
+
# @type BackgroundCustomRender: :class:`Tencentcloud::Trtc.v20190722.models.McuBackgroundCustomRender`
|
|
2348
2374
|
|
|
2349
|
-
attr_accessor :UserMediaStream, :ImageWidth, :ImageHeight, :LocationX, :LocationY, :ZOrder, :RenderMode, :BackGroundColor, :BackgroundImageUrl, :CustomCrop, :BackgroundRenderMode, :TransparentUrl
|
|
2375
|
+
attr_accessor :UserMediaStream, :ImageWidth, :ImageHeight, :LocationX, :LocationY, :ZOrder, :RenderMode, :BackGroundColor, :BackgroundImageUrl, :CustomCrop, :BackgroundRenderMode, :TransparentUrl, :BackgroundCustomRender
|
|
2350
2376
|
|
|
2351
|
-
def initialize(usermediastream=nil, imagewidth=nil, imageheight=nil, locationx=nil, locationy=nil, zorder=nil, rendermode=nil, backgroundcolor=nil, backgroundimageurl=nil, customcrop=nil, backgroundrendermode=nil, transparenturl=nil)
|
|
2377
|
+
def initialize(usermediastream=nil, imagewidth=nil, imageheight=nil, locationx=nil, locationy=nil, zorder=nil, rendermode=nil, backgroundcolor=nil, backgroundimageurl=nil, customcrop=nil, backgroundrendermode=nil, transparenturl=nil, backgroundcustomrender=nil)
|
|
2352
2378
|
@UserMediaStream = usermediastream
|
|
2353
2379
|
@ImageWidth = imagewidth
|
|
2354
2380
|
@ImageHeight = imageheight
|
|
@@ -2361,6 +2387,7 @@ module TencentCloud
|
|
|
2361
2387
|
@CustomCrop = customcrop
|
|
2362
2388
|
@BackgroundRenderMode = backgroundrendermode
|
|
2363
2389
|
@TransparentUrl = transparenturl
|
|
2390
|
+
@BackgroundCustomRender = backgroundcustomrender
|
|
2364
2391
|
end
|
|
2365
2392
|
|
|
2366
2393
|
def deserialize(params)
|
|
@@ -2382,6 +2409,10 @@ module TencentCloud
|
|
|
2382
2409
|
end
|
|
2383
2410
|
@BackgroundRenderMode = params['BackgroundRenderMode']
|
|
2384
2411
|
@TransparentUrl = params['TransparentUrl']
|
|
2412
|
+
unless params['BackgroundCustomRender'].nil?
|
|
2413
|
+
@BackgroundCustomRender = McuBackgroundCustomRender.new
|
|
2414
|
+
@BackgroundCustomRender.deserialize(params['BackgroundCustomRender'])
|
|
2415
|
+
end
|
|
2385
2416
|
end
|
|
2386
2417
|
end
|
|
2387
2418
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-trtc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.802
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-04-
|
|
11
|
+
date: 2024-04-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|