tencentcloud-sdk-trtc 3.0.428 → 3.0.429
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190722/client.rb +91 -0
- data/lib/v20190722/models.rb +772 -0
- 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: 50c88812abd2565f9c4777cdf1d8a10569d87def
|
4
|
+
data.tar.gz: 46c77210e93835482dd85f67f4752678520f7d49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81de1d4d6fd11d36203550c2246863a82d72f0b519c03a8b240f16a2a6c3ebfa7233f7b85cc00167eaf92cc16913ea404011a97e33117b5c8444d9b9fcad2299
|
7
|
+
data.tar.gz: 1c8bbf677d605dc335e70263b4f36900ce108801c2fdade0867823692f0f485aaf2bb72208513f31ae33f23c0440e8d1d0501a01cd695694bce2ff6542f43eaf
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.429
|
data/lib/v20190722/client.rb
CHANGED
@@ -768,6 +768,49 @@ module TencentCloud
|
|
768
768
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
769
769
|
end
|
770
770
|
|
771
|
+
# 接口说明:启动旁路以及混流转推任务。TRTC 的房间中可能会同时存在多路音视频流,您可以通过此API接口,实现以下几种效果:
|
772
|
+
# 1、支持将单个主播的音视频流发布(也称作“转推”)到直播CDN上,请参考示例2(发起单流音视频旁路转推)和示例3(发起单流纯音频旁路转推)。
|
773
|
+
# 2、支持将同个房间多个主播或者不同房间多个主播的音视频混合成1路后再发布到直播CDN上,您可以通过AudioParams.SubscribeAudioList和VideoParams.LayoutParams调整参与混音的用户列表以及指定各路混流画面的布局位置。请参考示例1(发起混流转推)。
|
774
|
+
# 3、支持预先设置一个房间的混流模板,将该房间中的多个音视频混合成1路发布到直播CDN,腾讯云后台实时监控TRTC房间中的主播变化,自动按照混流模板调整布局。目前已经支持了如下几种混流预设模板:
|
775
|
+
# - 悬浮模板:第一个进入房间的用户的视频画面会铺满整个屏幕,其他用户的视频画面从左下角依次水平排列,显示为小画面,最多4行,每行4个,小画面悬浮于大画面之上。最多支持1个大画面和15个小画面。
|
776
|
+
# - 九宫格模板:所有用户的视频画面大小一致,平分整个屏幕,人数越多,每个画面的尺寸越小,最多支持16个画面。
|
777
|
+
# - 屏幕分享模板:适合视频会议和在线教育场景的布局,屏幕分享(或者主讲的摄像头)始终占据屏幕左侧的大画面位置,其他用户依次垂直排列于右侧,最多两列,每列最多8个小画面。最多支持1个大画面和15个小画面。若上行分辨率宽高比与画面输出宽高比不一致时,左侧大画面为了保持内容的完整性采用缩放方式处理,右侧小画面采用裁剪方式处理。
|
778
|
+
# 4、支持同时将音视频流发布到最多10个直播CDN上。您可以通过PublishCdnParams.PublishCdnUrl指定转推CDN的url,如果您想转推到腾讯云CDN,PublishCdnParams.IsTencentCdn填为1。
|
779
|
+
# 5、支持通过配置服务端回调,实时将转推状态以HTTP/HTTPS POST 请求发送给您的服务器,如果您需要接入转推事件回调,请联系腾讯云技术支持。
|
780
|
+
# 注意:
|
781
|
+
# 1、**混流转码为收费功能,调用接口将产生云端混流转码费用,详见[云端混流转推计费说明](https://intl.cloud.tencent.com/zh/document/product/647/47631)。**
|
782
|
+
# 2、**转推非腾讯云CDN将产生云端转推费用,详见[云端混流转推计费说明](https://intl.cloud.tencent.com/zh/document/product/647/47631)。**
|
783
|
+
|
784
|
+
# 其他使用说明如下:
|
785
|
+
# 1、使用混流转推接口时,您需要先调用启动转推任务接口(StartPublishCdnStream),获取启动转推任务响应中的任务ID标识(TaskId)。后续传入任务ID标识(TaskId)来更新转推任务(UpdatePublishCdnStream)和停止转推任务(StopPublishCdnStream)。
|
786
|
+
# 2、为了确保转推链接的稳定,同一个转推任务不支持纯音频、音视频、纯视频之间的切换。
|
787
|
+
# 3、为了确保转推链接的稳定,更新转推任务接口(UpdatePublishCdnStream)不支持时更改视频参数(codec)和音频参数(codec、采样率、码率、声道数)。
|
788
|
+
# 4、发起单流旁路任务时,AudioParams和VideoParams都填写表示音视频旁路,如果仅填写AudioParams表示纯音频旁路,任务进行过程中不支持纯音频到音视频的切换。音视频旁路时,VideoParams中的Width、Height、Fps、BitRate、Gop需要按照真实上行参数填写。
|
789
|
+
# 5、更新转推任务(UpdatePublishCdnStream)必须携带SequenceNumber参数,用于防止请求乱序。客户保证对同一个任务更新时的SequenceNumber参数递增:腾讯云返回InternalError错误码时,需重试请求(不换SequenceNumber);腾讯云返回FailedOperation.OutdateRequest过期错误码时,无需处理即可。
|
790
|
+
# 6、您可以在主播进房前,提前创建转推任务,结束转推任务时需要主动调用停止接口。如果您没有调用停止转推任务接口时,腾讯云后台会按照所有参与混流的用户没有任何数据上行的时间算起,直到超过启动转推任务时设置的超时时间(AgentParams.MaxIdleTime)为止,自动停止混流转推任务。
|
791
|
+
|
792
|
+
# @param request: Request instance for StartPublishCdnStream.
|
793
|
+
# @type request: :class:`Tencentcloud::trtc::V20190722::StartPublishCdnStreamRequest`
|
794
|
+
# @rtype: :class:`Tencentcloud::trtc::V20190722::StartPublishCdnStreamResponse`
|
795
|
+
def StartPublishCdnStream(request)
|
796
|
+
body = send_request('StartPublishCdnStream', request.serialize)
|
797
|
+
response = JSON.parse(body)
|
798
|
+
if response['Response'].key?('Error') == false
|
799
|
+
model = StartPublishCdnStreamResponse.new
|
800
|
+
model.deserialize(response['Response'])
|
801
|
+
model
|
802
|
+
else
|
803
|
+
code = response['Response']['Error']['Code']
|
804
|
+
message = response['Response']['Error']['Message']
|
805
|
+
reqid = response['Response']['RequestId']
|
806
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
807
|
+
end
|
808
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
809
|
+
raise e
|
810
|
+
rescue StandardError => e
|
811
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
812
|
+
end
|
813
|
+
|
771
814
|
# 接口说明:结束云端混流
|
772
815
|
|
773
816
|
# @param request: Request instance for StopMCUMixTranscode.
|
@@ -816,6 +859,54 @@ module TencentCloud
|
|
816
859
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
817
860
|
end
|
818
861
|
|
862
|
+
# 停止转推任务。
|
863
|
+
|
864
|
+
# @param request: Request instance for StopPublishCdnStream.
|
865
|
+
# @type request: :class:`Tencentcloud::trtc::V20190722::StopPublishCdnStreamRequest`
|
866
|
+
# @rtype: :class:`Tencentcloud::trtc::V20190722::StopPublishCdnStreamResponse`
|
867
|
+
def StopPublishCdnStream(request)
|
868
|
+
body = send_request('StopPublishCdnStream', request.serialize)
|
869
|
+
response = JSON.parse(body)
|
870
|
+
if response['Response'].key?('Error') == false
|
871
|
+
model = StopPublishCdnStreamResponse.new
|
872
|
+
model.deserialize(response['Response'])
|
873
|
+
model
|
874
|
+
else
|
875
|
+
code = response['Response']['Error']['Code']
|
876
|
+
message = response['Response']['Error']['Message']
|
877
|
+
reqid = response['Response']['RequestId']
|
878
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
879
|
+
end
|
880
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
881
|
+
raise e
|
882
|
+
rescue StandardError => e
|
883
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
884
|
+
end
|
885
|
+
|
886
|
+
# 更新转推任务。
|
887
|
+
|
888
|
+
# @param request: Request instance for UpdatePublishCdnStream.
|
889
|
+
# @type request: :class:`Tencentcloud::trtc::V20190722::UpdatePublishCdnStreamRequest`
|
890
|
+
# @rtype: :class:`Tencentcloud::trtc::V20190722::UpdatePublishCdnStreamResponse`
|
891
|
+
def UpdatePublishCdnStream(request)
|
892
|
+
body = send_request('UpdatePublishCdnStream', request.serialize)
|
893
|
+
response = JSON.parse(body)
|
894
|
+
if response['Response'].key?('Error') == false
|
895
|
+
model = UpdatePublishCdnStreamResponse.new
|
896
|
+
model.deserialize(response['Response'])
|
897
|
+
model
|
898
|
+
else
|
899
|
+
code = response['Response']['Error']['Code']
|
900
|
+
message = response['Response']['Error']['Message']
|
901
|
+
reqid = response['Response']['RequestId']
|
902
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
903
|
+
end
|
904
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
905
|
+
raise e
|
906
|
+
rescue StandardError => e
|
907
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
908
|
+
end
|
909
|
+
|
819
910
|
|
820
911
|
end
|
821
912
|
end
|
data/lib/v20190722/models.rb
CHANGED
@@ -77,6 +77,58 @@ module TencentCloud
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
80
|
+
# 转推服务加入TRTC房间的机器人参数。
|
81
|
+
class AgentParams < TencentCloud::Common::AbstractModel
|
82
|
+
# @param UserId: 转推服务在TRTC房间使用的[UserId](https://cloud.tencent.com/document/product/647/46351#userid),注意这个userId不能与其他TRTC或者转推服务等已经使用的UserId重复,建议可以把房间ID作为userId的标识的一部分。
|
83
|
+
# @type UserId: String
|
84
|
+
# @param UserSig: 转推服务加入TRTC房间的用户签名,当前 UserId 对应的验证签名,相当于登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
|
85
|
+
# @type UserSig: String
|
86
|
+
# @param MaxIdleTime: 所有参与混流转推的主播持续离开TRTC房间超过MaxIdleTime的时长,自动停止转推,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
|
87
|
+
# @type MaxIdleTime: Integer
|
88
|
+
|
89
|
+
attr_accessor :UserId, :UserSig, :MaxIdleTime
|
90
|
+
|
91
|
+
def initialize(userid=nil, usersig=nil, maxidletime=nil)
|
92
|
+
@UserId = userid
|
93
|
+
@UserSig = usersig
|
94
|
+
@MaxIdleTime = maxidletime
|
95
|
+
end
|
96
|
+
|
97
|
+
def deserialize(params)
|
98
|
+
@UserId = params['UserId']
|
99
|
+
@UserSig = params['UserSig']
|
100
|
+
@MaxIdleTime = params['MaxIdleTime']
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
# 音频编码参数。
|
105
|
+
class AudioEncode < TencentCloud::Common::AbstractModel
|
106
|
+
# @param SampleRate: 输出流音频采样率。取值为[48000, 44100, 32000, 24000, 16000, 8000],单位是Hz。
|
107
|
+
# @type SampleRate: Integer
|
108
|
+
# @param Channel: 输出流音频声道数,取值范围[1,2],1表示混流输出音频为单声道,2表示混流输出音频为双声道。
|
109
|
+
# @type Channel: Integer
|
110
|
+
# @param BitRate: 输出流音频码率。取值范围[8,500],单位为kbps。
|
111
|
+
# @type BitRate: Integer
|
112
|
+
# @param Codec: 输出流音频编码类型,取值范围[0, 1, 2],0为LC-AAC,1为HE-AAC,2为HE-AACv2。默认值为0。当音频编码设置为HE-AACv2时,只支持输出流音频声道数为双声道。HE-AAC和HE-AACv2支持的输出流音频采样率范围为[48000, 44100, 32000, 24000, 16000]。
|
113
|
+
# @type Codec: Integer
|
114
|
+
|
115
|
+
attr_accessor :SampleRate, :Channel, :BitRate, :Codec
|
116
|
+
|
117
|
+
def initialize(samplerate=nil, channel=nil, bitrate=nil, codec=nil)
|
118
|
+
@SampleRate = samplerate
|
119
|
+
@Channel = channel
|
120
|
+
@BitRate = bitrate
|
121
|
+
@Codec = codec
|
122
|
+
end
|
123
|
+
|
124
|
+
def deserialize(params)
|
125
|
+
@SampleRate = params['SampleRate']
|
126
|
+
@Channel = params['Channel']
|
127
|
+
@BitRate = params['BitRate']
|
128
|
+
@Codec = params['Codec']
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
80
132
|
# 录制音频转码参数。
|
81
133
|
class AudioParams < TencentCloud::Common::AbstractModel
|
82
134
|
# @param SampleRate: 音频采样率:
|
@@ -1603,6 +1655,407 @@ module TencentCloud
|
|
1603
1655
|
end
|
1604
1656
|
end
|
1605
1657
|
|
1658
|
+
# 指定动态布局中悬浮布局和屏幕分享布局的大画面信息,只在悬浮布局和屏幕分享布局有效。
|
1659
|
+
class MaxVideoUser < TencentCloud::Common::AbstractModel
|
1660
|
+
# @param UserMediaStream: 用户媒体流参数。
|
1661
|
+
# @type UserMediaStream: :class:`Tencentcloud::Trtc.v20190722.models.UserMediaStream`
|
1662
|
+
|
1663
|
+
attr_accessor :UserMediaStream
|
1664
|
+
|
1665
|
+
def initialize(usermediastream=nil)
|
1666
|
+
@UserMediaStream = usermediastream
|
1667
|
+
end
|
1668
|
+
|
1669
|
+
def deserialize(params)
|
1670
|
+
unless params['UserMediaStream'].nil?
|
1671
|
+
@UserMediaStream = UserMediaStream.new
|
1672
|
+
@UserMediaStream.deserialize(params['UserMediaStream'])
|
1673
|
+
end
|
1674
|
+
end
|
1675
|
+
end
|
1676
|
+
|
1677
|
+
# 混流转推的音频相关参数。
|
1678
|
+
class McuAudioParams < TencentCloud::Common::AbstractModel
|
1679
|
+
# @param AudioEncode: 音频编码参数。
|
1680
|
+
# @type AudioEncode: :class:`Tencentcloud::Trtc.v20190722.models.AudioEncode`
|
1681
|
+
# @param SubscribeAudioList: 音频用户白名单,start时,为空或不填表示混所有主播音频,填具体值表示混指定主播音频;update时,不填表示不更新,为空表示更新为混所有主播音频,填具体值表示更新为混指定主播音频。
|
1682
|
+
# @type SubscribeAudioList: Array
|
1683
|
+
|
1684
|
+
attr_accessor :AudioEncode, :SubscribeAudioList
|
1685
|
+
|
1686
|
+
def initialize(audioencode=nil, subscribeaudiolist=nil)
|
1687
|
+
@AudioEncode = audioencode
|
1688
|
+
@SubscribeAudioList = subscribeaudiolist
|
1689
|
+
end
|
1690
|
+
|
1691
|
+
def deserialize(params)
|
1692
|
+
unless params['AudioEncode'].nil?
|
1693
|
+
@AudioEncode = AudioEncode.new
|
1694
|
+
@AudioEncode.deserialize(params['AudioEncode'])
|
1695
|
+
end
|
1696
|
+
unless params['SubscribeAudioList'].nil?
|
1697
|
+
@SubscribeAudioList = []
|
1698
|
+
params['SubscribeAudioList'].each do |i|
|
1699
|
+
mcuuserinfoparams_tmp = McuUserInfoParams.new
|
1700
|
+
mcuuserinfoparams_tmp.deserialize(i)
|
1701
|
+
@SubscribeAudioList << mcuuserinfoparams_tmp
|
1702
|
+
end
|
1703
|
+
end
|
1704
|
+
end
|
1705
|
+
end
|
1706
|
+
|
1707
|
+
# 混流自定义裁剪参数
|
1708
|
+
class McuCustomCrop < TencentCloud::Common::AbstractModel
|
1709
|
+
# @param LocationX: 自定义裁剪起始位置的X偏移,单位为像素值,大于等于0。
|
1710
|
+
# @type LocationX: Integer
|
1711
|
+
# @param LocationY: 自定义裁剪起始位置的Y偏移,单位为像素值,大于等于0。
|
1712
|
+
# @type LocationY: Integer
|
1713
|
+
# @param Width: 自定义裁剪画面的宽度,单位为像素值,大于0,且LocationX+Width不超过10000
|
1714
|
+
# @type Width: Integer
|
1715
|
+
# @param Height: 自定义裁剪画面的高度,单位为像素值,大于0,且LocationY+Height不超过10000
|
1716
|
+
# @type Height: Integer
|
1717
|
+
|
1718
|
+
attr_accessor :LocationX, :LocationY, :Width, :Height
|
1719
|
+
|
1720
|
+
def initialize(locationx=nil, locationy=nil, width=nil, height=nil)
|
1721
|
+
@LocationX = locationx
|
1722
|
+
@LocationY = locationy
|
1723
|
+
@Width = width
|
1724
|
+
@Height = height
|
1725
|
+
end
|
1726
|
+
|
1727
|
+
def deserialize(params)
|
1728
|
+
@LocationX = params['LocationX']
|
1729
|
+
@LocationY = params['LocationY']
|
1730
|
+
@Width = params['Width']
|
1731
|
+
@Height = params['Height']
|
1732
|
+
end
|
1733
|
+
end
|
1734
|
+
|
1735
|
+
# 混流布局参数。
|
1736
|
+
class McuLayout < TencentCloud::Common::AbstractModel
|
1737
|
+
# @param UserMediaStream: 用户媒体流参数。不填时腾讯云后台按照上行主播的进房顺序自动填充。
|
1738
|
+
# @type UserMediaStream: :class:`Tencentcloud::Trtc.v20190722.models.UserMediaStream`
|
1739
|
+
# @param ImageWidth: 子画面在输出时的宽度,单位为像素值,不填默认为0。
|
1740
|
+
# @type ImageWidth: Integer
|
1741
|
+
# @param ImageHeight: 子画面在输出时的高度,单位为像素值,不填默认为0。
|
1742
|
+
# @type ImageHeight: Integer
|
1743
|
+
# @param LocationX: 子画面在输出时的X偏移,单位为像素值,LocationX与ImageWidth之和不能超过混流输出的总宽度,不填默认为0。
|
1744
|
+
# @type LocationX: Integer
|
1745
|
+
# @param LocationY: 子画面在输出时的Y偏移,单位为像素值,LocationY与ImageHeight之和不能超过混流输出的总高度,不填默认为0。
|
1746
|
+
# @type LocationY: Integer
|
1747
|
+
# @param ZOrder: 子画面在输出时的层级,不填默认为0。
|
1748
|
+
# @type ZOrder: Integer
|
1749
|
+
# @param RenderMode: 子画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底。不填默认为0。
|
1750
|
+
# @type RenderMode: Integer
|
1751
|
+
# @param BackGroundColor: 子画面的背景颜色,常用的颜色有:
|
1752
|
+
# 红色:0xcc0033。
|
1753
|
+
# 黄色:0xcc9900。
|
1754
|
+
# 绿色:0xcccc33。
|
1755
|
+
# 蓝色:0x99CCFF。
|
1756
|
+
# 黑色:0x000000。
|
1757
|
+
# 白色:0xFFFFFF。
|
1758
|
+
# 灰色:0x999999。
|
1759
|
+
# @type BackGroundColor: String
|
1760
|
+
# @param BackgroundImageUrl: 子画面的背景图url,填写该参数,当用户关闭摄像头或未进入TRTC房间时,会在布局位置填充为指定图片。若指定图片与布局位置尺寸比例不一致,则会对图片进行拉伸处理,优先级高于BackGroundColor。
|
1761
|
+
# @type BackgroundImageUrl: String
|
1762
|
+
# @param CustomCrop: 客户自定义裁剪,针对原始输入流裁剪
|
1763
|
+
# @type CustomCrop: :class:`Tencentcloud::Trtc.v20190722.models.McuCustomCrop`
|
1764
|
+
|
1765
|
+
attr_accessor :UserMediaStream, :ImageWidth, :ImageHeight, :LocationX, :LocationY, :ZOrder, :RenderMode, :BackGroundColor, :BackgroundImageUrl, :CustomCrop
|
1766
|
+
|
1767
|
+
def initialize(usermediastream=nil, imagewidth=nil, imageheight=nil, locationx=nil, locationy=nil, zorder=nil, rendermode=nil, backgroundcolor=nil, backgroundimageurl=nil, customcrop=nil)
|
1768
|
+
@UserMediaStream = usermediastream
|
1769
|
+
@ImageWidth = imagewidth
|
1770
|
+
@ImageHeight = imageheight
|
1771
|
+
@LocationX = locationx
|
1772
|
+
@LocationY = locationy
|
1773
|
+
@ZOrder = zorder
|
1774
|
+
@RenderMode = rendermode
|
1775
|
+
@BackGroundColor = backgroundcolor
|
1776
|
+
@BackgroundImageUrl = backgroundimageurl
|
1777
|
+
@CustomCrop = customcrop
|
1778
|
+
end
|
1779
|
+
|
1780
|
+
def deserialize(params)
|
1781
|
+
unless params['UserMediaStream'].nil?
|
1782
|
+
@UserMediaStream = UserMediaStream.new
|
1783
|
+
@UserMediaStream.deserialize(params['UserMediaStream'])
|
1784
|
+
end
|
1785
|
+
@ImageWidth = params['ImageWidth']
|
1786
|
+
@ImageHeight = params['ImageHeight']
|
1787
|
+
@LocationX = params['LocationX']
|
1788
|
+
@LocationY = params['LocationY']
|
1789
|
+
@ZOrder = params['ZOrder']
|
1790
|
+
@RenderMode = params['RenderMode']
|
1791
|
+
@BackGroundColor = params['BackGroundColor']
|
1792
|
+
@BackgroundImageUrl = params['BackgroundImageUrl']
|
1793
|
+
unless params['CustomCrop'].nil?
|
1794
|
+
@CustomCrop = McuCustomCrop.new
|
1795
|
+
@CustomCrop.deserialize(params['CustomCrop'])
|
1796
|
+
end
|
1797
|
+
end
|
1798
|
+
end
|
1799
|
+
|
1800
|
+
# 混流布局参数。
|
1801
|
+
class McuLayoutParams < TencentCloud::Common::AbstractModel
|
1802
|
+
# @param MixLayoutMode: 布局模式:动态布局(1:悬浮布局(默认),2:屏幕分享布局,3:九宫格布局),静态布局(4:自定义布局)。
|
1803
|
+
# @type MixLayoutMode: Integer
|
1804
|
+
# @param PureAudioHoldPlaceMode: 纯音频上行是否占布局位置,只在动态布局中有效。0表示纯音频占布局位置,1表示纯音频不占布局位置,不填默认为0。
|
1805
|
+
# @type PureAudioHoldPlaceMode: Integer
|
1806
|
+
# @param MixLayoutList: 自定义模板中有效,指定用户视频在混合画面中的位置。
|
1807
|
+
# @type MixLayoutList: Array
|
1808
|
+
# @param MaxVideoUser: 指定动态布局中悬浮布局和屏幕分享布局的大画面信息,只在悬浮布局和屏幕分享布局有效。
|
1809
|
+
# @type MaxVideoUser: :class:`Tencentcloud::Trtc.v20190722.models.MaxVideoUser`
|
1810
|
+
|
1811
|
+
attr_accessor :MixLayoutMode, :PureAudioHoldPlaceMode, :MixLayoutList, :MaxVideoUser
|
1812
|
+
|
1813
|
+
def initialize(mixlayoutmode=nil, pureaudioholdplacemode=nil, mixlayoutlist=nil, maxvideouser=nil)
|
1814
|
+
@MixLayoutMode = mixlayoutmode
|
1815
|
+
@PureAudioHoldPlaceMode = pureaudioholdplacemode
|
1816
|
+
@MixLayoutList = mixlayoutlist
|
1817
|
+
@MaxVideoUser = maxvideouser
|
1818
|
+
end
|
1819
|
+
|
1820
|
+
def deserialize(params)
|
1821
|
+
@MixLayoutMode = params['MixLayoutMode']
|
1822
|
+
@PureAudioHoldPlaceMode = params['PureAudioHoldPlaceMode']
|
1823
|
+
unless params['MixLayoutList'].nil?
|
1824
|
+
@MixLayoutList = []
|
1825
|
+
params['MixLayoutList'].each do |i|
|
1826
|
+
mculayout_tmp = McuLayout.new
|
1827
|
+
mculayout_tmp.deserialize(i)
|
1828
|
+
@MixLayoutList << mculayout_tmp
|
1829
|
+
end
|
1830
|
+
end
|
1831
|
+
unless params['MaxVideoUser'].nil?
|
1832
|
+
@MaxVideoUser = MaxVideoUser.new
|
1833
|
+
@MaxVideoUser.deserialize(params['MaxVideoUser'])
|
1834
|
+
end
|
1835
|
+
end
|
1836
|
+
end
|
1837
|
+
|
1838
|
+
# 音量布局SEI参数,可以自定义AppData和PayloadType类型。
|
1839
|
+
# 该参数内容可以为空,表示携带默认的音量布局SEI。
|
1840
|
+
class McuLayoutVolume < TencentCloud::Common::AbstractModel
|
1841
|
+
# @param AppData: AppData的内容,会被写入自定义SEI中的app_data字段,长度需小于4096。
|
1842
|
+
# @type AppData: String
|
1843
|
+
# @param PayloadType: SEI消息的payload_type,默认值100,取值范围100-254(244除外,244为我们内部自定义的时间戳SEI)
|
1844
|
+
# @type PayloadType: Integer
|
1845
|
+
|
1846
|
+
attr_accessor :AppData, :PayloadType
|
1847
|
+
|
1848
|
+
def initialize(appdata=nil, payloadtype=nil)
|
1849
|
+
@AppData = appdata
|
1850
|
+
@PayloadType = payloadtype
|
1851
|
+
end
|
1852
|
+
|
1853
|
+
def deserialize(params)
|
1854
|
+
@AppData = params['AppData']
|
1855
|
+
@PayloadType = params['PayloadType']
|
1856
|
+
end
|
1857
|
+
end
|
1858
|
+
|
1859
|
+
# 自定义透传SEI
|
1860
|
+
class McuPassThrough < TencentCloud::Common::AbstractModel
|
1861
|
+
# @param PayloadContent: 透传SEI的payload内容。
|
1862
|
+
# @type PayloadContent: String
|
1863
|
+
# @param PayloadType: SEI消息的payload_type,取值范围5、100-254(244除外,244为我们内部自定义的时间戳SEI)。
|
1864
|
+
# @type PayloadType: Integer
|
1865
|
+
# @param PayloadUuid: PayloadType为5,PayloadUuid必须填写。PayloadType不是5时,不需要填写,填写会被后台忽略。该值必须是32长度的十六进制。
|
1866
|
+
# @type PayloadUuid: String
|
1867
|
+
|
1868
|
+
attr_accessor :PayloadContent, :PayloadType, :PayloadUuid
|
1869
|
+
|
1870
|
+
def initialize(payloadcontent=nil, payloadtype=nil, payloaduuid=nil)
|
1871
|
+
@PayloadContent = payloadcontent
|
1872
|
+
@PayloadType = payloadtype
|
1873
|
+
@PayloadUuid = payloaduuid
|
1874
|
+
end
|
1875
|
+
|
1876
|
+
def deserialize(params)
|
1877
|
+
@PayloadContent = params['PayloadContent']
|
1878
|
+
@PayloadType = params['PayloadType']
|
1879
|
+
@PayloadUuid = params['PayloadUuid']
|
1880
|
+
end
|
1881
|
+
end
|
1882
|
+
|
1883
|
+
# 转推参数。
|
1884
|
+
class McuPublishCdnParam < TencentCloud::Common::AbstractModel
|
1885
|
+
# @param PublishCdnUrl: CDN转推URL。
|
1886
|
+
# @type PublishCdnUrl: String
|
1887
|
+
# @param IsTencentCdn: 是否是腾讯云CDN,0为转推非腾讯云CDN,1为转推腾讯CDN。注意:为避免默认值误产生转推费用,该参数建议明确填写。转推非腾讯云CDN时会产生转推费用,详情参见接口文档说明。
|
1888
|
+
# @type IsTencentCdn: Integer
|
1889
|
+
|
1890
|
+
attr_accessor :PublishCdnUrl, :IsTencentCdn
|
1891
|
+
|
1892
|
+
def initialize(publishcdnurl=nil, istencentcdn=nil)
|
1893
|
+
@PublishCdnUrl = publishcdnurl
|
1894
|
+
@IsTencentCdn = istencentcdn
|
1895
|
+
end
|
1896
|
+
|
1897
|
+
def deserialize(params)
|
1898
|
+
@PublishCdnUrl = params['PublishCdnUrl']
|
1899
|
+
@IsTencentCdn = params['IsTencentCdn']
|
1900
|
+
end
|
1901
|
+
end
|
1902
|
+
|
1903
|
+
# 混流SEI参数
|
1904
|
+
class McuSeiParams < TencentCloud::Common::AbstractModel
|
1905
|
+
# @param LayoutVolume: 音量布局SEI
|
1906
|
+
# @type LayoutVolume: :class:`Tencentcloud::Trtc.v20190722.models.McuLayoutVolume`
|
1907
|
+
# @param PassThrough: 透传SEI
|
1908
|
+
# @type PassThrough: :class:`Tencentcloud::Trtc.v20190722.models.McuPassThrough`
|
1909
|
+
|
1910
|
+
attr_accessor :LayoutVolume, :PassThrough
|
1911
|
+
|
1912
|
+
def initialize(layoutvolume=nil, passthrough=nil)
|
1913
|
+
@LayoutVolume = layoutvolume
|
1914
|
+
@PassThrough = passthrough
|
1915
|
+
end
|
1916
|
+
|
1917
|
+
def deserialize(params)
|
1918
|
+
unless params['LayoutVolume'].nil?
|
1919
|
+
@LayoutVolume = McuLayoutVolume.new
|
1920
|
+
@LayoutVolume.deserialize(params['LayoutVolume'])
|
1921
|
+
end
|
1922
|
+
unless params['PassThrough'].nil?
|
1923
|
+
@PassThrough = McuPassThrough.new
|
1924
|
+
@PassThrough.deserialize(params['PassThrough'])
|
1925
|
+
end
|
1926
|
+
end
|
1927
|
+
end
|
1928
|
+
|
1929
|
+
# 混流用户参数
|
1930
|
+
class McuUserInfoParams < TencentCloud::Common::AbstractModel
|
1931
|
+
# @param UserInfo: 用户参数。
|
1932
|
+
# @type UserInfo: :class:`Tencentcloud::Trtc.v20190722.models.MixUserInfo`
|
1933
|
+
|
1934
|
+
attr_accessor :UserInfo
|
1935
|
+
|
1936
|
+
def initialize(userinfo=nil)
|
1937
|
+
@UserInfo = userinfo
|
1938
|
+
end
|
1939
|
+
|
1940
|
+
def deserialize(params)
|
1941
|
+
unless params['UserInfo'].nil?
|
1942
|
+
@UserInfo = MixUserInfo.new
|
1943
|
+
@UserInfo.deserialize(params['UserInfo'])
|
1944
|
+
end
|
1945
|
+
end
|
1946
|
+
end
|
1947
|
+
|
1948
|
+
# 混流转推的视频相关参数。
|
1949
|
+
class McuVideoParams < TencentCloud::Common::AbstractModel
|
1950
|
+
# @param VideoEncode: 输出流视频编码参数。
|
1951
|
+
# @type VideoEncode: :class:`Tencentcloud::Trtc.v20190722.models.VideoEncode`
|
1952
|
+
# @param LayoutParams: 混流布局参数。
|
1953
|
+
# @type LayoutParams: :class:`Tencentcloud::Trtc.v20190722.models.McuLayoutParams`
|
1954
|
+
# @param BackGroundColor: 整个画布背景颜色,常用的颜色有:
|
1955
|
+
# 红色:0xcc0033。
|
1956
|
+
# 黄色:0xcc9900。
|
1957
|
+
# 绿色:0xcccc33。
|
1958
|
+
# 蓝色:0x99CCFF。
|
1959
|
+
# 黑色:0x000000。
|
1960
|
+
# 白色:0xFFFFFF。
|
1961
|
+
# 灰色:0x999999。
|
1962
|
+
# @type BackGroundColor: String
|
1963
|
+
# @param BackgroundImageUrl: 整个画布的背景图url,优先级高于BackGroundColor。
|
1964
|
+
# @type BackgroundImageUrl: String
|
1965
|
+
# @param WaterMarkList: 混流布局的水印参数。
|
1966
|
+
# @type WaterMarkList: Array
|
1967
|
+
|
1968
|
+
attr_accessor :VideoEncode, :LayoutParams, :BackGroundColor, :BackgroundImageUrl, :WaterMarkList
|
1969
|
+
|
1970
|
+
def initialize(videoencode=nil, layoutparams=nil, backgroundcolor=nil, backgroundimageurl=nil, watermarklist=nil)
|
1971
|
+
@VideoEncode = videoencode
|
1972
|
+
@LayoutParams = layoutparams
|
1973
|
+
@BackGroundColor = backgroundcolor
|
1974
|
+
@BackgroundImageUrl = backgroundimageurl
|
1975
|
+
@WaterMarkList = watermarklist
|
1976
|
+
end
|
1977
|
+
|
1978
|
+
def deserialize(params)
|
1979
|
+
unless params['VideoEncode'].nil?
|
1980
|
+
@VideoEncode = VideoEncode.new
|
1981
|
+
@VideoEncode.deserialize(params['VideoEncode'])
|
1982
|
+
end
|
1983
|
+
unless params['LayoutParams'].nil?
|
1984
|
+
@LayoutParams = McuLayoutParams.new
|
1985
|
+
@LayoutParams.deserialize(params['LayoutParams'])
|
1986
|
+
end
|
1987
|
+
@BackGroundColor = params['BackGroundColor']
|
1988
|
+
@BackgroundImageUrl = params['BackgroundImageUrl']
|
1989
|
+
unless params['WaterMarkList'].nil?
|
1990
|
+
@WaterMarkList = []
|
1991
|
+
params['WaterMarkList'].each do |i|
|
1992
|
+
mcuwatermarkparams_tmp = McuWaterMarkParams.new
|
1993
|
+
mcuwatermarkparams_tmp.deserialize(i)
|
1994
|
+
@WaterMarkList << mcuwatermarkparams_tmp
|
1995
|
+
end
|
1996
|
+
end
|
1997
|
+
end
|
1998
|
+
end
|
1999
|
+
|
2000
|
+
# 图片水印参数。
|
2001
|
+
class McuWaterMarkImage < TencentCloud::Common::AbstractModel
|
2002
|
+
# @param WaterMarkUrl: 水印图片URL地址,支持png、jpg、jpeg格式。图片大小限制不超过5MB。
|
2003
|
+
# @type WaterMarkUrl: String
|
2004
|
+
# @param WaterMarkWidth: 水印在输出时的宽。单位为像素值。
|
2005
|
+
# @type WaterMarkWidth: Integer
|
2006
|
+
# @param WaterMarkHeight: 水印在输出时的高。单位为像素值。
|
2007
|
+
# @type WaterMarkHeight: Integer
|
2008
|
+
# @param LocationX: 水印在输出时的X偏移。单位为像素值。
|
2009
|
+
# @type LocationX: Integer
|
2010
|
+
# @param LocationY: 水印在输出时的Y偏移。单位为像素值。
|
2011
|
+
# @type LocationY: Integer
|
2012
|
+
# @param ZOrder: 水印在输出时的层级,不填默认为0。
|
2013
|
+
# @type ZOrder: Integer
|
2014
|
+
|
2015
|
+
attr_accessor :WaterMarkUrl, :WaterMarkWidth, :WaterMarkHeight, :LocationX, :LocationY, :ZOrder
|
2016
|
+
|
2017
|
+
def initialize(watermarkurl=nil, watermarkwidth=nil, watermarkheight=nil, locationx=nil, locationy=nil, zorder=nil)
|
2018
|
+
@WaterMarkUrl = watermarkurl
|
2019
|
+
@WaterMarkWidth = watermarkwidth
|
2020
|
+
@WaterMarkHeight = watermarkheight
|
2021
|
+
@LocationX = locationx
|
2022
|
+
@LocationY = locationy
|
2023
|
+
@ZOrder = zorder
|
2024
|
+
end
|
2025
|
+
|
2026
|
+
def deserialize(params)
|
2027
|
+
@WaterMarkUrl = params['WaterMarkUrl']
|
2028
|
+
@WaterMarkWidth = params['WaterMarkWidth']
|
2029
|
+
@WaterMarkHeight = params['WaterMarkHeight']
|
2030
|
+
@LocationX = params['LocationX']
|
2031
|
+
@LocationY = params['LocationY']
|
2032
|
+
@ZOrder = params['ZOrder']
|
2033
|
+
end
|
2034
|
+
end
|
2035
|
+
|
2036
|
+
# 水印参数。
|
2037
|
+
class McuWaterMarkParams < TencentCloud::Common::AbstractModel
|
2038
|
+
# @param WaterMarkType: 水印类型,0为图片(默认)。
|
2039
|
+
# @type WaterMarkType: Integer
|
2040
|
+
# @param WaterMarkImage: 图片水印参数。WaterMarkType为0指定。
|
2041
|
+
# @type WaterMarkImage: :class:`Tencentcloud::Trtc.v20190722.models.McuWaterMarkImage`
|
2042
|
+
|
2043
|
+
attr_accessor :WaterMarkType, :WaterMarkImage
|
2044
|
+
|
2045
|
+
def initialize(watermarktype=nil, watermarkimage=nil)
|
2046
|
+
@WaterMarkType = watermarktype
|
2047
|
+
@WaterMarkImage = watermarkimage
|
2048
|
+
end
|
2049
|
+
|
2050
|
+
def deserialize(params)
|
2051
|
+
@WaterMarkType = params['WaterMarkType']
|
2052
|
+
unless params['WaterMarkImage'].nil?
|
2053
|
+
@WaterMarkImage = McuWaterMarkImage.new
|
2054
|
+
@WaterMarkImage.deserialize(params['WaterMarkImage'])
|
2055
|
+
end
|
2056
|
+
end
|
2057
|
+
end
|
2058
|
+
|
1606
2059
|
# 用户自定义混流布局参数列表。
|
1607
2060
|
class MixLayout < TencentCloud::Common::AbstractModel
|
1608
2061
|
# @param Top: 画布上该画面左上角的 y 轴坐标,取值范围 [0, 1920],不能超过画布的高。
|
@@ -1770,6 +2223,30 @@ module TencentCloud
|
|
1770
2223
|
end
|
1771
2224
|
end
|
1772
2225
|
|
2226
|
+
# TRTC用户参数。
|
2227
|
+
class MixUserInfo < TencentCloud::Common::AbstractModel
|
2228
|
+
# @param UserId: 用户ID。
|
2229
|
+
# @type UserId: String
|
2230
|
+
# @param RoomId: 动态布局时房间信息必须和主房间信息保持一致,自定义布局时房间信息必须和MixLayoutList中对应用户的房间信息保持一致,不填时默认与主房间信息一致。
|
2231
|
+
# @type RoomId: String
|
2232
|
+
# @param RoomIdType: 房间号类型,0为整形房间号,1为字符串房间号。
|
2233
|
+
# @type RoomIdType: Integer
|
2234
|
+
|
2235
|
+
attr_accessor :UserId, :RoomId, :RoomIdType
|
2236
|
+
|
2237
|
+
def initialize(userid=nil, roomid=nil, roomidtype=nil)
|
2238
|
+
@UserId = userid
|
2239
|
+
@RoomId = roomid
|
2240
|
+
@RoomIdType = roomidtype
|
2241
|
+
end
|
2242
|
+
|
2243
|
+
def deserialize(params)
|
2244
|
+
@UserId = params['UserId']
|
2245
|
+
@RoomId = params['RoomId']
|
2246
|
+
@RoomIdType = params['RoomIdType']
|
2247
|
+
end
|
2248
|
+
end
|
2249
|
+
|
1773
2250
|
# ModifyCloudRecording请求参数结构体
|
1774
2251
|
class ModifyCloudRecordingRequest < TencentCloud::Common::AbstractModel
|
1775
2252
|
# @param SdkAppId: TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同。
|
@@ -2405,6 +2882,25 @@ module TencentCloud
|
|
2405
2882
|
end
|
2406
2883
|
end
|
2407
2884
|
|
2885
|
+
# 单流旁路转推的用户上行信息。
|
2886
|
+
class SingleSubscribeParams < TencentCloud::Common::AbstractModel
|
2887
|
+
# @param UserMediaStream: 用户媒体流参数。
|
2888
|
+
# @type UserMediaStream: :class:`Tencentcloud::Trtc.v20190722.models.UserMediaStream`
|
2889
|
+
|
2890
|
+
attr_accessor :UserMediaStream
|
2891
|
+
|
2892
|
+
def initialize(usermediastream=nil)
|
2893
|
+
@UserMediaStream = usermediastream
|
2894
|
+
end
|
2895
|
+
|
2896
|
+
def deserialize(params)
|
2897
|
+
unless params['UserMediaStream'].nil?
|
2898
|
+
@UserMediaStream = UserMediaStream.new
|
2899
|
+
@UserMediaStream.deserialize(params['UserMediaStream'])
|
2900
|
+
end
|
2901
|
+
end
|
2902
|
+
end
|
2903
|
+
|
2408
2904
|
# 画中画模板中有效,代表小画面的布局参数
|
2409
2905
|
class SmallVideoLayoutParams < TencentCloud::Common::AbstractModel
|
2410
2906
|
# @param UserId: 代表小画面对应的用户ID。
|
@@ -2569,6 +3065,100 @@ module TencentCloud
|
|
2569
3065
|
end
|
2570
3066
|
end
|
2571
3067
|
|
3068
|
+
# StartPublishCdnStream请求参数结构体
|
3069
|
+
class StartPublishCdnStreamRequest < TencentCloud::Common::AbstractModel
|
3070
|
+
# @param SdkAppId: TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和转推的房间所对应的SdkAppId相同。
|
3071
|
+
# @type SdkAppId: Integer
|
3072
|
+
# @param RoomId: 主房间信息RoomId,转推的TRTC房间所对应的RoomId。
|
3073
|
+
# @type RoomId: String
|
3074
|
+
# @param RoomIdType: 主房间信息RoomType,必须和转推的房间所对应的RoomId类型相同,0为整形房间号,1为字符串房间号。
|
3075
|
+
# @type RoomIdType: Integer
|
3076
|
+
# @param AgentParams: 转推服务加入TRTC房间的机器人参数。
|
3077
|
+
# @type AgentParams: :class:`Tencentcloud::Trtc.v20190722.models.AgentParams`
|
3078
|
+
# @param WithTranscoding: 是否转码,0表示无需转码,1表示需要转码。
|
3079
|
+
# @type WithTranscoding: Integer
|
3080
|
+
# @param AudioParams: 转推流的音频编码参数。
|
3081
|
+
# @type AudioParams: :class:`Tencentcloud::Trtc.v20190722.models.McuAudioParams`
|
3082
|
+
# @param VideoParams: 转推流的视频编码参数,不填表示纯音频转推。
|
3083
|
+
# @type VideoParams: :class:`Tencentcloud::Trtc.v20190722.models.McuVideoParams`
|
3084
|
+
# @param SingleSubscribeParams: 需要单流旁路转推的用户上行参数,单流旁路转推时,WithTranscoding需要设置为0。
|
3085
|
+
# @type SingleSubscribeParams: :class:`Tencentcloud::Trtc.v20190722.models.SingleSubscribeParams`
|
3086
|
+
# @param PublishCdnParams: 转推的CDN参数。
|
3087
|
+
# @type PublishCdnParams: Array
|
3088
|
+
# @param SeiParams: 混流SEI参数
|
3089
|
+
# @type SeiParams: :class:`Tencentcloud::Trtc.v20190722.models.McuSeiParams`
|
3090
|
+
|
3091
|
+
attr_accessor :SdkAppId, :RoomId, :RoomIdType, :AgentParams, :WithTranscoding, :AudioParams, :VideoParams, :SingleSubscribeParams, :PublishCdnParams, :SeiParams
|
3092
|
+
|
3093
|
+
def initialize(sdkappid=nil, roomid=nil, roomidtype=nil, agentparams=nil, withtranscoding=nil, audioparams=nil, videoparams=nil, singlesubscribeparams=nil, publishcdnparams=nil, seiparams=nil)
|
3094
|
+
@SdkAppId = sdkappid
|
3095
|
+
@RoomId = roomid
|
3096
|
+
@RoomIdType = roomidtype
|
3097
|
+
@AgentParams = agentparams
|
3098
|
+
@WithTranscoding = withtranscoding
|
3099
|
+
@AudioParams = audioparams
|
3100
|
+
@VideoParams = videoparams
|
3101
|
+
@SingleSubscribeParams = singlesubscribeparams
|
3102
|
+
@PublishCdnParams = publishcdnparams
|
3103
|
+
@SeiParams = seiparams
|
3104
|
+
end
|
3105
|
+
|
3106
|
+
def deserialize(params)
|
3107
|
+
@SdkAppId = params['SdkAppId']
|
3108
|
+
@RoomId = params['RoomId']
|
3109
|
+
@RoomIdType = params['RoomIdType']
|
3110
|
+
unless params['AgentParams'].nil?
|
3111
|
+
@AgentParams = AgentParams.new
|
3112
|
+
@AgentParams.deserialize(params['AgentParams'])
|
3113
|
+
end
|
3114
|
+
@WithTranscoding = params['WithTranscoding']
|
3115
|
+
unless params['AudioParams'].nil?
|
3116
|
+
@AudioParams = McuAudioParams.new
|
3117
|
+
@AudioParams.deserialize(params['AudioParams'])
|
3118
|
+
end
|
3119
|
+
unless params['VideoParams'].nil?
|
3120
|
+
@VideoParams = McuVideoParams.new
|
3121
|
+
@VideoParams.deserialize(params['VideoParams'])
|
3122
|
+
end
|
3123
|
+
unless params['SingleSubscribeParams'].nil?
|
3124
|
+
@SingleSubscribeParams = SingleSubscribeParams.new
|
3125
|
+
@SingleSubscribeParams.deserialize(params['SingleSubscribeParams'])
|
3126
|
+
end
|
3127
|
+
unless params['PublishCdnParams'].nil?
|
3128
|
+
@PublishCdnParams = []
|
3129
|
+
params['PublishCdnParams'].each do |i|
|
3130
|
+
mcupublishcdnparam_tmp = McuPublishCdnParam.new
|
3131
|
+
mcupublishcdnparam_tmp.deserialize(i)
|
3132
|
+
@PublishCdnParams << mcupublishcdnparam_tmp
|
3133
|
+
end
|
3134
|
+
end
|
3135
|
+
unless params['SeiParams'].nil?
|
3136
|
+
@SeiParams = McuSeiParams.new
|
3137
|
+
@SeiParams.deserialize(params['SeiParams'])
|
3138
|
+
end
|
3139
|
+
end
|
3140
|
+
end
|
3141
|
+
|
3142
|
+
# StartPublishCdnStream返回参数结构体
|
3143
|
+
class StartPublishCdnStreamResponse < TencentCloud::Common::AbstractModel
|
3144
|
+
# @param TaskId: 用于唯一标识转推任务,由腾讯云服务端生成,后续更新和停止请求都需要携带TaskiD参数。
|
3145
|
+
# @type TaskId: String
|
3146
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3147
|
+
# @type RequestId: String
|
3148
|
+
|
3149
|
+
attr_accessor :TaskId, :RequestId
|
3150
|
+
|
3151
|
+
def initialize(taskid=nil, requestid=nil)
|
3152
|
+
@TaskId = taskid
|
3153
|
+
@RequestId = requestid
|
3154
|
+
end
|
3155
|
+
|
3156
|
+
def deserialize(params)
|
3157
|
+
@TaskId = params['TaskId']
|
3158
|
+
@RequestId = params['RequestId']
|
3159
|
+
end
|
3160
|
+
end
|
3161
|
+
|
2572
3162
|
# StopMCUMixTranscodeByStrRoomId请求参数结构体
|
2573
3163
|
class StopMCUMixTranscodeByStrRoomIdRequest < TencentCloud::Common::AbstractModel
|
2574
3164
|
# @param SdkAppId: TRTC的SDKAppId。
|
@@ -2641,6 +3231,46 @@ module TencentCloud
|
|
2641
3231
|
end
|
2642
3232
|
end
|
2643
3233
|
|
3234
|
+
# StopPublishCdnStream请求参数结构体
|
3235
|
+
class StopPublishCdnStreamRequest < TencentCloud::Common::AbstractModel
|
3236
|
+
# @param SdkAppId: TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和转推的房间所对应的SdkAppId相同。
|
3237
|
+
# @type SdkAppId: Integer
|
3238
|
+
# @param TaskId: 唯一标识转推任务。
|
3239
|
+
# @type TaskId: String
|
3240
|
+
|
3241
|
+
attr_accessor :SdkAppId, :TaskId
|
3242
|
+
|
3243
|
+
def initialize(sdkappid=nil, taskid=nil)
|
3244
|
+
@SdkAppId = sdkappid
|
3245
|
+
@TaskId = taskid
|
3246
|
+
end
|
3247
|
+
|
3248
|
+
def deserialize(params)
|
3249
|
+
@SdkAppId = params['SdkAppId']
|
3250
|
+
@TaskId = params['TaskId']
|
3251
|
+
end
|
3252
|
+
end
|
3253
|
+
|
3254
|
+
# StopPublishCdnStream返回参数结构体
|
3255
|
+
class StopPublishCdnStreamResponse < TencentCloud::Common::AbstractModel
|
3256
|
+
# @param TaskId: 转推任务唯一的String Id
|
3257
|
+
# @type TaskId: String
|
3258
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3259
|
+
# @type RequestId: String
|
3260
|
+
|
3261
|
+
attr_accessor :TaskId, :RequestId
|
3262
|
+
|
3263
|
+
def initialize(taskid=nil, requestid=nil)
|
3264
|
+
@TaskId = taskid
|
3265
|
+
@RequestId = requestid
|
3266
|
+
end
|
3267
|
+
|
3268
|
+
def deserialize(params)
|
3269
|
+
@TaskId = params['TaskId']
|
3270
|
+
@RequestId = params['RequestId']
|
3271
|
+
end
|
3272
|
+
end
|
3273
|
+
|
2644
3274
|
# 云端录制查询接口,录制文件的信息
|
2645
3275
|
class StorageFile < TencentCloud::Common::AbstractModel
|
2646
3276
|
# @param UserId: 录制文件对应的UserId,如果是混流的话的这里返回的是空串。
|
@@ -2865,6 +3495,93 @@ module TencentCloud
|
|
2865
3495
|
end
|
2866
3496
|
end
|
2867
3497
|
|
3498
|
+
# UpdatePublishCdnStream请求参数结构体
|
3499
|
+
class UpdatePublishCdnStreamRequest < TencentCloud::Common::AbstractModel
|
3500
|
+
# @param SdkAppId: TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和转推的房间所对应的SdkAppId相同。
|
3501
|
+
# @type SdkAppId: Integer
|
3502
|
+
# @param TaskId: 唯一标识转推任务。
|
3503
|
+
# @type TaskId: String
|
3504
|
+
# @param SequenceNumber: 客户保证同一个任务,每次更新请求中的SequenceNumber递增,防止请求乱序。
|
3505
|
+
# @type SequenceNumber: Integer
|
3506
|
+
# @param WithTranscoding: 是否转码,0表示无需转码,1表示需要转码。
|
3507
|
+
# @type WithTranscoding: Integer
|
3508
|
+
# @param AudioParams: 更新相关参数,只支持更新参与混音的主播列表参数。不填表示不更新此参数。
|
3509
|
+
# @type AudioParams: :class:`Tencentcloud::Trtc.v20190722.models.McuAudioParams`
|
3510
|
+
# @param VideoParams: 更新视频相关参数,转码时支持更新除编码类型之外的编码参数,视频布局参数,背景图片和背景颜色参数,水印参数。不填表示不更新此参数。
|
3511
|
+
# @type VideoParams: :class:`Tencentcloud::Trtc.v20190722.models.McuVideoParams`
|
3512
|
+
# @param SingleSubscribeParams: 更新单流转推的用户上行参数,仅在非转码时有效。不填表示不更新此参数。
|
3513
|
+
# @type SingleSubscribeParams: :class:`Tencentcloud::Trtc.v20190722.models.SingleSubscribeParams`
|
3514
|
+
# @param PublishCdnParams: 更新转推的CDN参数。不填表示不更新此参数。
|
3515
|
+
# @type PublishCdnParams: Array
|
3516
|
+
# @param SeiParams: 混流SEI参数
|
3517
|
+
# @type SeiParams: :class:`Tencentcloud::Trtc.v20190722.models.McuSeiParams`
|
3518
|
+
|
3519
|
+
attr_accessor :SdkAppId, :TaskId, :SequenceNumber, :WithTranscoding, :AudioParams, :VideoParams, :SingleSubscribeParams, :PublishCdnParams, :SeiParams
|
3520
|
+
|
3521
|
+
def initialize(sdkappid=nil, taskid=nil, sequencenumber=nil, withtranscoding=nil, audioparams=nil, videoparams=nil, singlesubscribeparams=nil, publishcdnparams=nil, seiparams=nil)
|
3522
|
+
@SdkAppId = sdkappid
|
3523
|
+
@TaskId = taskid
|
3524
|
+
@SequenceNumber = sequencenumber
|
3525
|
+
@WithTranscoding = withtranscoding
|
3526
|
+
@AudioParams = audioparams
|
3527
|
+
@VideoParams = videoparams
|
3528
|
+
@SingleSubscribeParams = singlesubscribeparams
|
3529
|
+
@PublishCdnParams = publishcdnparams
|
3530
|
+
@SeiParams = seiparams
|
3531
|
+
end
|
3532
|
+
|
3533
|
+
def deserialize(params)
|
3534
|
+
@SdkAppId = params['SdkAppId']
|
3535
|
+
@TaskId = params['TaskId']
|
3536
|
+
@SequenceNumber = params['SequenceNumber']
|
3537
|
+
@WithTranscoding = params['WithTranscoding']
|
3538
|
+
unless params['AudioParams'].nil?
|
3539
|
+
@AudioParams = McuAudioParams.new
|
3540
|
+
@AudioParams.deserialize(params['AudioParams'])
|
3541
|
+
end
|
3542
|
+
unless params['VideoParams'].nil?
|
3543
|
+
@VideoParams = McuVideoParams.new
|
3544
|
+
@VideoParams.deserialize(params['VideoParams'])
|
3545
|
+
end
|
3546
|
+
unless params['SingleSubscribeParams'].nil?
|
3547
|
+
@SingleSubscribeParams = SingleSubscribeParams.new
|
3548
|
+
@SingleSubscribeParams.deserialize(params['SingleSubscribeParams'])
|
3549
|
+
end
|
3550
|
+
unless params['PublishCdnParams'].nil?
|
3551
|
+
@PublishCdnParams = []
|
3552
|
+
params['PublishCdnParams'].each do |i|
|
3553
|
+
mcupublishcdnparam_tmp = McuPublishCdnParam.new
|
3554
|
+
mcupublishcdnparam_tmp.deserialize(i)
|
3555
|
+
@PublishCdnParams << mcupublishcdnparam_tmp
|
3556
|
+
end
|
3557
|
+
end
|
3558
|
+
unless params['SeiParams'].nil?
|
3559
|
+
@SeiParams = McuSeiParams.new
|
3560
|
+
@SeiParams.deserialize(params['SeiParams'])
|
3561
|
+
end
|
3562
|
+
end
|
3563
|
+
end
|
3564
|
+
|
3565
|
+
# UpdatePublishCdnStream返回参数结构体
|
3566
|
+
class UpdatePublishCdnStreamResponse < TencentCloud::Common::AbstractModel
|
3567
|
+
# @param TaskId: 转推任务唯一的String Id
|
3568
|
+
# @type TaskId: String
|
3569
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3570
|
+
# @type RequestId: String
|
3571
|
+
|
3572
|
+
attr_accessor :TaskId, :RequestId
|
3573
|
+
|
3574
|
+
def initialize(taskid=nil, requestid=nil)
|
3575
|
+
@TaskId = taskid
|
3576
|
+
@RequestId = requestid
|
3577
|
+
end
|
3578
|
+
|
3579
|
+
def deserialize(params)
|
3580
|
+
@TaskId = params['TaskId']
|
3581
|
+
@RequestId = params['RequestId']
|
3582
|
+
end
|
3583
|
+
end
|
3584
|
+
|
2868
3585
|
# 用户信息,包括用户进房时间,退房时间等
|
2869
3586
|
class UserInformation < TencentCloud::Common::AbstractModel
|
2870
3587
|
# @param RoomStr: 房间号
|
@@ -2909,6 +3626,61 @@ module TencentCloud
|
|
2909
3626
|
end
|
2910
3627
|
end
|
2911
3628
|
|
3629
|
+
# 用户媒体流参数。
|
3630
|
+
class UserMediaStream < TencentCloud::Common::AbstractModel
|
3631
|
+
# @param UserInfo: TRTC用户参数。
|
3632
|
+
# @type UserInfo: :class:`Tencentcloud::Trtc.v20190722.models.MixUserInfo`
|
3633
|
+
# @param StreamType: 主辅路流类型,0为摄像头,1为屏幕分享,不填默认为0。
|
3634
|
+
# @type StreamType: Integer
|
3635
|
+
|
3636
|
+
attr_accessor :UserInfo, :StreamType
|
3637
|
+
|
3638
|
+
def initialize(userinfo=nil, streamtype=nil)
|
3639
|
+
@UserInfo = userinfo
|
3640
|
+
@StreamType = streamtype
|
3641
|
+
end
|
3642
|
+
|
3643
|
+
def deserialize(params)
|
3644
|
+
unless params['UserInfo'].nil?
|
3645
|
+
@UserInfo = MixUserInfo.new
|
3646
|
+
@UserInfo.deserialize(params['UserInfo'])
|
3647
|
+
end
|
3648
|
+
@StreamType = params['StreamType']
|
3649
|
+
end
|
3650
|
+
end
|
3651
|
+
|
3652
|
+
# 视频编码参数。
|
3653
|
+
class VideoEncode < TencentCloud::Common::AbstractModel
|
3654
|
+
# @param Width: 输出流宽,音视频输出时必填。取值范围[0,1920],单位为像素值。
|
3655
|
+
# @type Width: Integer
|
3656
|
+
# @param Height: 输出流高,音视频输出时必填。取值范围[0,1080],单位为像素值。
|
3657
|
+
# @type Height: Integer
|
3658
|
+
# @param Fps: 输出流帧率,音视频输出时必填。取值范围[1,60],表示混流的输出帧率可选范围为1到60fps。
|
3659
|
+
# @type Fps: Integer
|
3660
|
+
# @param BitRate: 输出流码率,音视频输出时必填。取值范围[1,10000],单位为kbps。
|
3661
|
+
# @type BitRate: Integer
|
3662
|
+
# @param Gop: 输出流gop,音视频输出时必填。取值范围[1,5],单位为秒。
|
3663
|
+
# @type Gop: Integer
|
3664
|
+
|
3665
|
+
attr_accessor :Width, :Height, :Fps, :BitRate, :Gop
|
3666
|
+
|
3667
|
+
def initialize(width=nil, height=nil, fps=nil, bitrate=nil, gop=nil)
|
3668
|
+
@Width = width
|
3669
|
+
@Height = height
|
3670
|
+
@Fps = fps
|
3671
|
+
@BitRate = bitrate
|
3672
|
+
@Gop = gop
|
3673
|
+
end
|
3674
|
+
|
3675
|
+
def deserialize(params)
|
3676
|
+
@Width = params['Width']
|
3677
|
+
@Height = params['Height']
|
3678
|
+
@Fps = params['Fps']
|
3679
|
+
@BitRate = params['BitRate']
|
3680
|
+
@Gop = params['Gop']
|
3681
|
+
end
|
3682
|
+
end
|
3683
|
+
|
2912
3684
|
# 录制视频转码参数。
|
2913
3685
|
class VideoParams < TencentCloud::Common::AbstractModel
|
2914
3686
|
# @param Width: 视频的宽度值,单位为像素,默认值360。不能超过1920,与height的乘积不能超过1920*1080。
|
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.429
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|