tencentcloud-sdk-trtc 3.0.427 → 3.0.429
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/client.rb +207 -0
- data/lib/v20190722/models.rb +1081 -57
- metadata +2 -2
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: 音频采样率:
|
@@ -613,6 +665,62 @@ module TencentCloud
|
|
613
665
|
end
|
614
666
|
end
|
615
667
|
|
668
|
+
# DescribeMixTranscodingUsage请求参数结构体
|
669
|
+
class DescribeMixTranscodingUsageRequest < TencentCloud::Common::AbstractModel
|
670
|
+
# @param StartTime: 查询开始时间,格式为YYYY-MM-DD。
|
671
|
+
# @type StartTime: String
|
672
|
+
# @param EndTime: 查询结束时间,格式为YYYY-MM-DD。
|
673
|
+
# 单次查询统计区间最多不能超过31天。
|
674
|
+
# @type EndTime: String
|
675
|
+
# @param SdkAppId: TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
|
676
|
+
# @type SdkAppId: Integer
|
677
|
+
|
678
|
+
attr_accessor :StartTime, :EndTime, :SdkAppId
|
679
|
+
|
680
|
+
def initialize(starttime=nil, endtime=nil, sdkappid=nil)
|
681
|
+
@StartTime = starttime
|
682
|
+
@EndTime = endtime
|
683
|
+
@SdkAppId = sdkappid
|
684
|
+
end
|
685
|
+
|
686
|
+
def deserialize(params)
|
687
|
+
@StartTime = params['StartTime']
|
688
|
+
@EndTime = params['EndTime']
|
689
|
+
@SdkAppId = params['SdkAppId']
|
690
|
+
end
|
691
|
+
end
|
692
|
+
|
693
|
+
# DescribeMixTranscodingUsage返回参数结构体
|
694
|
+
class DescribeMixTranscodingUsageResponse < TencentCloud::Common::AbstractModel
|
695
|
+
# @param UsageKey: 用量类型,与UsageValue中各个位置的值对应。
|
696
|
+
# @type UsageKey: Array
|
697
|
+
# @param UsageList: 各个时间点用量明细。
|
698
|
+
# @type UsageList: Array
|
699
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
700
|
+
# @type RequestId: String
|
701
|
+
|
702
|
+
attr_accessor :UsageKey, :UsageList, :RequestId
|
703
|
+
|
704
|
+
def initialize(usagekey=nil, usagelist=nil, requestid=nil)
|
705
|
+
@UsageKey = usagekey
|
706
|
+
@UsageList = usagelist
|
707
|
+
@RequestId = requestid
|
708
|
+
end
|
709
|
+
|
710
|
+
def deserialize(params)
|
711
|
+
@UsageKey = params['UsageKey']
|
712
|
+
unless params['UsageList'].nil?
|
713
|
+
@UsageList = []
|
714
|
+
params['UsageList'].each do |i|
|
715
|
+
trtcusage_tmp = TrtcUsage.new
|
716
|
+
trtcusage_tmp.deserialize(i)
|
717
|
+
@UsageList << trtcusage_tmp
|
718
|
+
end
|
719
|
+
end
|
720
|
+
@RequestId = params['RequestId']
|
721
|
+
end
|
722
|
+
end
|
723
|
+
|
616
724
|
# DescribePicture请求参数结构体
|
617
725
|
class DescribePictureRequest < TencentCloud::Common::AbstractModel
|
618
726
|
# @param SdkAppId: 应用ID
|
@@ -724,6 +832,122 @@ module TencentCloud
|
|
724
832
|
end
|
725
833
|
end
|
726
834
|
|
835
|
+
# DescribeRecordingUsage请求参数结构体
|
836
|
+
class DescribeRecordingUsageRequest < TencentCloud::Common::AbstractModel
|
837
|
+
# @param StartTime: 查询开始时间,格式为YYYY-MM-DD。
|
838
|
+
# @type StartTime: String
|
839
|
+
# @param EndTime: 查询结束时间,格式为YYYY-MM-DD。
|
840
|
+
# 单次查询统计区间最多不能超过31天。
|
841
|
+
# @type EndTime: String
|
842
|
+
# @param MixType: 查询单流录制或合流录制,值为"single"或"multi"。
|
843
|
+
# @type MixType: String
|
844
|
+
# @param SdkAppId: TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
|
845
|
+
# @type SdkAppId: Integer
|
846
|
+
|
847
|
+
attr_accessor :StartTime, :EndTime, :MixType, :SdkAppId
|
848
|
+
|
849
|
+
def initialize(starttime=nil, endtime=nil, mixtype=nil, sdkappid=nil)
|
850
|
+
@StartTime = starttime
|
851
|
+
@EndTime = endtime
|
852
|
+
@MixType = mixtype
|
853
|
+
@SdkAppId = sdkappid
|
854
|
+
end
|
855
|
+
|
856
|
+
def deserialize(params)
|
857
|
+
@StartTime = params['StartTime']
|
858
|
+
@EndTime = params['EndTime']
|
859
|
+
@MixType = params['MixType']
|
860
|
+
@SdkAppId = params['SdkAppId']
|
861
|
+
end
|
862
|
+
end
|
863
|
+
|
864
|
+
# DescribeRecordingUsage返回参数结构体
|
865
|
+
class DescribeRecordingUsageResponse < TencentCloud::Common::AbstractModel
|
866
|
+
# @param UsageKey: 用量类型,与UsageValue中各个位置的值对应。
|
867
|
+
# @type UsageKey: Array
|
868
|
+
# @param UsageList: 各个时间点用量明细。
|
869
|
+
# @type UsageList: Array
|
870
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
871
|
+
# @type RequestId: String
|
872
|
+
|
873
|
+
attr_accessor :UsageKey, :UsageList, :RequestId
|
874
|
+
|
875
|
+
def initialize(usagekey=nil, usagelist=nil, requestid=nil)
|
876
|
+
@UsageKey = usagekey
|
877
|
+
@UsageList = usagelist
|
878
|
+
@RequestId = requestid
|
879
|
+
end
|
880
|
+
|
881
|
+
def deserialize(params)
|
882
|
+
@UsageKey = params['UsageKey']
|
883
|
+
unless params['UsageList'].nil?
|
884
|
+
@UsageList = []
|
885
|
+
params['UsageList'].each do |i|
|
886
|
+
trtcusage_tmp = TrtcUsage.new
|
887
|
+
trtcusage_tmp.deserialize(i)
|
888
|
+
@UsageList << trtcusage_tmp
|
889
|
+
end
|
890
|
+
end
|
891
|
+
@RequestId = params['RequestId']
|
892
|
+
end
|
893
|
+
end
|
894
|
+
|
895
|
+
# DescribeRelayUsage请求参数结构体
|
896
|
+
class DescribeRelayUsageRequest < TencentCloud::Common::AbstractModel
|
897
|
+
# @param StartTime: 查询开始时间,格式为YYYY-MM-DD。
|
898
|
+
# @type StartTime: String
|
899
|
+
# @param EndTime: 查询结束时间,格式为YYYY-MM-DD。
|
900
|
+
# 单次查询统计区间最多不能超过31天。
|
901
|
+
# @type EndTime: String
|
902
|
+
# @param SdkAppId: TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
|
903
|
+
# @type SdkAppId: Integer
|
904
|
+
|
905
|
+
attr_accessor :StartTime, :EndTime, :SdkAppId
|
906
|
+
|
907
|
+
def initialize(starttime=nil, endtime=nil, sdkappid=nil)
|
908
|
+
@StartTime = starttime
|
909
|
+
@EndTime = endtime
|
910
|
+
@SdkAppId = sdkappid
|
911
|
+
end
|
912
|
+
|
913
|
+
def deserialize(params)
|
914
|
+
@StartTime = params['StartTime']
|
915
|
+
@EndTime = params['EndTime']
|
916
|
+
@SdkAppId = params['SdkAppId']
|
917
|
+
end
|
918
|
+
end
|
919
|
+
|
920
|
+
# DescribeRelayUsage返回参数结构体
|
921
|
+
class DescribeRelayUsageResponse < TencentCloud::Common::AbstractModel
|
922
|
+
# @param UsageKey: 用量类型,与UsageValue中各个位置的值对应。
|
923
|
+
# @type UsageKey: Array
|
924
|
+
# @param UsageList: 各个时间点用量明细。
|
925
|
+
# @type UsageList: Array
|
926
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
927
|
+
# @type RequestId: String
|
928
|
+
|
929
|
+
attr_accessor :UsageKey, :UsageList, :RequestId
|
930
|
+
|
931
|
+
def initialize(usagekey=nil, usagelist=nil, requestid=nil)
|
932
|
+
@UsageKey = usagekey
|
933
|
+
@UsageList = usagelist
|
934
|
+
@RequestId = requestid
|
935
|
+
end
|
936
|
+
|
937
|
+
def deserialize(params)
|
938
|
+
@UsageKey = params['UsageKey']
|
939
|
+
unless params['UsageList'].nil?
|
940
|
+
@UsageList = []
|
941
|
+
params['UsageList'].each do |i|
|
942
|
+
trtcusage_tmp = TrtcUsage.new
|
943
|
+
trtcusage_tmp.deserialize(i)
|
944
|
+
@UsageList << trtcusage_tmp
|
945
|
+
end
|
946
|
+
end
|
947
|
+
@RequestId = params['RequestId']
|
948
|
+
end
|
949
|
+
end
|
950
|
+
|
727
951
|
# DescribeRoomInfo请求参数结构体
|
728
952
|
class DescribeRoomInfoRequest < TencentCloud::Common::AbstractModel
|
729
953
|
# @param SdkAppId: 用户SdkAppId(如:1400xxxxxx)
|
@@ -905,6 +1129,62 @@ module TencentCloud
|
|
905
1129
|
end
|
906
1130
|
end
|
907
1131
|
|
1132
|
+
# DescribeTrtcUsage请求参数结构体
|
1133
|
+
class DescribeTrtcUsageRequest < TencentCloud::Common::AbstractModel
|
1134
|
+
# @param StartTime: 查询开始时间,格式为YYYY-MM-DD。
|
1135
|
+
# @type StartTime: String
|
1136
|
+
# @param EndTime: 查询结束时间,格式为YYYY-MM-DD。
|
1137
|
+
# 单次查询统计区间最多不能超过31天。
|
1138
|
+
# @type EndTime: String
|
1139
|
+
# @param SdkAppId: TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
|
1140
|
+
# @type SdkAppId: Integer
|
1141
|
+
|
1142
|
+
attr_accessor :StartTime, :EndTime, :SdkAppId
|
1143
|
+
|
1144
|
+
def initialize(starttime=nil, endtime=nil, sdkappid=nil)
|
1145
|
+
@StartTime = starttime
|
1146
|
+
@EndTime = endtime
|
1147
|
+
@SdkAppId = sdkappid
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
def deserialize(params)
|
1151
|
+
@StartTime = params['StartTime']
|
1152
|
+
@EndTime = params['EndTime']
|
1153
|
+
@SdkAppId = params['SdkAppId']
|
1154
|
+
end
|
1155
|
+
end
|
1156
|
+
|
1157
|
+
# DescribeTrtcUsage返回参数结构体
|
1158
|
+
class DescribeTrtcUsageResponse < TencentCloud::Common::AbstractModel
|
1159
|
+
# @param UsageKey: 用量类型,与UsageValue中各个位置的值对应。
|
1160
|
+
# @type UsageKey: Array
|
1161
|
+
# @param UsageList: 各个时间点用量明细。
|
1162
|
+
# @type UsageList: Array
|
1163
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1164
|
+
# @type RequestId: String
|
1165
|
+
|
1166
|
+
attr_accessor :UsageKey, :UsageList, :RequestId
|
1167
|
+
|
1168
|
+
def initialize(usagekey=nil, usagelist=nil, requestid=nil)
|
1169
|
+
@UsageKey = usagekey
|
1170
|
+
@UsageList = usagelist
|
1171
|
+
@RequestId = requestid
|
1172
|
+
end
|
1173
|
+
|
1174
|
+
def deserialize(params)
|
1175
|
+
@UsageKey = params['UsageKey']
|
1176
|
+
unless params['UsageList'].nil?
|
1177
|
+
@UsageList = []
|
1178
|
+
params['UsageList'].each do |i|
|
1179
|
+
trtcusage_tmp = TrtcUsage.new
|
1180
|
+
trtcusage_tmp.deserialize(i)
|
1181
|
+
@UsageList << trtcusage_tmp
|
1182
|
+
end
|
1183
|
+
end
|
1184
|
+
@RequestId = params['RequestId']
|
1185
|
+
end
|
1186
|
+
end
|
1187
|
+
|
908
1188
|
# DescribeUnusualEvent请求参数结构体
|
909
1189
|
class DescribeUnusualEventRequest < TencentCloud::Common::AbstractModel
|
910
1190
|
# @param SdkAppId: 用户SdkAppId(如:1400xxxxxx)
|
@@ -1375,76 +1655,477 @@ module TencentCloud
|
|
1375
1655
|
end
|
1376
1656
|
end
|
1377
1657
|
|
1378
|
-
#
|
1379
|
-
class
|
1380
|
-
# @param
|
1381
|
-
# @type
|
1382
|
-
# @param Left: 画布上该画面左上角的 x 轴坐标,取值范围 [0, 1920],不能超过画布的宽。
|
1383
|
-
# @type Left: Integer
|
1384
|
-
# @param Width: 画布上该画面宽度的相对值,取值范围 [0, 1920],与Left相加不应超过画布的宽。
|
1385
|
-
# @type Width: Integer
|
1386
|
-
# @param Height: 画布上该画面高度的相对值,取值范围 [0, 1920],与Top相加不应超过画布的高。
|
1387
|
-
# @type Height: Integer
|
1388
|
-
# @param UserId: 字符串内容为待显示在该画面的主播对应的UserId,如果不指定,会按照主播加入房间的顺序匹配。
|
1389
|
-
# @type UserId: String
|
1390
|
-
# @param Alpha: 画布的透明度值,取值范围[0, 255]。0表示不透明,255表示全透明。默认值为0。
|
1391
|
-
# @type Alpha: Integer
|
1392
|
-
# @param RenderMode: 0 :拉伸模式,这个模式下整个视频内容会全部显示,并填满子画面,在源视频和目的视频宽高比不一致的时候,画面不会缺少内容,但是画面可能产生形变;
|
1658
|
+
# 指定动态布局中悬浮布局和屏幕分享布局的大画面信息,只在悬浮布局和屏幕分享布局有效。
|
1659
|
+
class MaxVideoUser < TencentCloud::Common::AbstractModel
|
1660
|
+
# @param UserMediaStream: 用户媒体流参数。
|
1661
|
+
# @type UserMediaStream: :class:`Tencentcloud::Trtc.v20190722.models.UserMediaStream`
|
1393
1662
|
|
1394
|
-
|
1663
|
+
attr_accessor :UserMediaStream
|
1664
|
+
|
1665
|
+
def initialize(usermediastream=nil)
|
1666
|
+
@UserMediaStream = usermediastream
|
1667
|
+
end
|
1395
1668
|
|
1396
|
-
|
1669
|
+
def deserialize(params)
|
1670
|
+
unless params['UserMediaStream'].nil?
|
1671
|
+
@UserMediaStream = UserMediaStream.new
|
1672
|
+
@UserMediaStream.deserialize(params['UserMediaStream'])
|
1673
|
+
end
|
1674
|
+
end
|
1675
|
+
end
|
1397
1676
|
|
1398
|
-
|
1399
|
-
|
1400
|
-
# @param
|
1401
|
-
#
|
1402
|
-
#
|
1403
|
-
# @type
|
1404
|
-
# @param ImageLayer: 该画布的图层顺序, 这个值越小表示图层越靠后。默认值为0。
|
1405
|
-
# @type ImageLayer: Integer
|
1406
|
-
# @param SubBackgroundImage: 下载的url地址, 只支持jpg, png,大小限制不超过5M,宽高比不一致的处理方案同 RenderMode。
|
1407
|
-
# @type SubBackgroundImage: String
|
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
|
1408
1683
|
|
1409
|
-
attr_accessor :
|
1684
|
+
attr_accessor :AudioEncode, :SubscribeAudioList
|
1410
1685
|
|
1411
|
-
def initialize(
|
1412
|
-
@
|
1413
|
-
@
|
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
|
1414
1723
|
@Width = width
|
1415
1724
|
@Height = height
|
1416
|
-
@UserId = userid
|
1417
|
-
@Alpha = alpha
|
1418
|
-
@RenderMode = rendermode
|
1419
|
-
@MediaId = mediaid
|
1420
|
-
@ImageLayer = imagelayer
|
1421
|
-
@SubBackgroundImage = subbackgroundimage
|
1422
1725
|
end
|
1423
1726
|
|
1424
1727
|
def deserialize(params)
|
1425
|
-
@
|
1426
|
-
@
|
1728
|
+
@LocationX = params['LocationX']
|
1729
|
+
@LocationY = params['LocationY']
|
1427
1730
|
@Width = params['Width']
|
1428
1731
|
@Height = params['Height']
|
1429
|
-
@UserId = params['UserId']
|
1430
|
-
@Alpha = params['Alpha']
|
1431
|
-
@RenderMode = params['RenderMode']
|
1432
|
-
@MediaId = params['MediaId']
|
1433
|
-
@ImageLayer = params['ImageLayer']
|
1434
|
-
@SubBackgroundImage = params['SubBackgroundImage']
|
1435
1732
|
end
|
1436
1733
|
end
|
1437
1734
|
|
1438
|
-
#
|
1439
|
-
class
|
1440
|
-
# @param
|
1441
|
-
#
|
1442
|
-
#
|
1443
|
-
#
|
1444
|
-
#
|
1445
|
-
|
1446
|
-
#
|
1447
|
-
|
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
|
+
|
2059
|
+
# 用户自定义混流布局参数列表。
|
2060
|
+
class MixLayout < TencentCloud::Common::AbstractModel
|
2061
|
+
# @param Top: 画布上该画面左上角的 y 轴坐标,取值范围 [0, 1920],不能超过画布的高。
|
2062
|
+
# @type Top: Integer
|
2063
|
+
# @param Left: 画布上该画面左上角的 x 轴坐标,取值范围 [0, 1920],不能超过画布的宽。
|
2064
|
+
# @type Left: Integer
|
2065
|
+
# @param Width: 画布上该画面宽度的相对值,取值范围 [0, 1920],与Left相加不应超过画布的宽。
|
2066
|
+
# @type Width: Integer
|
2067
|
+
# @param Height: 画布上该画面高度的相对值,取值范围 [0, 1920],与Top相加不应超过画布的高。
|
2068
|
+
# @type Height: Integer
|
2069
|
+
# @param UserId: 字符串内容为待显示在该画面的主播对应的UserId,如果不指定,会按照主播加入房间的顺序匹配。
|
2070
|
+
# @type UserId: String
|
2071
|
+
# @param Alpha: 画布的透明度值,取值范围[0, 255]。0表示不透明,255表示全透明。默认值为0。
|
2072
|
+
# @type Alpha: Integer
|
2073
|
+
# @param RenderMode: 0 :拉伸模式,这个模式下整个视频内容会全部显示,并填满子画面,在源视频和目的视频宽高比不一致的时候,画面不会缺少内容,但是画面可能产生形变;
|
2074
|
+
|
2075
|
+
# 1 :剪裁模式(默认),这个模式下会严格按照目的视频的宽高比对源视频剪裁之后再拉伸,并填满子画面画布,在源视频和目的视频宽高比不一致的时候,画面保持不变形,但是会被剪裁;
|
2076
|
+
|
2077
|
+
# 2 :填黑模式,这个模式下会严格保持源视频的宽高比进行等比缩放,在源视频和目的视频宽高比不一致的时候,画面的上下侧边缘或者左右侧边缘会露出子画面画布的背景;
|
2078
|
+
|
2079
|
+
# 3 :智能拉伸模式,这个模式类似剪裁模式,区别是在源视频和目的视频宽高比不一致的时候,限制了最大剪裁比例为画面的宽度或者高度的20%;
|
2080
|
+
# @type RenderMode: Integer
|
2081
|
+
# @param MediaId: 对应订阅流的主辅路标识:
|
2082
|
+
# 0:主流(默认);
|
2083
|
+
# 1:辅流;
|
2084
|
+
# @type MediaId: Integer
|
2085
|
+
# @param ImageLayer: 该画布的图层顺序, 这个值越小表示图层越靠后。默认值为0。
|
2086
|
+
# @type ImageLayer: Integer
|
2087
|
+
# @param SubBackgroundImage: 下载的url地址, 只支持jpg, png,大小限制不超过5M,宽高比不一致的处理方案同 RenderMode。
|
2088
|
+
# @type SubBackgroundImage: String
|
2089
|
+
|
2090
|
+
attr_accessor :Top, :Left, :Width, :Height, :UserId, :Alpha, :RenderMode, :MediaId, :ImageLayer, :SubBackgroundImage
|
2091
|
+
|
2092
|
+
def initialize(top=nil, left=nil, width=nil, height=nil, userid=nil, alpha=nil, rendermode=nil, mediaid=nil, imagelayer=nil, subbackgroundimage=nil)
|
2093
|
+
@Top = top
|
2094
|
+
@Left = left
|
2095
|
+
@Width = width
|
2096
|
+
@Height = height
|
2097
|
+
@UserId = userid
|
2098
|
+
@Alpha = alpha
|
2099
|
+
@RenderMode = rendermode
|
2100
|
+
@MediaId = mediaid
|
2101
|
+
@ImageLayer = imagelayer
|
2102
|
+
@SubBackgroundImage = subbackgroundimage
|
2103
|
+
end
|
2104
|
+
|
2105
|
+
def deserialize(params)
|
2106
|
+
@Top = params['Top']
|
2107
|
+
@Left = params['Left']
|
2108
|
+
@Width = params['Width']
|
2109
|
+
@Height = params['Height']
|
2110
|
+
@UserId = params['UserId']
|
2111
|
+
@Alpha = params['Alpha']
|
2112
|
+
@RenderMode = params['RenderMode']
|
2113
|
+
@MediaId = params['MediaId']
|
2114
|
+
@ImageLayer = params['ImageLayer']
|
2115
|
+
@SubBackgroundImage = params['SubBackgroundImage']
|
2116
|
+
end
|
2117
|
+
end
|
2118
|
+
|
2119
|
+
# 录制的混流布局参数。
|
2120
|
+
class MixLayoutParams < TencentCloud::Common::AbstractModel
|
2121
|
+
# @param MixLayoutMode: 布局模式:
|
2122
|
+
# 1:悬浮布局;
|
2123
|
+
# 2:屏幕分享布局;
|
2124
|
+
# 3:九宫格布局(默认);
|
2125
|
+
# 4:自定义布局;
|
2126
|
+
|
2127
|
+
# 悬浮布局:默认第一个进入房间的主播(也可以指定一个主播)的视频画面会铺满整个屏幕。其他主播的视频画面从左下角开始依次按照进房顺序水平排列,显示为小画面,小画面悬浮于大画面之上。当画面数量小于等于17个时,每行4个(4 x 4排列)。当画面数量大于17个时,重新布局小画面为每行5个(5 x 5)排列。最多支持25个画面,如果用户只发送音频,仍然会占用画面位置。
|
2128
|
+
|
1448
2129
|
# 屏幕分享布局:指定一个主播在屏幕左侧的大画面位置(如果不指定,那么大画面位置为背景色),其他主播自上而下依次垂直排列于右侧。当画面数量少于17个的时候,右侧每列最多8人,最多占据两列。当画面数量多于17个的时候,超过17个画面的主播从左下角开始依次水平排列。最多支持25个画面,如果主播只发送音频,仍然会占用画面位置。
|
1449
2130
|
|
1450
2131
|
# 九宫格布局:根据主播的数量自动调整每个画面的大小,每个主播的画面大小一致,最多支持25个画面。
|
@@ -1542,6 +2223,30 @@ module TencentCloud
|
|
1542
2223
|
end
|
1543
2224
|
end
|
1544
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
|
+
|
1545
2250
|
# ModifyCloudRecording请求参数结构体
|
1546
2251
|
class ModifyCloudRecordingRequest < TencentCloud::Common::AbstractModel
|
1547
2252
|
# @param SdkAppId: TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同。
|
@@ -2153,15 +2858,18 @@ module TencentCloud
|
|
2153
2858
|
# @type VideoTimeHd: Integer
|
2154
2859
|
# @param VideoTimeFhd: 视频时长-全高清FHD,单位:秒。
|
2155
2860
|
# @type VideoTimeFhd: Integer
|
2861
|
+
# @param Flux: 带宽,单位:Mbps。
|
2862
|
+
# @type Flux: Float
|
2156
2863
|
|
2157
|
-
attr_accessor :TimeKey, :AudioTime, :VideoTimeSd, :VideoTimeHd, :VideoTimeFhd
|
2864
|
+
attr_accessor :TimeKey, :AudioTime, :VideoTimeSd, :VideoTimeHd, :VideoTimeFhd, :Flux
|
2158
2865
|
|
2159
|
-
def initialize(timekey=nil, audiotime=nil, videotimesd=nil, videotimehd=nil, videotimefhd=nil)
|
2866
|
+
def initialize(timekey=nil, audiotime=nil, videotimesd=nil, videotimehd=nil, videotimefhd=nil, flux=nil)
|
2160
2867
|
@TimeKey = timekey
|
2161
2868
|
@AudioTime = audiotime
|
2162
2869
|
@VideoTimeSd = videotimesd
|
2163
2870
|
@VideoTimeHd = videotimehd
|
2164
2871
|
@VideoTimeFhd = videotimefhd
|
2872
|
+
@Flux = flux
|
2165
2873
|
end
|
2166
2874
|
|
2167
2875
|
def deserialize(params)
|
@@ -2170,6 +2878,26 @@ module TencentCloud
|
|
2170
2878
|
@VideoTimeSd = params['VideoTimeSd']
|
2171
2879
|
@VideoTimeHd = params['VideoTimeHd']
|
2172
2880
|
@VideoTimeFhd = params['VideoTimeFhd']
|
2881
|
+
@Flux = params['Flux']
|
2882
|
+
end
|
2883
|
+
end
|
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
|
2173
2901
|
end
|
2174
2902
|
end
|
2175
2903
|
|
@@ -2337,6 +3065,100 @@ module TencentCloud
|
|
2337
3065
|
end
|
2338
3066
|
end
|
2339
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
|
+
|
2340
3162
|
# StopMCUMixTranscodeByStrRoomId请求参数结构体
|
2341
3163
|
class StopMCUMixTranscodeByStrRoomIdRequest < TencentCloud::Common::AbstractModel
|
2342
3164
|
# @param SdkAppId: TRTC的SDKAppId。
|
@@ -2409,6 +3231,46 @@ module TencentCloud
|
|
2409
3231
|
end
|
2410
3232
|
end
|
2411
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
|
+
|
2412
3274
|
# 云端录制查询接口,录制文件的信息
|
2413
3275
|
class StorageFile < TencentCloud::Common::AbstractModel
|
2414
3276
|
# @param UserId: 录制文件对应的UserId,如果是混流的话的这里返回的是空串。
|
@@ -2613,6 +3475,113 @@ module TencentCloud
|
|
2613
3475
|
end
|
2614
3476
|
end
|
2615
3477
|
|
3478
|
+
# 实时音视频用量在某一时间段的统计信息。
|
3479
|
+
class TrtcUsage < TencentCloud::Common::AbstractModel
|
3480
|
+
# @param TimeKey: 时间点,格式为YYYY-MM-DD HH:mm:ss。多天查询时,HH:mm:ss为00:00:00。
|
3481
|
+
# @type TimeKey: String
|
3482
|
+
# @param UsageValue: 用量数组。每个数值含义与UsageKey对应。单位:分钟。
|
3483
|
+
# @type UsageValue: Array
|
3484
|
+
|
3485
|
+
attr_accessor :TimeKey, :UsageValue
|
3486
|
+
|
3487
|
+
def initialize(timekey=nil, usagevalue=nil)
|
3488
|
+
@TimeKey = timekey
|
3489
|
+
@UsageValue = usagevalue
|
3490
|
+
end
|
3491
|
+
|
3492
|
+
def deserialize(params)
|
3493
|
+
@TimeKey = params['TimeKey']
|
3494
|
+
@UsageValue = params['UsageValue']
|
3495
|
+
end
|
3496
|
+
end
|
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
|
+
|
2616
3585
|
# 用户信息,包括用户进房时间,退房时间等
|
2617
3586
|
class UserInformation < TencentCloud::Common::AbstractModel
|
2618
3587
|
# @param RoomStr: 房间号
|
@@ -2657,6 +3626,61 @@ module TencentCloud
|
|
2657
3626
|
end
|
2658
3627
|
end
|
2659
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
|
+
|
2660
3684
|
# 录制视频转码参数。
|
2661
3685
|
class VideoParams < TencentCloud::Common::AbstractModel
|
2662
3686
|
# @param Width: 视频的宽度值,单位为像素,默认值360。不能超过1920,与height的乘积不能超过1920*1080。
|