This commit is contained in:
Your Name
2026-03-27 18:06:12 +08:00
parent 9160c36735
commit 099bc1dd22
645 changed files with 276473 additions and 957 deletions
@@ -0,0 +1,69 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 造成异常体验可能的异常事件类型
*
* @method integer getAbnormalEventId() 获取异常事件ID,具体值查看附录:异常体验ID映射表:https://cloud.tencent.com/document/product/647/44916
* @method void setAbnormalEventId(integer $AbnormalEventId) 设置异常事件ID,具体值查看附录:异常体验ID映射表:https://cloud.tencent.com/document/product/647/44916
* @method string getPeerId() 获取远端用户ID,"":表示异常事件不是由远端用户产生
注意:此字段可能返回 null,表示取不到有效值。
* @method void setPeerId(string $PeerId) 设置远端用户ID,"":表示异常事件不是由远端用户产生
注意:此字段可能返回 null,表示取不到有效值。
*/
class AbnormalEvent extends AbstractModel
{
/**
* @var integer 异常事件ID,具体值查看附录:异常体验ID映射表:https://cloud.tencent.com/document/product/647/44916
*/
public $AbnormalEventId;
/**
* @var string 远端用户ID,"":表示异常事件不是由远端用户产生
注意:此字段可能返回 null,表示取不到有效值。
*/
public $PeerId;
/**
* @param integer $AbnormalEventId 异常事件ID,具体值查看附录:异常体验ID映射表:https://cloud.tencent.com/document/product/647/44916
* @param string $PeerId 远端用户ID,"":表示异常事件不是由远端用户产生
注意:此字段可能返回 null,表示取不到有效值。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("AbnormalEventId",$param) and $param["AbnormalEventId"] !== null) {
$this->AbnormalEventId = $param["AbnormalEventId"];
}
if (array_key_exists("PeerId",$param) and $param["PeerId"] !== null) {
$this->PeerId = $param["PeerId"];
}
}
}
@@ -0,0 +1,106 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 用户的异常体验及可能的原因
*
* @method string getUserId() 获取用户ID
* @method void setUserId(string $UserId) 设置用户ID
* @method integer getExperienceId() 获取异常体验ID
* @method void setExperienceId(integer $ExperienceId) 设置异常体验ID
* @method string getRoomId() 获取字符串房间号
* @method void setRoomId(string $RoomId) 设置字符串房间号
* @method array getAbnormalEventList() 获取异常事件数组
* @method void setAbnormalEventList(array $AbnormalEventList) 设置异常事件数组
* @method integer getEventTime() 获取异常事件的上报时间
* @method void setEventTime(integer $EventTime) 设置异常事件的上报时间
*/
class AbnormalExperience extends AbstractModel
{
/**
* @var string 用户ID
*/
public $UserId;
/**
* @var integer 异常体验ID
*/
public $ExperienceId;
/**
* @var string 字符串房间号
*/
public $RoomId;
/**
* @var array 异常事件数组
*/
public $AbnormalEventList;
/**
* @var integer 异常事件的上报时间
*/
public $EventTime;
/**
* @param string $UserId 用户ID
* @param integer $ExperienceId 异常体验ID
* @param string $RoomId 字符串房间号
* @param array $AbnormalEventList 异常事件数组
* @param integer $EventTime 异常事件的上报时间
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("UserId",$param) and $param["UserId"] !== null) {
$this->UserId = $param["UserId"];
}
if (array_key_exists("ExperienceId",$param) and $param["ExperienceId"] !== null) {
$this->ExperienceId = $param["ExperienceId"];
}
if (array_key_exists("RoomId",$param) and $param["RoomId"] !== null) {
$this->RoomId = $param["RoomId"];
}
if (array_key_exists("AbnormalEventList",$param) and $param["AbnormalEventList"] !== null) {
$this->AbnormalEventList = [];
foreach ($param["AbnormalEventList"] as $key => $value){
$obj = new AbnormalEvent();
$obj->deserialize($value);
array_push($this->AbnormalEventList, $obj);
}
}
if (array_key_exists("EventTime",$param) and $param["EventTime"] !== null) {
$this->EventTime = $param["EventTime"];
}
}
}
@@ -0,0 +1,77 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 转推服务加入TRTC房间的机器人参数。
*
* @method string getUserId() 获取转推服务在TRTC房间使用的[UserId](https://cloud.tencent.com/document/product/647/46351#userid),注意这个userId不能与其他TRTC或者转推服务等已经使用的UserId重复,建议可以把房间ID作为userId的标识的一部分。
* @method void setUserId(string $UserId) 设置转推服务在TRTC房间使用的[UserId](https://cloud.tencent.com/document/product/647/46351#userid),注意这个userId不能与其他TRTC或者转推服务等已经使用的UserId重复,建议可以把房间ID作为userId的标识的一部分。
* @method string getUserSig() 获取转推服务加入TRTC房间的用户签名,当前 UserId 对应的验证签名,相当于登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
* @method void setUserSig(string $UserSig) 设置转推服务加入TRTC房间的用户签名,当前 UserId 对应的验证签名,相当于登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
* @method integer getMaxIdleTime() 获取所有参与混流转推的主播持续离开TRTC房间超过MaxIdleTime的时长,自动停止转推,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
* @method void setMaxIdleTime(integer $MaxIdleTime) 设置所有参与混流转推的主播持续离开TRTC房间超过MaxIdleTime的时长,自动停止转推,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
*/
class AgentParams extends AbstractModel
{
/**
* @var string 转推服务在TRTC房间使用的[UserId](https://cloud.tencent.com/document/product/647/46351#userid),注意这个userId不能与其他TRTC或者转推服务等已经使用的UserId重复,建议可以把房间ID作为userId的标识的一部分。
*/
public $UserId;
/**
* @var string 转推服务加入TRTC房间的用户签名,当前 UserId 对应的验证签名,相当于登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
*/
public $UserSig;
/**
* @var integer 所有参与混流转推的主播持续离开TRTC房间超过MaxIdleTime的时长,自动停止转推,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
*/
public $MaxIdleTime;
/**
* @param string $UserId 转推服务在TRTC房间使用的[UserId](https://cloud.tencent.com/document/product/647/46351#userid),注意这个userId不能与其他TRTC或者转推服务等已经使用的UserId重复,建议可以把房间ID作为userId的标识的一部分。
* @param string $UserSig 转推服务加入TRTC房间的用户签名,当前 UserId 对应的验证签名,相当于登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
* @param integer $MaxIdleTime 所有参与混流转推的主播持续离开TRTC房间超过MaxIdleTime的时长,自动停止转推,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("UserId",$param) and $param["UserId"] !== null) {
$this->UserId = $param["UserId"];
}
if (array_key_exists("UserSig",$param) and $param["UserSig"] !== null) {
$this->UserSig = $param["UserSig"];
}
if (array_key_exists("MaxIdleTime",$param) and $param["MaxIdleTime"] !== null) {
$this->MaxIdleTime = $param["MaxIdleTime"];
}
}
}
@@ -0,0 +1,89 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 音频编码参数。
*
* @method integer getSampleRate() 获取输出流音频采样率。取值为[48000, 44100, 32000, 24000, 16000, 8000],单位是Hz。
* @method void setSampleRate(integer $SampleRate) 设置输出流音频采样率。取值为[48000, 44100, 32000, 24000, 16000, 8000],单位是Hz。
* @method integer getChannel() 获取输出流音频声道数,取值范围[1,2],1表示混流输出音频为单声道,2表示混流输出音频为双声道。
* @method void setChannel(integer $Channel) 设置输出流音频声道数,取值范围[1,2],1表示混流输出音频为单声道,2表示混流输出音频为双声道。
* @method integer getBitRate() 获取输出流音频码率。取值范围[8,500],单位为kbps。
* @method void setBitRate(integer $BitRate) 设置输出流音频码率。取值范围[8,500],单位为kbps。
* @method integer getCodec() 获取输出流音频编码类型,取值范围[0, 1, 2]0为LC-AAC1为HE-AAC2为HE-AACv2。默认值为0。当音频编码设置为HE-AACv2时,只支持输出流音频声道数为双声道。HE-AAC和HE-AACv2支持的输出流音频采样率范围为[48000, 44100, 32000, 24000, 16000]。
* @method void setCodec(integer $Codec) 设置输出流音频编码类型,取值范围[0, 1, 2]0为LC-AAC1为HE-AAC2为HE-AACv2。默认值为0。当音频编码设置为HE-AACv2时,只支持输出流音频声道数为双声道。HE-AAC和HE-AACv2支持的输出流音频采样率范围为[48000, 44100, 32000, 24000, 16000]。
*/
class AudioEncode extends AbstractModel
{
/**
* @var integer 输出流音频采样率。取值为[48000, 44100, 32000, 24000, 16000, 8000],单位是Hz。
*/
public $SampleRate;
/**
* @var integer 输出流音频声道数,取值范围[1,2],1表示混流输出音频为单声道,2表示混流输出音频为双声道。
*/
public $Channel;
/**
* @var integer 输出流音频码率。取值范围[8,500],单位为kbps。
*/
public $BitRate;
/**
* @var integer 输出流音频编码类型,取值范围[0, 1, 2]0为LC-AAC1为HE-AAC2为HE-AACv2。默认值为0。当音频编码设置为HE-AACv2时,只支持输出流音频声道数为双声道。HE-AAC和HE-AACv2支持的输出流音频采样率范围为[48000, 44100, 32000, 24000, 16000]。
*/
public $Codec;
/**
* @param integer $SampleRate 输出流音频采样率。取值为[48000, 44100, 32000, 24000, 16000, 8000],单位是Hz。
* @param integer $Channel 输出流音频声道数,取值范围[1,2],1表示混流输出音频为单声道,2表示混流输出音频为双声道。
* @param integer $BitRate 输出流音频码率。取值范围[8,500],单位为kbps。
* @param integer $Codec 输出流音频编码类型,取值范围[0, 1, 2]0为LC-AAC1为HE-AAC2为HE-AACv2。默认值为0。当音频编码设置为HE-AACv2时,只支持输出流音频声道数为双声道。HE-AAC和HE-AACv2支持的输出流音频采样率范围为[48000, 44100, 32000, 24000, 16000]。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SampleRate",$param) and $param["SampleRate"] !== null) {
$this->SampleRate = $param["SampleRate"];
}
if (array_key_exists("Channel",$param) and $param["Channel"] !== null) {
$this->Channel = $param["Channel"];
}
if (array_key_exists("BitRate",$param) and $param["BitRate"] !== null) {
$this->BitRate = $param["BitRate"];
}
if (array_key_exists("Codec",$param) and $param["Codec"] !== null) {
$this->Codec = $param["Codec"];
}
}
}
@@ -0,0 +1,97 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 录制音频转码参数。
*
* @method integer getSampleRate() 获取音频采样率枚举值:(注意1 代表48000HZ, 2 代表44100HZ, 3 代表16000HZ)
148000Hz(默认);
244100Hz
316000Hz。
* @method void setSampleRate(integer $SampleRate) 设置音频采样率枚举值:(注意1 代表48000HZ, 2 代表44100HZ, 3 代表16000HZ)
148000Hz(默认);
244100Hz
316000Hz。
* @method integer getChannel() 获取声道数枚举值:
1:单声道;
2:双声道(默认)。
* @method void setChannel(integer $Channel) 设置声道数枚举值:
1:单声道;
2:双声道(默认)。
* @method integer getBitRate() 获取音频码率: 取值范围[32000, 128000] ,单位bps,默认64000bps。
* @method void setBitRate(integer $BitRate) 设置音频码率: 取值范围[32000, 128000] ,单位bps,默认64000bps。
*/
class AudioParams extends AbstractModel
{
/**
* @var integer 音频采样率枚举值:(注意1 代表48000HZ, 2 代表44100HZ, 3 代表16000HZ)
148000Hz(默认);
244100Hz
316000Hz。
*/
public $SampleRate;
/**
* @var integer 声道数枚举值:
1:单声道;
2:双声道(默认)。
*/
public $Channel;
/**
* @var integer 音频码率: 取值范围[32000, 128000] ,单位bps,默认64000bps。
*/
public $BitRate;
/**
* @param integer $SampleRate 音频采样率枚举值:(注意1 代表48000HZ, 2 代表44100HZ, 3 代表16000HZ)
148000Hz(默认);
244100Hz
316000Hz。
* @param integer $Channel 声道数枚举值:
1:单声道;
2:双声道(默认)。
* @param integer $BitRate 音频码率: 取值范围[32000, 128000] ,单位bps,默认64000bps。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SampleRate",$param) and $param["SampleRate"] !== null) {
$this->SampleRate = $param["SampleRate"];
}
if (array_key_exists("Channel",$param) and $param["Channel"] !== null) {
$this->Channel = $param["Channel"];
}
if (array_key_exists("BitRate",$param) and $param["BitRate"] !== null) {
$this->BitRate = $param["BitRate"];
}
}
}
@@ -0,0 +1,129 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 第三方云存储的账号信息。
*
* @method integer getVendor() 获取第三方云储存的供应商:
0:腾讯云存储 COS。
【*注意】:目前第三方仅支持腾讯云存储COS,暂不支持AWS等其他第三方云存储。
* @method void setVendor(integer $Vendor) 设置第三方云储存的供应商:
0:腾讯云存储 COS。
【*注意】:目前第三方仅支持腾讯云存储COS,暂不支持AWS等其他第三方云存储。
* @method string getRegion() 获取第三方云存储的地域信息。
* @method void setRegion(string $Region) 设置第三方云存储的地域信息。
* @method string getBucket() 获取第三方存储桶信息。
* @method void setBucket(string $Bucket) 设置第三方存储桶信息。
* @method string getAccessKey() 获取第三方存储的access_key账号信息。
若存储至腾讯云COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretId值。
* @method void setAccessKey(string $AccessKey) 设置第三方存储的access_key账号信息。
若存储至腾讯云COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretId值。
* @method string getSecretKey() 获取第三方存储的secret_key账号信息。
若存储至腾讯云COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretKey值。
* @method void setSecretKey(string $SecretKey) 设置第三方存储的secret_key账号信息。
若存储至腾讯云COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretKey值。
* @method array getFileNamePrefix() 获取第三方云存储bucket 的指定位置,由字符串数组组成。合法的字符串范围a~z,A~Z,0~9,'_'和'-',举个例子,录制文件xxx.m3u8在 ["prefix1", "prefix2"]作用下,会变成prefix1/prefix2/TaskId/xxx.m3u8。
* @method void setFileNamePrefix(array $FileNamePrefix) 设置第三方云存储bucket 的指定位置,由字符串数组组成。合法的字符串范围a~z,A~Z,0~9,'_'和'-',举个例子,录制文件xxx.m3u8在 ["prefix1", "prefix2"]作用下,会变成prefix1/prefix2/TaskId/xxx.m3u8。
*/
class CloudStorage extends AbstractModel
{
/**
* @var integer 第三方云储存的供应商:
0:腾讯云存储 COS。
【*注意】:目前第三方仅支持腾讯云存储COS,暂不支持AWS等其他第三方云存储。
*/
public $Vendor;
/**
* @var string 第三方云存储的地域信息。
*/
public $Region;
/**
* @var string 第三方存储桶信息。
*/
public $Bucket;
/**
* @var string 第三方存储的access_key账号信息。
若存储至腾讯云COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretId值。
*/
public $AccessKey;
/**
* @var string 第三方存储的secret_key账号信息。
若存储至腾讯云COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretKey值。
*/
public $SecretKey;
/**
* @var array 第三方云存储bucket 的指定位置,由字符串数组组成。合法的字符串范围a~z,A~Z,0~9,'_'和'-',举个例子,录制文件xxx.m3u8在 ["prefix1", "prefix2"]作用下,会变成prefix1/prefix2/TaskId/xxx.m3u8。
*/
public $FileNamePrefix;
/**
* @param integer $Vendor 第三方云储存的供应商:
0:腾讯云存储 COS。
【*注意】:目前第三方仅支持腾讯云存储COS,暂不支持AWS等其他第三方云存储。
* @param string $Region 第三方云存储的地域信息。
* @param string $Bucket 第三方存储桶信息。
* @param string $AccessKey 第三方存储的access_key账号信息。
若存储至腾讯云COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretId值。
* @param string $SecretKey 第三方存储的secret_key账号信息。
若存储至腾讯云COS,请前往https://console.cloud.tencent.com/cam/capi 查看或创建,对应链接中密钥字段的SecretKey值。
* @param array $FileNamePrefix 第三方云存储bucket 的指定位置,由字符串数组组成。合法的字符串范围a~z,A~Z,0~9,'_'和'-',举个例子,录制文件xxx.m3u8在 ["prefix1", "prefix2"]作用下,会变成prefix1/prefix2/TaskId/xxx.m3u8。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Vendor",$param) and $param["Vendor"] !== null) {
$this->Vendor = $param["Vendor"];
}
if (array_key_exists("Region",$param) and $param["Region"] !== null) {
$this->Region = $param["Region"];
}
if (array_key_exists("Bucket",$param) and $param["Bucket"] !== null) {
$this->Bucket = $param["Bucket"];
}
if (array_key_exists("AccessKey",$param) and $param["AccessKey"] !== null) {
$this->AccessKey = $param["AccessKey"];
}
if (array_key_exists("SecretKey",$param) and $param["SecretKey"] !== null) {
$this->SecretKey = $param["SecretKey"];
}
if (array_key_exists("FileNamePrefix",$param) and $param["FileNamePrefix"] !== null) {
$this->FileNamePrefix = $param["FileNamePrefix"];
}
}
}
@@ -0,0 +1,54 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 点播相关参数。
*
* @method TencentVod getTencentVod() 获取腾讯云点播相关参数。
* @method void setTencentVod(TencentVod $TencentVod) 设置腾讯云点播相关参数。
*/
class CloudVod extends AbstractModel
{
/**
* @var TencentVod 腾讯云点播相关参数。
*/
public $TencentVod;
/**
* @param TencentVod $TencentVod 腾讯云点播相关参数。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("TencentVod",$param) and $param["TencentVod"] !== null) {
$this->TencentVod = new TencentVod();
$this->TencentVod->deserialize($param["TencentVod"]);
}
}
}
@@ -0,0 +1,193 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* CreateCloudRecording请求参数结构体
*
* @method integer getSdkAppId() 获取TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和录制的房间所对应的SdkAppId相同。
* @method void setSdkAppId(integer $SdkAppId) 设置TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和录制的房间所对应的SdkAppId相同。
* @method string getRoomId() 获取TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),录制的TRTC房间所对应的RoomId。
* @method void setRoomId(string $RoomId) 设置TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),录制的TRTC房间所对应的RoomId。
* @method string getUserId() 获取录制机器人的UserId,用于进房发起录制任务。
【*注意】这个UserId不能与当前房间内的主播观众[UserId](https://cloud.tencent.com/document/product/647/46351#userid)重复,也不可能指定相同的录制机器人UserId同时进房。建议可以把房间ID作为UserId的标识的一部分,即录制机器人UserId在房间内唯一。
* @method void setUserId(string $UserId) 设置录制机器人的UserId,用于进房发起录制任务。
【*注意】这个UserId不能与当前房间内的主播观众[UserId](https://cloud.tencent.com/document/product/647/46351#userid)重复,也不可能指定相同的录制机器人UserId同时进房。建议可以把房间ID作为UserId的标识的一部分,即录制机器人UserId在房间内唯一。
* @method string getUserSig() 获取录制机器人UserId对应的校验签名,即UserId和UserSig相当于录制机器人进房的登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
* @method void setUserSig(string $UserSig) 设置录制机器人UserId对应的校验签名,即UserId和UserSig相当于录制机器人进房的登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
* @method RecordParams getRecordParams() 获取云端录制控制参数。
* @method void setRecordParams(RecordParams $RecordParams) 设置云端录制控制参数。
* @method StorageParams getStorageParams() 获取云端录制文件上传到云存储的参数(目前支持云点播VOD和对象存储COS)。点播和对象存储的参数必填其中之一,不支持同时设置点播和对象存储。
* @method void setStorageParams(StorageParams $StorageParams) 设置云端录制文件上传到云存储的参数(目前支持云点播VOD和对象存储COS)。点播和对象存储的参数必填其中之一,不支持同时设置点播和对象存储。
* @method integer getRoomIdType() 获取TRTC房间号的类型。
【*注意】必须和录制的房间所对应的RoomId类型相同:
0: 字符串类型的RoomId
1: 32位整型的RoomId(默认)
* @method void setRoomIdType(integer $RoomIdType) 设置TRTC房间号的类型。
【*注意】必须和录制的房间所对应的RoomId类型相同:
0: 字符串类型的RoomId
1: 32位整型的RoomId(默认)
* @method MixTranscodeParams getMixTranscodeParams() 获取混流的转码参数,录制模式为混流的时候可以设置。
* @method void setMixTranscodeParams(MixTranscodeParams $MixTranscodeParams) 设置混流的转码参数,录制模式为混流的时候可以设置。
* @method MixLayoutParams getMixLayoutParams() 获取混流的布局参数,录制模式为混流的时候可以设置。
* @method void setMixLayoutParams(MixLayoutParams $MixLayoutParams) 设置混流的布局参数,录制模式为混流的时候可以设置。
* @method integer getResourceExpiredHour() 获取接口可以调用的时效性,从成功开启录制并获得任务ID后开始计算,超时后无法调用查询、更新和停止等接口,但是录制任务不会停止。 参数的单位是小时,默认72小时(3天),最大可设置720小时(30天),最小设置6小时。举例说明:如果不设置该参数,那么开始录制成功后,查询、更新和停止录制的调用时效为72个小时。
* @method void setResourceExpiredHour(integer $ResourceExpiredHour) 设置接口可以调用的时效性,从成功开启录制并获得任务ID后开始计算,超时后无法调用查询、更新和停止等接口,但是录制任务不会停止。 参数的单位是小时,默认72小时(3天),最大可设置720小时(30天),最小设置6小时。举例说明:如果不设置该参数,那么开始录制成功后,查询、更新和停止录制的调用时效为72个小时。
* @method string getPrivateMapKey() 获取TRTC房间权限加密串,只有在TRTC控制台启用了高级权限控制的时候需要携带,在TRTC控制台如果开启高级权限控制后,TRTC 的后台服务系统会校验一个叫做 [PrivateMapKey] 的“权限票据”,权限票据中包含了一个加密后的 RoomId 和一个加密后的“权限位列表”。由于 PrivateMapKey 中包含 RoomId,所以只提供了 UserSig 没有提供 PrivateMapKey 时,并不能进入指定的房间。
* @method void setPrivateMapKey(string $PrivateMapKey) 设置TRTC房间权限加密串,只有在TRTC控制台启用了高级权限控制的时候需要携带,在TRTC控制台如果开启高级权限控制后,TRTC 的后台服务系统会校验一个叫做 [PrivateMapKey] 的“权限票据”,权限票据中包含了一个加密后的 RoomId 和一个加密后的“权限位列表”。由于 PrivateMapKey 中包含 RoomId,所以只提供了 UserSig 没有提供 PrivateMapKey 时,并不能进入指定的房间。
*/
class CreateCloudRecordingRequest extends AbstractModel
{
/**
* @var integer TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和录制的房间所对应的SdkAppId相同。
*/
public $SdkAppId;
/**
* @var string TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),录制的TRTC房间所对应的RoomId。
*/
public $RoomId;
/**
* @var string 录制机器人的UserId,用于进房发起录制任务。
【*注意】这个UserId不能与当前房间内的主播观众[UserId](https://cloud.tencent.com/document/product/647/46351#userid)重复,也不可能指定相同的录制机器人UserId同时进房。建议可以把房间ID作为UserId的标识的一部分,即录制机器人UserId在房间内唯一。
*/
public $UserId;
/**
* @var string 录制机器人UserId对应的校验签名,即UserId和UserSig相当于录制机器人进房的登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
*/
public $UserSig;
/**
* @var RecordParams 云端录制控制参数。
*/
public $RecordParams;
/**
* @var StorageParams 云端录制文件上传到云存储的参数(目前支持云点播VOD和对象存储COS)。点播和对象存储的参数必填其中之一,不支持同时设置点播和对象存储。
*/
public $StorageParams;
/**
* @var integer TRTC房间号的类型。
【*注意】必须和录制的房间所对应的RoomId类型相同:
0: 字符串类型的RoomId
1: 32位整型的RoomId(默认)
*/
public $RoomIdType;
/**
* @var MixTranscodeParams 混流的转码参数,录制模式为混流的时候可以设置。
*/
public $MixTranscodeParams;
/**
* @var MixLayoutParams 混流的布局参数,录制模式为混流的时候可以设置。
*/
public $MixLayoutParams;
/**
* @var integer 接口可以调用的时效性,从成功开启录制并获得任务ID后开始计算,超时后无法调用查询、更新和停止等接口,但是录制任务不会停止。 参数的单位是小时,默认72小时(3天),最大可设置720小时(30天),最小设置6小时。举例说明:如果不设置该参数,那么开始录制成功后,查询、更新和停止录制的调用时效为72个小时。
*/
public $ResourceExpiredHour;
/**
* @var string TRTC房间权限加密串,只有在TRTC控制台启用了高级权限控制的时候需要携带,在TRTC控制台如果开启高级权限控制后,TRTC 的后台服务系统会校验一个叫做 [PrivateMapKey] 的“权限票据”,权限票据中包含了一个加密后的 RoomId 和一个加密后的“权限位列表”。由于 PrivateMapKey 中包含 RoomId,所以只提供了 UserSig 没有提供 PrivateMapKey 时,并不能进入指定的房间。
*/
public $PrivateMapKey;
/**
* @param integer $SdkAppId TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和录制的房间所对应的SdkAppId相同。
* @param string $RoomId TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),录制的TRTC房间所对应的RoomId。
* @param string $UserId 录制机器人的UserId,用于进房发起录制任务。
【*注意】这个UserId不能与当前房间内的主播观众[UserId](https://cloud.tencent.com/document/product/647/46351#userid)重复,也不可能指定相同的录制机器人UserId同时进房。建议可以把房间ID作为UserId的标识的一部分,即录制机器人UserId在房间内唯一。
* @param string $UserSig 录制机器人UserId对应的校验签名,即UserId和UserSig相当于录制机器人进房的登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
* @param RecordParams $RecordParams 云端录制控制参数。
* @param StorageParams $StorageParams 云端录制文件上传到云存储的参数(目前支持云点播VOD和对象存储COS)。点播和对象存储的参数必填其中之一,不支持同时设置点播和对象存储。
* @param integer $RoomIdType TRTC房间号的类型。
【*注意】必须和录制的房间所对应的RoomId类型相同:
0: 字符串类型的RoomId
1: 32位整型的RoomId(默认)
* @param MixTranscodeParams $MixTranscodeParams 混流的转码参数,录制模式为混流的时候可以设置。
* @param MixLayoutParams $MixLayoutParams 混流的布局参数,录制模式为混流的时候可以设置。
* @param integer $ResourceExpiredHour 接口可以调用的时效性,从成功开启录制并获得任务ID后开始计算,超时后无法调用查询、更新和停止等接口,但是录制任务不会停止。 参数的单位是小时,默认72小时(3天),最大可设置720小时(30天),最小设置6小时。举例说明:如果不设置该参数,那么开始录制成功后,查询、更新和停止录制的调用时效为72个小时。
* @param string $PrivateMapKey TRTC房间权限加密串,只有在TRTC控制台启用了高级权限控制的时候需要携带,在TRTC控制台如果开启高级权限控制后,TRTC 的后台服务系统会校验一个叫做 [PrivateMapKey] 的“权限票据”,权限票据中包含了一个加密后的 RoomId 和一个加密后的“权限位列表”。由于 PrivateMapKey 中包含 RoomId,所以只提供了 UserSig 没有提供 PrivateMapKey 时,并不能进入指定的房间。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("RoomId",$param) and $param["RoomId"] !== null) {
$this->RoomId = $param["RoomId"];
}
if (array_key_exists("UserId",$param) and $param["UserId"] !== null) {
$this->UserId = $param["UserId"];
}
if (array_key_exists("UserSig",$param) and $param["UserSig"] !== null) {
$this->UserSig = $param["UserSig"];
}
if (array_key_exists("RecordParams",$param) and $param["RecordParams"] !== null) {
$this->RecordParams = new RecordParams();
$this->RecordParams->deserialize($param["RecordParams"]);
}
if (array_key_exists("StorageParams",$param) and $param["StorageParams"] !== null) {
$this->StorageParams = new StorageParams();
$this->StorageParams->deserialize($param["StorageParams"]);
}
if (array_key_exists("RoomIdType",$param) and $param["RoomIdType"] !== null) {
$this->RoomIdType = $param["RoomIdType"];
}
if (array_key_exists("MixTranscodeParams",$param) and $param["MixTranscodeParams"] !== null) {
$this->MixTranscodeParams = new MixTranscodeParams();
$this->MixTranscodeParams->deserialize($param["MixTranscodeParams"]);
}
if (array_key_exists("MixLayoutParams",$param) and $param["MixLayoutParams"] !== null) {
$this->MixLayoutParams = new MixLayoutParams();
$this->MixLayoutParams->deserialize($param["MixLayoutParams"]);
}
if (array_key_exists("ResourceExpiredHour",$param) and $param["ResourceExpiredHour"] !== null) {
$this->ResourceExpiredHour = $param["ResourceExpiredHour"];
}
if (array_key_exists("PrivateMapKey",$param) and $param["PrivateMapKey"] !== null) {
$this->PrivateMapKey = $param["PrivateMapKey"];
}
}
}
@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* CreateCloudRecording返回参数结构体
*
* @method string getTaskId() 获取云录制服务分配的任务 ID。任务 ID 是对一次录制生命周期过程的唯一标识,结束录制时会失去意义。任务 ID需要业务保存下来,作为下次针对这个录制任务操作的参数。
* @method void setTaskId(string $TaskId) 设置云录制服务分配的任务 ID。任务 ID 是对一次录制生命周期过程的唯一标识,结束录制时会失去意义。任务 ID需要业务保存下来,作为下次针对这个录制任务操作的参数。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class CreateCloudRecordingResponse extends AbstractModel
{
/**
* @var string 云录制服务分配的任务 ID。任务 ID 是对一次录制生命周期过程的唯一标识,结束录制时会失去意义。任务 ID需要业务保存下来,作为下次针对这个录制任务操作的参数。
*/
public $TaskId;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param string $TaskId 云录制服务分配的任务 ID。任务 ID 是对一次录制生命周期过程的唯一标识,结束录制时会失去意义。任务 ID需要业务保存下来,作为下次针对这个录制任务操作的参数。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("TaskId",$param) and $param["TaskId"] !== null) {
$this->TaskId = $param["TaskId"];
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,125 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* CreatePicture请求参数结构体
*
* @method integer getSdkAppId() 获取应用id
* @method void setSdkAppId(integer $SdkAppId) 设置应用id
* @method string getContent() 获取图片内容经base64编码后的string格式,最大长度为2M
* @method void setContent(string $Content) 设置图片内容经base64编码后的string格式,最大长度为2M
* @method string getSuffix() 获取图片后缀名
* @method void setSuffix(string $Suffix) 设置图片后缀名
* @method integer getHeight() 获取图片长度
* @method void setHeight(integer $Height) 设置图片长度
* @method integer getWidth() 获取图片宽度
* @method void setWidth(integer $Width) 设置图片宽度
* @method integer getXPosition() 获取显示位置x轴方向
* @method void setXPosition(integer $XPosition) 设置显示位置x轴方向
* @method integer getYPosition() 获取显示位置y轴方向
* @method void setYPosition(integer $YPosition) 设置显示位置y轴方向
*/
class CreatePictureRequest extends AbstractModel
{
/**
* @var integer 应用id
*/
public $SdkAppId;
/**
* @var string 图片内容经base64编码后的string格式,最大长度为2M
*/
public $Content;
/**
* @var string 图片后缀名
*/
public $Suffix;
/**
* @var integer 图片长度
*/
public $Height;
/**
* @var integer 图片宽度
*/
public $Width;
/**
* @var integer 显示位置x轴方向
*/
public $XPosition;
/**
* @var integer 显示位置y轴方向
*/
public $YPosition;
/**
* @param integer $SdkAppId 应用id
* @param string $Content 图片内容经base64编码后的string格式,最大长度为2M
* @param string $Suffix 图片后缀名
* @param integer $Height 图片长度
* @param integer $Width 图片宽度
* @param integer $XPosition 显示位置x轴方向
* @param integer $YPosition 显示位置y轴方向
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("Content",$param) and $param["Content"] !== null) {
$this->Content = $param["Content"];
}
if (array_key_exists("Suffix",$param) and $param["Suffix"] !== null) {
$this->Suffix = $param["Suffix"];
}
if (array_key_exists("Height",$param) and $param["Height"] !== null) {
$this->Height = $param["Height"];
}
if (array_key_exists("Width",$param) and $param["Width"] !== null) {
$this->Width = $param["Width"];
}
if (array_key_exists("XPosition",$param) and $param["XPosition"] !== null) {
$this->XPosition = $param["XPosition"];
}
if (array_key_exists("YPosition",$param) and $param["YPosition"] !== null) {
$this->YPosition = $param["YPosition"];
}
}
}
@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* CreatePicture返回参数结构体
*
* @method integer getPictureId() 获取图片id
* @method void setPictureId(integer $PictureId) 设置图片id
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class CreatePictureResponse extends AbstractModel
{
/**
* @var integer 图片id
*/
public $PictureId;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param integer $PictureId 图片id
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("PictureId",$param) and $param["PictureId"] !== null) {
$this->PictureId = $param["PictureId"];
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DeleteCloudRecording请求参数结构体
*
* @method integer getSdkAppId() 获取TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同。
* @method void setSdkAppId(integer $SdkAppId) 设置TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同。
* @method string getTaskId() 获取录制任务的唯一Id,在启动录制成功后会返回。
* @method void setTaskId(string $TaskId) 设置录制任务的唯一Id,在启动录制成功后会返回。
*/
class DeleteCloudRecordingRequest extends AbstractModel
{
/**
* @var integer TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同。
*/
public $SdkAppId;
/**
* @var string 录制任务的唯一Id,在启动录制成功后会返回。
*/
public $TaskId;
/**
* @param integer $SdkAppId TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同。
* @param string $TaskId 录制任务的唯一Id,在启动录制成功后会返回。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("TaskId",$param) and $param["TaskId"] !== null) {
$this->TaskId = $param["TaskId"];
}
}
}
@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DeleteCloudRecording返回参数结构体
*
* @method string getTaskId() 获取云录制服务分配的任务 ID。任务 ID 是对一次录制生命周期过程的唯一标识,结束录制时会失去意义。
* @method void setTaskId(string $TaskId) 设置云录制服务分配的任务 ID。任务 ID 是对一次录制生命周期过程的唯一标识,结束录制时会失去意义。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DeleteCloudRecordingResponse extends AbstractModel
{
/**
* @var string 云录制服务分配的任务 ID。任务 ID 是对一次录制生命周期过程的唯一标识,结束录制时会失去意义。
*/
public $TaskId;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param string $TaskId 云录制服务分配的任务 ID。任务 ID 是对一次录制生命周期过程的唯一标识,结束录制时会失去意义。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("TaskId",$param) and $param["TaskId"] !== null) {
$this->TaskId = $param["TaskId"];
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DeletePicture请求参数结构体
*
* @method integer getPictureId() 获取图片id
* @method void setPictureId(integer $PictureId) 设置图片id
* @method integer getSdkAppId() 获取应用id
* @method void setSdkAppId(integer $SdkAppId) 设置应用id
*/
class DeletePictureRequest extends AbstractModel
{
/**
* @var integer 图片id
*/
public $PictureId;
/**
* @var integer 应用id
*/
public $SdkAppId;
/**
* @param integer $PictureId 图片id
* @param integer $SdkAppId 应用id
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("PictureId",$param) and $param["PictureId"] !== null) {
$this->PictureId = $param["PictureId"];
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
}
}
@@ -0,0 +1,53 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DeletePicture返回参数结构体
*
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DeletePictureResponse extends AbstractModel
{
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,213 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeCallDetailInfo请求参数结构体
*
* @method string getCommId() 获取通话 ID(唯一标识一次通话): SdkAppId_RoomId(房间号)_ CreateTime(房间创建时间,unix时间戳,单位为s)例:1400xxxxxx_218695_1590065777。通过 DescribeRoomInfo(查询历史房间列表)接口获取([查询历史房间列表](https://cloud.tencent.com/document/product/647/44050))。
* @method void setCommId(string $CommId) 设置通话 ID(唯一标识一次通话): SdkAppId_RoomId(房间号)_ CreateTime(房间创建时间,unix时间戳,单位为s)例:1400xxxxxx_218695_1590065777。通过 DescribeRoomInfo(查询历史房间列表)接口获取([查询历史房间列表](https://cloud.tencent.com/document/product/647/44050))。
* @method integer getStartTime() 获取查询开始时间,本地unix时间戳,单位为秒(如:1590065777),
注意:支持查询14天内的数据。
* @method void setStartTime(integer $StartTime) 设置查询开始时间,本地unix时间戳,单位为秒(如:1590065777),
注意:支持查询14天内的数据。
* @method integer getEndTime() 获取查询结束时间,本地unix时间戳,单位为秒(如:1590065877)
注意:DataType 不为null ,与StartTime间隔时间不超过1小时;DataType 为null,与StartTime间隔时间不超过4小时。
* @method void setEndTime(integer $EndTime) 设置查询结束时间,本地unix时间戳,单位为秒(如:1590065877)
注意:DataType 不为null ,与StartTime间隔时间不超过1小时;DataType 为null,与StartTime间隔时间不超过4小时。
* @method integer getSdkAppId() 获取用户SdkAppId(如:1400xxxxxx)。
* @method void setSdkAppId(integer $SdkAppId) 设置用户SdkAppId(如:1400xxxxxx)。
* @method array getUserIds() 获取需查询的用户数组,默认不填返回6个用户。
* @method void setUserIds(array $UserIds) 设置需查询的用户数组,默认不填返回6个用户。
* @method array getDataType() 获取需查询的指标,不填则只返回用户列表,填all则返回所有指标。
appCpuAPP CPU使用率;
sysCpu:系统 CPU使用率;
aBit:上/下行音频码率;单位:bps
aBlock:音频卡顿时长;单位:ms
bigvBit:上/下行视频码率;单位:bps
bigvCapFps:视频采集帧率;
bigvEncFps:视频发送帧率;
bigvDecFps:渲染帧率;
bigvBlock:视频卡顿时长;单位:ms
aLoss:上/下行音频丢包率;
bigvLoss:上/下行视频丢包率;
bigvWidth:上/下行分辨率宽;
bigvHeight:上/下行分辨率高
* @method void setDataType(array $DataType) 设置需查询的指标,不填则只返回用户列表,填all则返回所有指标。
appCpuAPP CPU使用率;
sysCpu:系统 CPU使用率;
aBit:上/下行音频码率;单位:bps
aBlock:音频卡顿时长;单位:ms
bigvBit:上/下行视频码率;单位:bps
bigvCapFps:视频采集帧率;
bigvEncFps:视频发送帧率;
bigvDecFps:渲染帧率;
bigvBlock:视频卡顿时长;单位:ms
aLoss:上/下行音频丢包率;
bigvLoss:上/下行视频丢包率;
bigvWidth:上/下行分辨率宽;
bigvHeight:上/下行分辨率高
* @method integer getPageNumber() 获取当前页数,默认为0,
注意:PageNumber和PageSize 其中一个不填均默认返回6条数据。
* @method void setPageNumber(integer $PageNumber) 设置当前页数,默认为0,
注意:PageNumber和PageSize 其中一个不填均默认返回6条数据。
* @method integer getPageSize() 获取每页个数,默认为6,
范围:[1100]
注意:DataType不为nullUserIds长度不能超过6PageSize最大值不超过6;
DataType 为nullUserIds长度不超过100PageSize最大不超过100。
* @method void setPageSize(integer $PageSize) 设置每页个数,默认为6,
范围:[1100]
注意:DataType不为nullUserIds长度不能超过6PageSize最大值不超过6;
DataType 为nullUserIds长度不超过100PageSize最大不超过100。
*/
class DescribeCallDetailInfoRequest extends AbstractModel
{
/**
* @var string 通话 ID(唯一标识一次通话): SdkAppId_RoomId(房间号)_ CreateTime(房间创建时间,unix时间戳,单位为s)例:1400xxxxxx_218695_1590065777。通过 DescribeRoomInfo(查询历史房间列表)接口获取([查询历史房间列表](https://cloud.tencent.com/document/product/647/44050))。
*/
public $CommId;
/**
* @var integer 查询开始时间,本地unix时间戳,单位为秒(如:1590065777),
注意:支持查询14天内的数据。
*/
public $StartTime;
/**
* @var integer 查询结束时间,本地unix时间戳,单位为秒(如:1590065877)
注意:DataType 不为null ,与StartTime间隔时间不超过1小时;DataType 为null,与StartTime间隔时间不超过4小时。
*/
public $EndTime;
/**
* @var integer 用户SdkAppId(如:1400xxxxxx)。
*/
public $SdkAppId;
/**
* @var array 需查询的用户数组,默认不填返回6个用户。
*/
public $UserIds;
/**
* @var array 需查询的指标,不填则只返回用户列表,填all则返回所有指标。
appCpuAPP CPU使用率;
sysCpu:系统 CPU使用率;
aBit:上/下行音频码率;单位:bps
aBlock:音频卡顿时长;单位:ms
bigvBit:上/下行视频码率;单位:bps
bigvCapFps:视频采集帧率;
bigvEncFps:视频发送帧率;
bigvDecFps:渲染帧率;
bigvBlock:视频卡顿时长;单位:ms
aLoss:上/下行音频丢包率;
bigvLoss:上/下行视频丢包率;
bigvWidth:上/下行分辨率宽;
bigvHeight:上/下行分辨率高
*/
public $DataType;
/**
* @var integer 当前页数,默认为0
注意:PageNumber和PageSize 其中一个不填均默认返回6条数据。
*/
public $PageNumber;
/**
* @var integer 每页个数,默认为6
范围:[1100]
注意:DataType不为nullUserIds长度不能超过6PageSize最大值不超过6;
DataType 为nullUserIds长度不超过100PageSize最大不超过100。
*/
public $PageSize;
/**
* @param string $CommId 通话 ID(唯一标识一次通话): SdkAppId_RoomId(房间号)_ CreateTime(房间创建时间,unix时间戳,单位为s)例:1400xxxxxx_218695_1590065777。通过 DescribeRoomInfo(查询历史房间列表)接口获取([查询历史房间列表](https://cloud.tencent.com/document/product/647/44050))。
* @param integer $StartTime 查询开始时间,本地unix时间戳,单位为秒(如:1590065777),
注意:支持查询14天内的数据。
* @param integer $EndTime 查询结束时间,本地unix时间戳,单位为秒(如:1590065877)
注意:DataType 不为null ,与StartTime间隔时间不超过1小时;DataType 为null,与StartTime间隔时间不超过4小时。
* @param integer $SdkAppId 用户SdkAppId(如:1400xxxxxx)。
* @param array $UserIds 需查询的用户数组,默认不填返回6个用户。
* @param array $DataType 需查询的指标,不填则只返回用户列表,填all则返回所有指标。
appCpuAPP CPU使用率;
sysCpu:系统 CPU使用率;
aBit:上/下行音频码率;单位:bps
aBlock:音频卡顿时长;单位:ms
bigvBit:上/下行视频码率;单位:bps
bigvCapFps:视频采集帧率;
bigvEncFps:视频发送帧率;
bigvDecFps:渲染帧率;
bigvBlock:视频卡顿时长;单位:ms
aLoss:上/下行音频丢包率;
bigvLoss:上/下行视频丢包率;
bigvWidth:上/下行分辨率宽;
bigvHeight:上/下行分辨率高
* @param integer $PageNumber 当前页数,默认为0
注意:PageNumber和PageSize 其中一个不填均默认返回6条数据。
* @param integer $PageSize 每页个数,默认为6
范围:[1100]
注意:DataType不为nullUserIds长度不能超过6PageSize最大值不超过6;
DataType 为nullUserIds长度不超过100PageSize最大不超过100。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("CommId",$param) and $param["CommId"] !== null) {
$this->CommId = $param["CommId"];
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("UserIds",$param) and $param["UserIds"] !== null) {
$this->UserIds = $param["UserIds"];
}
if (array_key_exists("DataType",$param) and $param["DataType"] !== null) {
$this->DataType = $param["DataType"];
}
if (array_key_exists("PageNumber",$param) and $param["PageNumber"] !== null) {
$this->PageNumber = $param["PageNumber"];
}
if (array_key_exists("PageSize",$param) and $param["PageSize"] !== null) {
$this->PageSize = $param["PageSize"];
}
}
}
@@ -0,0 +1,107 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeCallDetailInfo返回参数结构体
*
* @method integer getTotal() 获取返回的用户总条数
* @method void setTotal(integer $Total) 设置返回的用户总条数
* @method array getUserList() 获取用户信息列表
注意:此字段可能返回 null,表示取不到有效值。
* @method void setUserList(array $UserList) 设置用户信息列表
注意:此字段可能返回 null,表示取不到有效值。
* @method array getData() 获取质量数据
注意:此字段可能返回 null,表示取不到有效值。
* @method void setData(array $Data) 设置质量数据
注意:此字段可能返回 null,表示取不到有效值。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeCallDetailInfoResponse extends AbstractModel
{
/**
* @var integer 返回的用户总条数
*/
public $Total;
/**
* @var array 用户信息列表
注意:此字段可能返回 null,表示取不到有效值。
*/
public $UserList;
/**
* @var array 质量数据
注意:此字段可能返回 null,表示取不到有效值。
*/
public $Data;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param integer $Total 返回的用户总条数
* @param array $UserList 用户信息列表
注意:此字段可能返回 null,表示取不到有效值。
* @param array $Data 质量数据
注意:此字段可能返回 null,表示取不到有效值。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Total",$param) and $param["Total"] !== null) {
$this->Total = $param["Total"];
}
if (array_key_exists("UserList",$param) and $param["UserList"] !== null) {
$this->UserList = [];
foreach ($param["UserList"] as $key => $value){
$obj = new UserInformation();
$obj->deserialize($value);
array_push($this->UserList, $obj);
}
}
if (array_key_exists("Data",$param) and $param["Data"] !== null) {
$this->Data = [];
foreach ($param["Data"] as $key => $value){
$obj = new QualityData();
$obj->deserialize($value);
array_push($this->Data, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeCloudRecording请求参数结构体
*
* @method integer getSdkAppId() 获取TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同。
* @method void setSdkAppId(integer $SdkAppId) 设置TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同。
* @method string getTaskId() 获取录制任务的唯一Id,在启动录制成功后会返回。
* @method void setTaskId(string $TaskId) 设置录制任务的唯一Id,在启动录制成功后会返回。
*/
class DescribeCloudRecordingRequest extends AbstractModel
{
/**
* @var integer TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同。
*/
public $SdkAppId;
/**
* @var string 录制任务的唯一Id,在启动录制成功后会返回。
*/
public $TaskId;
/**
* @param integer $SdkAppId TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同。
* @param string $TaskId 录制任务的唯一Id,在启动录制成功后会返回。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("TaskId",$param) and $param["TaskId"] !== null) {
$this->TaskId = $param["TaskId"];
}
}
}
@@ -0,0 +1,110 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeCloudRecording返回参数结构体
*
* @method string getTaskId() 获取录制任务的唯一Id。
* @method void setTaskId(string $TaskId) 设置录制任务的唯一Id。
* @method string getStatus() 获取云端录制任务的状态信息。
Idle:表示当前录制任务空闲中
InProgress:表示当前录制任务正在进行中。
Exited:表示当前录制任务正在退出的过程中。
* @method void setStatus(string $Status) 设置云端录制任务的状态信息。
Idle:表示当前录制任务空闲中
InProgress:表示当前录制任务正在进行中。
Exited:表示当前录制任务正在退出的过程中。
* @method array getStorageFileList() 获取录制文件信息。
注意:此字段可能返回 null,表示取不到有效值。
* @method void setStorageFileList(array $StorageFileList) 设置录制文件信息。
注意:此字段可能返回 null,表示取不到有效值。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeCloudRecordingResponse extends AbstractModel
{
/**
* @var string 录制任务的唯一Id。
*/
public $TaskId;
/**
* @var string 云端录制任务的状态信息。
Idle:表示当前录制任务空闲中
InProgress:表示当前录制任务正在进行中。
Exited:表示当前录制任务正在退出的过程中。
*/
public $Status;
/**
* @var array 录制文件信息。
注意:此字段可能返回 null,表示取不到有效值。
*/
public $StorageFileList;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param string $TaskId 录制任务的唯一Id。
* @param string $Status 云端录制任务的状态信息。
Idle:表示当前录制任务空闲中
InProgress:表示当前录制任务正在进行中。
Exited:表示当前录制任务正在退出的过程中。
* @param array $StorageFileList 录制文件信息。
注意:此字段可能返回 null,表示取不到有效值。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("TaskId",$param) and $param["TaskId"] !== null) {
$this->TaskId = $param["TaskId"];
}
if (array_key_exists("Status",$param) and $param["Status"] !== null) {
$this->Status = $param["Status"];
}
if (array_key_exists("StorageFileList",$param) and $param["StorageFileList"] !== null) {
$this->StorageFileList = [];
foreach ($param["StorageFileList"] as $key => $value){
$obj = new StorageFile();
$obj->deserialize($value);
array_push($this->StorageFileList, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,81 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeMixTranscodingUsage请求参数结构体
*
* @method string getStartTime() 获取查询开始时间,格式为YYYY-MM-DD。
* @method void setStartTime(string $StartTime) 设置查询开始时间,格式为YYYY-MM-DD。
* @method string getEndTime() 获取查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @method void setEndTime(string $EndTime) 设置查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @method integer getSdkAppId() 获取TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
* @method void setSdkAppId(integer $SdkAppId) 设置TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
*/
class DescribeMixTranscodingUsageRequest extends AbstractModel
{
/**
* @var string 查询开始时间,格式为YYYY-MM-DD。
*/
public $StartTime;
/**
* @var string 查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
*/
public $EndTime;
/**
* @var integer TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
*/
public $SdkAppId;
/**
* @param string $StartTime 查询开始时间,格式为YYYY-MM-DD。
* @param string $EndTime 查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @param integer $SdkAppId TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
}
}
@@ -0,0 +1,82 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeMixTranscodingUsage返回参数结构体
*
* @method array getUsageKey() 获取用量类型,与UsageValue中各个位置的值对应。
* @method void setUsageKey(array $UsageKey) 设置用量类型,与UsageValue中各个位置的值对应。
* @method array getUsageList() 获取各个时间点用量明细。
* @method void setUsageList(array $UsageList) 设置各个时间点用量明细。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeMixTranscodingUsageResponse extends AbstractModel
{
/**
* @var array 用量类型,与UsageValue中各个位置的值对应。
*/
public $UsageKey;
/**
* @var array 各个时间点用量明细。
*/
public $UsageList;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $UsageKey 用量类型,与UsageValue中各个位置的值对应。
* @param array $UsageList 各个时间点用量明细。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("UsageKey",$param) and $param["UsageKey"] !== null) {
$this->UsageKey = $param["UsageKey"];
}
if (array_key_exists("UsageList",$param) and $param["UsageList"] !== null) {
$this->UsageList = [];
foreach ($param["UsageList"] as $key => $value){
$obj = new TrtcUsage();
$obj->deserialize($value);
array_push($this->UsageList, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,89 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribePicture请求参数结构体
*
* @method integer getSdkAppId() 获取应用ID
* @method void setSdkAppId(integer $SdkAppId) 设置应用ID
* @method integer getPictureId() 获取图片ID,不填时返回该应用下所有图片
* @method void setPictureId(integer $PictureId) 设置图片ID,不填时返回该应用下所有图片
* @method integer getPageSize() 获取每页数量,不填时默认为10
* @method void setPageSize(integer $PageSize) 设置每页数量,不填时默认为10
* @method integer getPageNo() 获取页码,不填时默认为1
* @method void setPageNo(integer $PageNo) 设置页码,不填时默认为1
*/
class DescribePictureRequest extends AbstractModel
{
/**
* @var integer 应用ID
*/
public $SdkAppId;
/**
* @var integer 图片ID,不填时返回该应用下所有图片
*/
public $PictureId;
/**
* @var integer 每页数量,不填时默认为10
*/
public $PageSize;
/**
* @var integer 页码,不填时默认为1
*/
public $PageNo;
/**
* @param integer $SdkAppId 应用ID
* @param integer $PictureId 图片ID,不填时返回该应用下所有图片
* @param integer $PageSize 每页数量,不填时默认为10
* @param integer $PageNo 页码,不填时默认为1
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("PictureId",$param) and $param["PictureId"] !== null) {
$this->PictureId = $param["PictureId"];
}
if (array_key_exists("PageSize",$param) and $param["PageSize"] !== null) {
$this->PageSize = $param["PageSize"];
}
if (array_key_exists("PageNo",$param) and $param["PageNo"] !== null) {
$this->PageNo = $param["PageNo"];
}
}
}
@@ -0,0 +1,82 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribePicture返回参数结构体
*
* @method integer getTotal() 获取返回的图片记录数
* @method void setTotal(integer $Total) 设置返回的图片记录数
* @method array getPictureInfo() 获取图片信息列表
* @method void setPictureInfo(array $PictureInfo) 设置图片信息列表
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribePictureResponse extends AbstractModel
{
/**
* @var integer 返回的图片记录数
*/
public $Total;
/**
* @var array 图片信息列表
*/
public $PictureInfo;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param integer $Total 返回的图片记录数
* @param array $PictureInfo 图片信息列表
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Total",$param) and $param["Total"] !== null) {
$this->Total = $param["Total"];
}
if (array_key_exists("PictureInfo",$param) and $param["PictureInfo"] !== null) {
$this->PictureInfo = [];
foreach ($param["PictureInfo"] as $key => $value){
$obj = new PictureInfo();
$obj->deserialize($value);
array_push($this->PictureInfo, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,81 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeRecordStatistic请求参数结构体
*
* @method string getStartTime() 获取查询开始日期,格式为YYYY-MM-DD。
* @method void setStartTime(string $StartTime) 设置查询开始日期,格式为YYYY-MM-DD。
* @method string getEndTime() 获取查询结束日期,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @method void setEndTime(string $EndTime) 设置查询结束日期,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @method integer getSdkAppId() 获取应用ID,可不传。传应用ID时返回的是该应用的用量,不传时返回多个应用的合计值。
* @method void setSdkAppId(integer $SdkAppId) 设置应用ID,可不传。传应用ID时返回的是该应用的用量,不传时返回多个应用的合计值。
*/
class DescribeRecordStatisticRequest extends AbstractModel
{
/**
* @var string 查询开始日期,格式为YYYY-MM-DD。
*/
public $StartTime;
/**
* @var string 查询结束日期,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
*/
public $EndTime;
/**
* @var integer 应用ID,可不传。传应用ID时返回的是该应用的用量,不传时返回多个应用的合计值。
*/
public $SdkAppId;
/**
* @param string $StartTime 查询开始日期,格式为YYYY-MM-DD。
* @param string $EndTime 查询结束日期,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @param integer $SdkAppId 应用ID,可不传。传应用ID时返回的是该应用的用量,不传时返回多个应用的合计值。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
}
}
@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeRecordStatistic返回参数结构体
*
* @method array getSdkAppIdUsages() 获取应用的用量信息数组。
* @method void setSdkAppIdUsages(array $SdkAppIdUsages) 设置应用的用量信息数组。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeRecordStatisticResponse extends AbstractModel
{
/**
* @var array 应用的用量信息数组。
*/
public $SdkAppIdUsages;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $SdkAppIdUsages 应用的用量信息数组。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppIdUsages",$param) and $param["SdkAppIdUsages"] !== null) {
$this->SdkAppIdUsages = [];
foreach ($param["SdkAppIdUsages"] as $key => $value){
$obj = new SdkAppIdRecordUsage();
$obj->deserialize($value);
array_push($this->SdkAppIdUsages, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,93 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeRecordingUsage请求参数结构体
*
* @method string getStartTime() 获取查询开始时间,格式为YYYY-MM-DD。
* @method void setStartTime(string $StartTime) 设置查询开始时间,格式为YYYY-MM-DD。
* @method string getEndTime() 获取查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @method void setEndTime(string $EndTime) 设置查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @method string getMixType() 获取查询单流录制或合流录制,值为"single"或"multi"。
* @method void setMixType(string $MixType) 设置查询单流录制或合流录制,值为"single"或"multi"。
* @method integer getSdkAppId() 获取TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
* @method void setSdkAppId(integer $SdkAppId) 设置TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
*/
class DescribeRecordingUsageRequest extends AbstractModel
{
/**
* @var string 查询开始时间,格式为YYYY-MM-DD。
*/
public $StartTime;
/**
* @var string 查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
*/
public $EndTime;
/**
* @var string 查询单流录制或合流录制,值为"single"或"multi"。
*/
public $MixType;
/**
* @var integer TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
*/
public $SdkAppId;
/**
* @param string $StartTime 查询开始时间,格式为YYYY-MM-DD。
* @param string $EndTime 查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @param string $MixType 查询单流录制或合流录制,值为"single"或"multi"。
* @param integer $SdkAppId TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("MixType",$param) and $param["MixType"] !== null) {
$this->MixType = $param["MixType"];
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
}
}
@@ -0,0 +1,82 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeRecordingUsage返回参数结构体
*
* @method array getUsageKey() 获取用量类型,与UsageValue中各个位置的值对应。
* @method void setUsageKey(array $UsageKey) 设置用量类型,与UsageValue中各个位置的值对应。
* @method array getUsageList() 获取各个时间点用量明细。
* @method void setUsageList(array $UsageList) 设置各个时间点用量明细。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeRecordingUsageResponse extends AbstractModel
{
/**
* @var array 用量类型,与UsageValue中各个位置的值对应。
*/
public $UsageKey;
/**
* @var array 各个时间点用量明细。
*/
public $UsageList;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $UsageKey 用量类型,与UsageValue中各个位置的值对应。
* @param array $UsageList 各个时间点用量明细。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("UsageKey",$param) and $param["UsageKey"] !== null) {
$this->UsageKey = $param["UsageKey"];
}
if (array_key_exists("UsageList",$param) and $param["UsageList"] !== null) {
$this->UsageList = [];
foreach ($param["UsageList"] as $key => $value){
$obj = new TrtcUsage();
$obj->deserialize($value);
array_push($this->UsageList, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,81 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeRelayUsage请求参数结构体
*
* @method string getStartTime() 获取查询开始时间,格式为YYYY-MM-DD。
* @method void setStartTime(string $StartTime) 设置查询开始时间,格式为YYYY-MM-DD。
* @method string getEndTime() 获取查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @method void setEndTime(string $EndTime) 设置查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @method integer getSdkAppId() 获取TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
* @method void setSdkAppId(integer $SdkAppId) 设置TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
*/
class DescribeRelayUsageRequest extends AbstractModel
{
/**
* @var string 查询开始时间,格式为YYYY-MM-DD。
*/
public $StartTime;
/**
* @var string 查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
*/
public $EndTime;
/**
* @var integer TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
*/
public $SdkAppId;
/**
* @param string $StartTime 查询开始时间,格式为YYYY-MM-DD。
* @param string $EndTime 查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @param integer $SdkAppId TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
}
}
@@ -0,0 +1,82 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeRelayUsage返回参数结构体
*
* @method array getUsageKey() 获取用量类型,与UsageValue中各个位置的值对应。
* @method void setUsageKey(array $UsageKey) 设置用量类型,与UsageValue中各个位置的值对应。
* @method array getUsageList() 获取各个时间点用量明细。
* @method void setUsageList(array $UsageList) 设置各个时间点用量明细。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeRelayUsageResponse extends AbstractModel
{
/**
* @var array 用量类型,与UsageValue中各个位置的值对应。
*/
public $UsageKey;
/**
* @var array 各个时间点用量明细。
*/
public $UsageList;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $UsageKey 用量类型,与UsageValue中各个位置的值对应。
* @param array $UsageList 各个时间点用量明细。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("UsageKey",$param) and $param["UsageKey"] !== null) {
$this->UsageKey = $param["UsageKey"];
}
if (array_key_exists("UsageList",$param) and $param["UsageList"] !== null) {
$this->UsageList = [];
foreach ($param["UsageList"] as $key => $value){
$obj = new TrtcUsage();
$obj->deserialize($value);
array_push($this->UsageList, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,129 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeRoomInfo请求参数结构体
*
* @method integer getSdkAppId() 获取用户SdkAppId(如:1400xxxxxx
* @method void setSdkAppId(integer $SdkAppId) 设置用户SdkAppId(如:1400xxxxxx
* @method integer getStartTime() 获取查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据
* @method void setStartTime(integer $StartTime) 设置查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据
* @method integer getEndTime() 获取查询结束时间,本地unix时间戳,单位为秒(如:1590065877)
注意:与StartTime间隔时间不超过24小时。
* @method void setEndTime(integer $EndTime) 设置查询结束时间,本地unix时间戳,单位为秒(如:1590065877)
注意:与StartTime间隔时间不超过24小时。
* @method string getRoomId() 获取房间号(如:223)
* @method void setRoomId(string $RoomId) 设置房间号(如:223)
* @method integer getPageNumber() 获取当前页数,默认为0,
注意:PageNumber和PageSize 其中一个不填均默认返回10条数据。
* @method void setPageNumber(integer $PageNumber) 设置当前页数,默认为0,
注意:PageNumber和PageSize 其中一个不填均默认返回10条数据。
* @method integer getPageSize() 获取每页个数,默认为10,
范围:[1100]
* @method void setPageSize(integer $PageSize) 设置每页个数,默认为10,
范围:[1100]
*/
class DescribeRoomInfoRequest extends AbstractModel
{
/**
* @var integer 用户SdkAppId(如:1400xxxxxx
*/
public $SdkAppId;
/**
* @var integer 查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据
*/
public $StartTime;
/**
* @var integer 查询结束时间,本地unix时间戳,单位为秒(如:1590065877)
注意:与StartTime间隔时间不超过24小时。
*/
public $EndTime;
/**
* @var string 房间号(如:223)
*/
public $RoomId;
/**
* @var integer 当前页数,默认为0
注意:PageNumber和PageSize 其中一个不填均默认返回10条数据。
*/
public $PageNumber;
/**
* @var integer 每页个数,默认为10
范围:[1100]
*/
public $PageSize;
/**
* @param integer $SdkAppId 用户SdkAppId(如:1400xxxxxx
* @param integer $StartTime 查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据
* @param integer $EndTime 查询结束时间,本地unix时间戳,单位为秒(如:1590065877)
注意:与StartTime间隔时间不超过24小时。
* @param string $RoomId 房间号(如:223)
* @param integer $PageNumber 当前页数,默认为0
注意:PageNumber和PageSize 其中一个不填均默认返回10条数据。
* @param integer $PageSize 每页个数,默认为10
范围:[1100]
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("RoomId",$param) and $param["RoomId"] !== null) {
$this->RoomId = $param["RoomId"];
}
if (array_key_exists("PageNumber",$param) and $param["PageNumber"] !== null) {
$this->PageNumber = $param["PageNumber"];
}
if (array_key_exists("PageSize",$param) and $param["PageSize"] !== null) {
$this->PageSize = $param["PageSize"];
}
}
}
@@ -0,0 +1,82 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeRoomInfo返回参数结构体
*
* @method integer getTotal() 获取返回当页数据总数
* @method void setTotal(integer $Total) 设置返回当页数据总数
* @method array getRoomList() 获取房间信息列表
* @method void setRoomList(array $RoomList) 设置房间信息列表
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeRoomInfoResponse extends AbstractModel
{
/**
* @var integer 返回当页数据总数
*/
public $Total;
/**
* @var array 房间信息列表
*/
public $RoomList;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param integer $Total 返回当页数据总数
* @param array $RoomList 房间信息列表
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Total",$param) and $param["Total"] !== null) {
$this->Total = $param["Total"];
}
if (array_key_exists("RoomList",$param) and $param["RoomList"] !== null) {
$this->RoomList = [];
foreach ($param["RoomList"] as $key => $value){
$obj = new RoomState();
$obj->deserialize($value);
array_push($this->RoomList, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,85 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeScaleInfo请求参数结构体
*
* @method integer getSdkAppId() 获取用户SdkAppId(如:1400xxxxxx
* @method void setSdkAppId(integer $SdkAppId) 设置用户SdkAppId(如:1400xxxxxx
* @method integer getStartTime() 获取查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据。
* @method void setStartTime(integer $StartTime) 设置查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据。
* @method integer getEndTime() 获取查询结束时间,本地unix时间戳,单位为秒(如:1590065877),建议与StartTime间隔时间超过24小时。
注意:按天统计,结束时间大于前一天,否则查询数据为空(如:需查询20号数据,结束时间需晚于20号0点)。
* @method void setEndTime(integer $EndTime) 设置查询结束时间,本地unix时间戳,单位为秒(如:1590065877),建议与StartTime间隔时间超过24小时。
注意:按天统计,结束时间大于前一天,否则查询数据为空(如:需查询20号数据,结束时间需晚于20号0点)。
*/
class DescribeScaleInfoRequest extends AbstractModel
{
/**
* @var integer 用户SdkAppId(如:1400xxxxxx
*/
public $SdkAppId;
/**
* @var integer 查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据。
*/
public $StartTime;
/**
* @var integer 查询结束时间,本地unix时间戳,单位为秒(如:1590065877),建议与StartTime间隔时间超过24小时。
注意:按天统计,结束时间大于前一天,否则查询数据为空(如:需查询20号数据,结束时间需晚于20号0点)。
*/
public $EndTime;
/**
* @param integer $SdkAppId 用户SdkAppId(如:1400xxxxxx
* @param integer $StartTime 查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据。
* @param integer $EndTime 查询结束时间,本地unix时间戳,单位为秒(如:1590065877),建议与StartTime间隔时间超过24小时。
注意:按天统计,结束时间大于前一天,否则查询数据为空(如:需查询20号数据,结束时间需晚于20号0点)。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
}
}
@@ -0,0 +1,86 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeScaleInfo返回参数结构体
*
* @method integer getTotal() 获取返回的数据条数
* @method void setTotal(integer $Total) 设置返回的数据条数
* @method array getScaleList() 获取返回的数据
注意:此字段可能返回 null,表示取不到有效值。
* @method void setScaleList(array $ScaleList) 设置返回的数据
注意:此字段可能返回 null,表示取不到有效值。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeScaleInfoResponse extends AbstractModel
{
/**
* @var integer 返回的数据条数
*/
public $Total;
/**
* @var array 返回的数据
注意:此字段可能返回 null,表示取不到有效值。
*/
public $ScaleList;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param integer $Total 返回的数据条数
* @param array $ScaleList 返回的数据
注意:此字段可能返回 null,表示取不到有效值。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Total",$param) and $param["Total"] !== null) {
$this->Total = $param["Total"];
}
if (array_key_exists("ScaleList",$param) and $param["ScaleList"] !== null) {
$this->ScaleList = [];
foreach ($param["ScaleList"] as $key => $value){
$obj = new ScaleInfomation();
$obj->deserialize($value);
array_push($this->ScaleList, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,97 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTRTCMarketQualityData请求参数结构体
*
* @method string getSdkAppId() 获取用户SdkAppId(如:1400xxxxxx
* @method void setSdkAppId(string $SdkAppId) 设置用户SdkAppId(如:1400xxxxxx
* @method string getStartTime() 获取查询开始时间,格式为YYYY-MM-DD。(查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天)
* @method void setStartTime(string $StartTime) 设置查询开始时间,格式为YYYY-MM-DD。(查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天)
* @method string getEndTime() 获取查询结束时间,格式为YYYY-MM-DD。
* @method void setEndTime(string $EndTime) 设置查询结束时间,格式为YYYY-MM-DD。
* @method string getPeriod() 获取返回数据的粒度,支持设为以下值:
d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
* @method void setPeriod(string $Period) 设置返回数据的粒度,支持设为以下值:
d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
*/
class DescribeTRTCMarketQualityDataRequest extends AbstractModel
{
/**
* @var string 用户SdkAppId(如:1400xxxxxx
*/
public $SdkAppId;
/**
* @var string 查询开始时间,格式为YYYY-MM-DD。(查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天)
*/
public $StartTime;
/**
* @var string 查询结束时间,格式为YYYY-MM-DD。
*/
public $EndTime;
/**
* @var string 返回数据的粒度,支持设为以下值:
d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
*/
public $Period;
/**
* @param string $SdkAppId 用户SdkAppId(如:1400xxxxxx
* @param string $StartTime 查询开始时间,格式为YYYY-MM-DD。(查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天)
* @param string $EndTime 查询结束时间,格式为YYYY-MM-DD。
* @param string $Period 返回数据的粒度,支持设为以下值:
d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("Period",$param) and $param["Period"] !== null) {
$this->Period = $param["Period"];
}
}
}
@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTRTCMarketQualityData返回参数结构体
*
* @method TRTCDataResult getData() 获取TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @method void setData(TRTCDataResult $Data) 设置TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeTRTCMarketQualityDataResponse extends AbstractModel
{
/**
* @var TRTCDataResult TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
*/
public $Data;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param TRTCDataResult $Data TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Data",$param) and $param["Data"] !== null) {
$this->Data = new TRTCDataResult();
$this->Data->deserialize($param["Data"]);
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,97 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTRTCMarketQualityMetricData请求参数结构体
*
* @method string getSdkAppId() 获取用户SdkAppId(如:1400xxxxxx
* @method void setSdkAppId(string $SdkAppId) 设置用户SdkAppId(如:1400xxxxxx
* @method string getStartTime() 获取查询开始时间,格式为YYYY-MM-DD。(查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天)
* @method void setStartTime(string $StartTime) 设置查询开始时间,格式为YYYY-MM-DD。(查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天)
* @method string getEndTime() 获取查询结束时间,格式为YYYY-MM-DD。
* @method void setEndTime(string $EndTime) 设置查询结束时间,格式为YYYY-MM-DD。
* @method string getPeriod() 获取返回数据的粒度,支持设为以下值:
d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
* @method void setPeriod(string $Period) 设置返回数据的粒度,支持设为以下值:
d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
*/
class DescribeTRTCMarketQualityMetricDataRequest extends AbstractModel
{
/**
* @var string 用户SdkAppId(如:1400xxxxxx
*/
public $SdkAppId;
/**
* @var string 查询开始时间,格式为YYYY-MM-DD。(查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天)
*/
public $StartTime;
/**
* @var string 查询结束时间,格式为YYYY-MM-DD。
*/
public $EndTime;
/**
* @var string 返回数据的粒度,支持设为以下值:
d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
*/
public $Period;
/**
* @param string $SdkAppId 用户SdkAppId(如:1400xxxxxx
* @param string $StartTime 查询开始时间,格式为YYYY-MM-DD。(查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天)
* @param string $EndTime 查询结束时间,格式为YYYY-MM-DD。
* @param string $Period 返回数据的粒度,支持设为以下值:
d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("Period",$param) and $param["Period"] !== null) {
$this->Period = $param["Period"];
}
}
}
@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTRTCMarketQualityMetricData返回参数结构体
*
* @method TRTCDataResp getData() 获取TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @method void setData(TRTCDataResp $Data) 设置TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeTRTCMarketQualityMetricDataResponse extends AbstractModel
{
/**
* @var TRTCDataResp TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
*/
public $Data;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param TRTCDataResp $Data TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Data",$param) and $param["Data"] !== null) {
$this->Data = new TRTCDataResp();
$this->Data->deserialize($param["Data"]);
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,97 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTRTCMarketScaleData请求参数结构体
*
* @method string getSdkAppId() 获取用户SdkAppId
* @method void setSdkAppId(string $SdkAppId) 设置用户SdkAppId
* @method string getStartTime() 获取查询开始时间,格式为YYYY-MM-DD。(查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天)
* @method void setStartTime(string $StartTime) 设置查询开始时间,格式为YYYY-MM-DD。(查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天)
* @method string getEndTime() 获取查询结束时间,格式为YYYY-MM-DD。
* @method void setEndTime(string $EndTime) 设置查询结束时间,格式为YYYY-MM-DD。
* @method string getPeriod() 获取返回数据的粒度,支持设为以下值:
d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
* @method void setPeriod(string $Period) 设置返回数据的粒度,支持设为以下值:
d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
*/
class DescribeTRTCMarketScaleDataRequest extends AbstractModel
{
/**
* @var string 用户SdkAppId
*/
public $SdkAppId;
/**
* @var string 查询开始时间,格式为YYYY-MM-DD。(查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天)
*/
public $StartTime;
/**
* @var string 查询结束时间,格式为YYYY-MM-DD。
*/
public $EndTime;
/**
* @var string 返回数据的粒度,支持设为以下值:
d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
*/
public $Period;
/**
* @param string $SdkAppId 用户SdkAppId
* @param string $StartTime 查询开始时间,格式为YYYY-MM-DD。(查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天)
* @param string $EndTime 查询结束时间,格式为YYYY-MM-DD。
* @param string $Period 返回数据的粒度,支持设为以下值:
d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("Period",$param) and $param["Period"] !== null) {
$this->Period = $param["Period"];
}
}
}
@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTRTCMarketScaleData返回参数结构体
*
* @method TRTCDataResult getData() 获取TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @method void setData(TRTCDataResult $Data) 设置TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeTRTCMarketScaleDataResponse extends AbstractModel
{
/**
* @var TRTCDataResult TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
*/
public $Data;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param TRTCDataResult $Data TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Data",$param) and $param["Data"] !== null) {
$this->Data = new TRTCDataResult();
$this->Data->deserialize($param["Data"]);
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,97 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTRTCMarketScaleMetricData请求参数结构体
*
* @method string getSdkAppId() 获取用户SdkAppId
* @method void setSdkAppId(string $SdkAppId) 设置用户SdkAppId
* @method string getStartTime() 获取查询开始时间,格式为YYYY-MM-DD。(查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天)
* @method void setStartTime(string $StartTime) 设置查询开始时间,格式为YYYY-MM-DD。(查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天)
* @method string getEndTime() 获取查询结束时间,格式为YYYY-MM-DD。
* @method void setEndTime(string $EndTime) 设置查询结束时间,格式为YYYY-MM-DD。
* @method string getPeriod() 获取返回数据的粒度,支持设为以下值:
d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
* @method void setPeriod(string $Period) 设置返回数据的粒度,支持设为以下值:
d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
*/
class DescribeTRTCMarketScaleMetricDataRequest extends AbstractModel
{
/**
* @var string 用户SdkAppId
*/
public $SdkAppId;
/**
* @var string 查询开始时间,格式为YYYY-MM-DD。(查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天)
*/
public $StartTime;
/**
* @var string 查询结束时间,格式为YYYY-MM-DD。
*/
public $EndTime;
/**
* @var string 返回数据的粒度,支持设为以下值:
d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
*/
public $Period;
/**
* @param string $SdkAppId 用户SdkAppId
* @param string $StartTime 查询开始时间,格式为YYYY-MM-DD。(查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天)
* @param string $EndTime 查询结束时间,格式为YYYY-MM-DD。
* @param string $Period 返回数据的粒度,支持设为以下值:
d:按天。此时返回查询时间范围内 UTC 时间为零点的数据。
h:按小时。此时返回查询时间范围内 UTC 时间为整小时的数据。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("Period",$param) and $param["Period"] !== null) {
$this->Period = $param["Period"];
}
}
}
@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTRTCMarketScaleMetricData返回参数结构体
*
* @method TRTCDataResp getData() 获取TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @method void setData(TRTCDataResp $Data) 设置TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeTRTCMarketScaleMetricDataResponse extends AbstractModel
{
/**
* @var TRTCDataResp TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
*/
public $Data;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param TRTCDataResp $Data TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Data",$param) and $param["Data"] !== null) {
$this->Data = new TRTCDataResp();
$this->Data->deserialize($param["Data"]);
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,89 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTRTCRealTimeQualityData请求参数结构体
*
* @method string getSdkAppId() 获取用户SdkAppId(如:1400xxxxxx
* @method void setSdkAppId(string $SdkAppId) 设置用户SdkAppId(如:1400xxxxxx
* @method integer getStartTime() 获取开始时间,unix时间戳,单位:秒(查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时)
* @method void setStartTime(integer $StartTime) 设置开始时间,unix时间戳,单位:秒(查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时)
* @method integer getEndTime() 获取结束时间,unix时间戳,单位:秒
* @method void setEndTime(integer $EndTime) 设置结束时间,unix时间戳,单位:秒
* @method string getRoomId() 获取房间ID
* @method void setRoomId(string $RoomId) 设置房间ID
*/
class DescribeTRTCRealTimeQualityDataRequest extends AbstractModel
{
/**
* @var string 用户SdkAppId(如:1400xxxxxx
*/
public $SdkAppId;
/**
* @var integer 开始时间,unix时间戳,单位:秒(查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时)
*/
public $StartTime;
/**
* @var integer 结束时间,unix时间戳,单位:秒
*/
public $EndTime;
/**
* @var string 房间ID
*/
public $RoomId;
/**
* @param string $SdkAppId 用户SdkAppId(如:1400xxxxxx
* @param integer $StartTime 开始时间,unix时间戳,单位:秒(查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时)
* @param integer $EndTime 结束时间,unix时间戳,单位:秒
* @param string $RoomId 房间ID
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("RoomId",$param) and $param["RoomId"] !== null) {
$this->RoomId = $param["RoomId"];
}
}
}
@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTRTCRealTimeQualityData返回参数结构体
*
* @method TRTCDataResult getData() 获取TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @method void setData(TRTCDataResult $Data) 设置TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeTRTCRealTimeQualityDataResponse extends AbstractModel
{
/**
* @var TRTCDataResult TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
*/
public $Data;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param TRTCDataResult $Data TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Data",$param) and $param["Data"] !== null) {
$this->Data = new TRTCDataResult();
$this->Data->deserialize($param["Data"]);
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,89 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTRTCRealTimeQualityMetricData请求参数结构体
*
* @method string getSdkAppId() 获取用户SdkAppId(如:1400xxxxxx
* @method void setSdkAppId(string $SdkAppId) 设置用户SdkAppId(如:1400xxxxxx
* @method integer getStartTime() 获取开始时间,unix时间戳,单位:秒(查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时)
* @method void setStartTime(integer $StartTime) 设置开始时间,unix时间戳,单位:秒(查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时)
* @method integer getEndTime() 获取结束时间,unix时间戳,单位:秒
* @method void setEndTime(integer $EndTime) 设置结束时间,unix时间戳,单位:秒
* @method string getRoomId() 获取房间ID
* @method void setRoomId(string $RoomId) 设置房间ID
*/
class DescribeTRTCRealTimeQualityMetricDataRequest extends AbstractModel
{
/**
* @var string 用户SdkAppId(如:1400xxxxxx
*/
public $SdkAppId;
/**
* @var integer 开始时间,unix时间戳,单位:秒(查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时)
*/
public $StartTime;
/**
* @var integer 结束时间,unix时间戳,单位:秒
*/
public $EndTime;
/**
* @var string 房间ID
*/
public $RoomId;
/**
* @param string $SdkAppId 用户SdkAppId(如:1400xxxxxx
* @param integer $StartTime 开始时间,unix时间戳,单位:秒(查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时)
* @param integer $EndTime 结束时间,unix时间戳,单位:秒
* @param string $RoomId 房间ID
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("RoomId",$param) and $param["RoomId"] !== null) {
$this->RoomId = $param["RoomId"];
}
}
}
@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTRTCRealTimeQualityMetricData返回参数结构体
*
* @method TRTCDataResp getData() 获取TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @method void setData(TRTCDataResp $Data) 设置TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeTRTCRealTimeQualityMetricDataResponse extends AbstractModel
{
/**
* @var TRTCDataResp TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
*/
public $Data;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param TRTCDataResp $Data TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Data",$param) and $param["Data"] !== null) {
$this->Data = new TRTCDataResp();
$this->Data->deserialize($param["Data"]);
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,89 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTRTCRealTimeScaleData请求参数结构体
*
* @method string getSdkAppId() 获取用户SdkAppId(如:1400xxxxxx
* @method void setSdkAppId(string $SdkAppId) 设置用户SdkAppId(如:1400xxxxxx
* @method integer getStartTime() 获取开始时间,unix时间戳,单位:秒(查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时)
* @method void setStartTime(integer $StartTime) 设置开始时间,unix时间戳,单位:秒(查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时)
* @method integer getEndTime() 获取结束时间,unix时间戳,单位:秒
* @method void setEndTime(integer $EndTime) 设置结束时间,unix时间戳,单位:秒
* @method string getRoomId() 获取房间ID
* @method void setRoomId(string $RoomId) 设置房间ID
*/
class DescribeTRTCRealTimeScaleDataRequest extends AbstractModel
{
/**
* @var string 用户SdkAppId(如:1400xxxxxx
*/
public $SdkAppId;
/**
* @var integer 开始时间,unix时间戳,单位:秒(查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时)
*/
public $StartTime;
/**
* @var integer 结束时间,unix时间戳,单位:秒
*/
public $EndTime;
/**
* @var string 房间ID
*/
public $RoomId;
/**
* @param string $SdkAppId 用户SdkAppId(如:1400xxxxxx
* @param integer $StartTime 开始时间,unix时间戳,单位:秒(查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时)
* @param integer $EndTime 结束时间,unix时间戳,单位:秒
* @param string $RoomId 房间ID
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("RoomId",$param) and $param["RoomId"] !== null) {
$this->RoomId = $param["RoomId"];
}
}
}
@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTRTCRealTimeScaleData返回参数结构体
*
* @method TRTCDataResult getData() 获取TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @method void setData(TRTCDataResult $Data) 设置TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeTRTCRealTimeScaleDataResponse extends AbstractModel
{
/**
* @var TRTCDataResult TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
*/
public $Data;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param TRTCDataResult $Data TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Data",$param) and $param["Data"] !== null) {
$this->Data = new TRTCDataResult();
$this->Data->deserialize($param["Data"]);
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,89 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTRTCRealTimeScaleMetricData请求参数结构体
*
* @method string getSdkAppId() 获取用户SdkAppId(如:1400xxxxxx
* @method void setSdkAppId(string $SdkAppId) 设置用户SdkAppId(如:1400xxxxxx
* @method integer getStartTime() 获取开始时间,unix时间戳,单位:秒(查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时)
* @method void setStartTime(integer $StartTime) 设置开始时间,unix时间戳,单位:秒(查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时)
* @method integer getEndTime() 获取结束时间,unix时间戳,单位:秒
* @method void setEndTime(integer $EndTime) 设置结束时间,unix时间戳,单位:秒
* @method string getRoomId() 获取房间ID
* @method void setRoomId(string $RoomId) 设置房间ID
*/
class DescribeTRTCRealTimeScaleMetricDataRequest extends AbstractModel
{
/**
* @var string 用户SdkAppId(如:1400xxxxxx
*/
public $SdkAppId;
/**
* @var integer 开始时间,unix时间戳,单位:秒(查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时)
*/
public $StartTime;
/**
* @var integer 结束时间,unix时间戳,单位:秒
*/
public $EndTime;
/**
* @var string 房间ID
*/
public $RoomId;
/**
* @param string $SdkAppId 用户SdkAppId(如:1400xxxxxx
* @param integer $StartTime 开始时间,unix时间戳,单位:秒(查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时)
* @param integer $EndTime 结束时间,unix时间戳,单位:秒
* @param string $RoomId 房间ID
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("RoomId",$param) and $param["RoomId"] !== null) {
$this->RoomId = $param["RoomId"];
}
}
}
@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTRTCRealTimeScaleMetricData返回参数结构体
*
* @method TRTCDataResp getData() 获取TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @method void setData(TRTCDataResp $Data) 设置TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeTRTCRealTimeScaleMetricDataResponse extends AbstractModel
{
/**
* @var TRTCDataResp TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
*/
public $Data;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param TRTCDataResp $Data TRTC监控数据出参
注意:此字段可能返回 null,表示取不到有效值。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Data",$param) and $param["Data"] !== null) {
$this->Data = new TRTCDataResp();
$this->Data->deserialize($param["Data"]);
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,81 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTrtcMcuTranscodeTime请求参数结构体
*
* @method string getStartTime() 获取查询开始时间,格式为YYYY-MM-DD。
* @method void setStartTime(string $StartTime) 设置查询开始时间,格式为YYYY-MM-DD。
* @method string getEndTime() 获取查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @method void setEndTime(string $EndTime) 设置查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @method integer getSdkAppId() 获取应用ID,可不传。传应用ID时返回的是该应用的用量,不传时返回多个应用的合计值。
* @method void setSdkAppId(integer $SdkAppId) 设置应用ID,可不传。传应用ID时返回的是该应用的用量,不传时返回多个应用的合计值。
*/
class DescribeTrtcMcuTranscodeTimeRequest extends AbstractModel
{
/**
* @var string 查询开始时间,格式为YYYY-MM-DD。
*/
public $StartTime;
/**
* @var string 查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
*/
public $EndTime;
/**
* @var integer 应用ID,可不传。传应用ID时返回的是该应用的用量,不传时返回多个应用的合计值。
*/
public $SdkAppId;
/**
* @param string $StartTime 查询开始时间,格式为YYYY-MM-DD。
* @param string $EndTime 查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @param integer $SdkAppId 应用ID,可不传。传应用ID时返回的是该应用的用量,不传时返回多个应用的合计值。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
}
}
@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTrtcMcuTranscodeTime返回参数结构体
*
* @method array getUsages() 获取应用的用量信息数组。
* @method void setUsages(array $Usages) 设置应用的用量信息数组。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeTrtcMcuTranscodeTimeResponse extends AbstractModel
{
/**
* @var array 应用的用量信息数组。
*/
public $Usages;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $Usages 应用的用量信息数组。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Usages",$param) and $param["Usages"] !== null) {
$this->Usages = [];
foreach ($param["Usages"] as $key => $value){
$obj = new OneSdkAppIdTranscodeTimeUsagesInfo();
$obj->deserialize($value);
array_push($this->Usages, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,77 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTrtcRoomUsage请求参数结构体
*
* @method integer getSdkAppid() 获取TRTC的SdkAppId,和房间所对应的SdkAppId相同。
* @method void setSdkAppid(integer $SdkAppid) 设置TRTC的SdkAppId,和房间所对应的SdkAppId相同。
* @method string getStartTime() 获取查询开始时间,格式为YYYY-MM-DD HH:MM,精确到分钟级。
* @method void setStartTime(string $StartTime) 设置查询开始时间,格式为YYYY-MM-DD HH:MM,精确到分钟级。
* @method string getEndTime() 获取查询结束时间,格式为YYYY-MM-DD HH:MM,单次查询不超过24h。
* @method void setEndTime(string $EndTime) 设置查询结束时间,格式为YYYY-MM-DD HH:MM,单次查询不超过24h。
*/
class DescribeTrtcRoomUsageRequest extends AbstractModel
{
/**
* @var integer TRTC的SdkAppId,和房间所对应的SdkAppId相同。
*/
public $SdkAppid;
/**
* @var string 查询开始时间,格式为YYYY-MM-DD HH:MM,精确到分钟级。
*/
public $StartTime;
/**
* @var string 查询结束时间,格式为YYYY-MM-DD HH:MM,单次查询不超过24h。
*/
public $EndTime;
/**
* @param integer $SdkAppid TRTC的SdkAppId,和房间所对应的SdkAppId相同。
* @param string $StartTime 查询开始时间,格式为YYYY-MM-DD HH:MM,精确到分钟级。
* @param string $EndTime 查询结束时间,格式为YYYY-MM-DD HH:MM,单次查询不超过24h。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppid",$param) and $param["SdkAppid"] !== null) {
$this->SdkAppid = $param["SdkAppid"];
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
}
}
@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTrtcRoomUsage返回参数结构体
*
* @method string getData() 获取房间维度用量数据,csv文件格式,单位:秒。
* @method void setData(string $Data) 设置房间维度用量数据,csv文件格式,单位:秒。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeTrtcRoomUsageResponse extends AbstractModel
{
/**
* @var string 房间维度用量数据,csv文件格式,单位:秒。
*/
public $Data;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param string $Data 房间维度用量数据,csv文件格式,单位:秒。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Data",$param) and $param["Data"] !== null) {
$this->Data = $param["Data"];
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,81 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTrtcUsage请求参数结构体
*
* @method string getStartTime() 获取查询开始时间,格式为YYYY-MM-DD。
* @method void setStartTime(string $StartTime) 设置查询开始时间,格式为YYYY-MM-DD。
* @method string getEndTime() 获取查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @method void setEndTime(string $EndTime) 设置查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @method integer getSdkAppId() 获取TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
* @method void setSdkAppId(integer $SdkAppId) 设置TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
*/
class DescribeTrtcUsageRequest extends AbstractModel
{
/**
* @var string 查询开始时间,格式为YYYY-MM-DD。
*/
public $StartTime;
/**
* @var string 查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
*/
public $EndTime;
/**
* @var integer TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
*/
public $SdkAppId;
/**
* @param string $StartTime 查询开始时间,格式为YYYY-MM-DD。
* @param string $EndTime 查询结束时间,格式为YYYY-MM-DD。
单次查询统计区间最多不能超过31天。
* @param integer $SdkAppId TRTC的SdkAppId,和房间所对应的SdkAppId相同。如果没有这个参数,返回用户下全部实时音视频应用的汇总。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
}
}
@@ -0,0 +1,82 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeTrtcUsage返回参数结构体
*
* @method array getUsageKey() 获取用量类型,与UsageValue中各个位置的值对应。
* @method void setUsageKey(array $UsageKey) 设置用量类型,与UsageValue中各个位置的值对应。
* @method array getUsageList() 获取各个时间点用量明细。
* @method void setUsageList(array $UsageList) 设置各个时间点用量明细。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeTrtcUsageResponse extends AbstractModel
{
/**
* @var array 用量类型,与UsageValue中各个位置的值对应。
*/
public $UsageKey;
/**
* @var array 各个时间点用量明细。
*/
public $UsageList;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $UsageKey 用量类型,与UsageValue中各个位置的值对应。
* @param array $UsageList 各个时间点用量明细。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("UsageKey",$param) and $param["UsageKey"] !== null) {
$this->UsageKey = $param["UsageKey"];
}
if (array_key_exists("UsageList",$param) and $param["UsageList"] !== null) {
$this->UsageList = [];
foreach ($param["UsageList"] as $key => $value){
$obj = new TrtcUsage();
$obj->deserialize($value);
array_push($this->UsageList, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,93 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeUnusualEvent请求参数结构体
*
* @method integer getSdkAppId() 获取用户SdkAppId(如:1400xxxxxx
* @method void setSdkAppId(integer $SdkAppId) 设置用户SdkAppId(如:1400xxxxxx
* @method integer getStartTime() 获取查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据
* @method void setStartTime(integer $StartTime) 设置查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据
* @method integer getEndTime() 获取查询结束时间,本地unix时间戳,单位为秒(如:1590065877)注意:与StartTime间隔时间不超过1小时。
* @method void setEndTime(integer $EndTime) 设置查询结束时间,本地unix时间戳,单位为秒(如:1590065877)注意:与StartTime间隔时间不超过1小时。
* @method string getRoomId() 获取房间号,查询房间内任意20条以内异常体验事件
* @method void setRoomId(string $RoomId) 设置房间号,查询房间内任意20条以内异常体验事件
*/
class DescribeUnusualEventRequest extends AbstractModel
{
/**
* @var integer 用户SdkAppId(如:1400xxxxxx
*/
public $SdkAppId;
/**
* @var integer 查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据
*/
public $StartTime;
/**
* @var integer 查询结束时间,本地unix时间戳,单位为秒(如:1590065877)注意:与StartTime间隔时间不超过1小时。
*/
public $EndTime;
/**
* @var string 房间号,查询房间内任意20条以内异常体验事件
*/
public $RoomId;
/**
* @param integer $SdkAppId 用户SdkAppId(如:1400xxxxxx
* @param integer $StartTime 查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据
* @param integer $EndTime 查询结束时间,本地unix时间戳,单位为秒(如:1590065877)注意:与StartTime间隔时间不超过1小时。
* @param string $RoomId 房间号,查询房间内任意20条以内异常体验事件
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("RoomId",$param) and $param["RoomId"] !== null) {
$this->RoomId = $param["RoomId"];
}
}
}
@@ -0,0 +1,86 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeUnusualEvent返回参数结构体
*
* @method integer getTotal() 获取返回的数据总条数
范围:[020]
* @method void setTotal(integer $Total) 设置返回的数据总条数
范围:[020]
* @method array getAbnormalExperienceList() 获取异常体验列表
* @method void setAbnormalExperienceList(array $AbnormalExperienceList) 设置异常体验列表
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeUnusualEventResponse extends AbstractModel
{
/**
* @var integer 返回的数据总条数
范围:[020]
*/
public $Total;
/**
* @var array 异常体验列表
*/
public $AbnormalExperienceList;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param integer $Total 返回的数据总条数
范围:[020]
* @param array $AbnormalExperienceList 异常体验列表
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Total",$param) and $param["Total"] !== null) {
$this->Total = $param["Total"];
}
if (array_key_exists("AbnormalExperienceList",$param) and $param["AbnormalExperienceList"] !== null) {
$this->AbnormalExperienceList = [];
foreach ($param["AbnormalExperienceList"] as $key => $value){
$obj = new AbnormalExperience();
$obj->deserialize($value);
array_push($this->AbnormalExperienceList, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,121 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeUserEvent请求参数结构体
*
* @method string getCommId() 获取通话 ID(唯一标识一次通话): SdkAppId_RoomId(房间号)_ CreateTime(房间创建时间,unix时间戳,单位为s)例:1400xxxxxx_218695_1590065777。通过 DescribeRoomInfo(查询历史房间列表)接口获取([查询历史房间列表](https://cloud.tencent.com/document/product/647/44050))。
* @method void setCommId(string $CommId) 设置通话 ID(唯一标识一次通话): SdkAppId_RoomId(房间号)_ CreateTime(房间创建时间,unix时间戳,单位为s)例:1400xxxxxx_218695_1590065777。通过 DescribeRoomInfo(查询历史房间列表)接口获取([查询历史房间列表](https://cloud.tencent.com/document/product/647/44050))。
* @method integer getStartTime() 获取查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据
* @method void setStartTime(integer $StartTime) 设置查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据
* @method integer getEndTime() 获取查询结束时间,本地unix时间戳,单位为秒(如:1590065877)
注意:查询时间大于房间结束时间,以房间结束时间为准。
* @method void setEndTime(integer $EndTime) 设置查询结束时间,本地unix时间戳,单位为秒(如:1590065877)
注意:查询时间大于房间结束时间,以房间结束时间为准。
* @method string getUserId() 获取用户UserId
* @method void setUserId(string $UserId) 设置用户UserId
* @method string getRoomId() 获取房间号(如:223
* @method void setRoomId(string $RoomId) 设置房间号(如:223
* @method integer getSdkAppId() 获取用户SdkAppId(如:1400xxxxxx
* @method void setSdkAppId(integer $SdkAppId) 设置用户SdkAppId(如:1400xxxxxx
*/
class DescribeUserEventRequest extends AbstractModel
{
/**
* @var string 通话 ID(唯一标识一次通话): SdkAppId_RoomId(房间号)_ CreateTime(房间创建时间,unix时间戳,单位为s)例:1400xxxxxx_218695_1590065777。通过 DescribeRoomInfo(查询历史房间列表)接口获取([查询历史房间列表](https://cloud.tencent.com/document/product/647/44050))。
*/
public $CommId;
/**
* @var integer 查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据
*/
public $StartTime;
/**
* @var integer 查询结束时间,本地unix时间戳,单位为秒(如:1590065877)
注意:查询时间大于房间结束时间,以房间结束时间为准。
*/
public $EndTime;
/**
* @var string 用户UserId
*/
public $UserId;
/**
* @var string 房间号(如:223
*/
public $RoomId;
/**
* @var integer 用户SdkAppId(如:1400xxxxxx
*/
public $SdkAppId;
/**
* @param string $CommId 通话 ID(唯一标识一次通话): SdkAppId_RoomId(房间号)_ CreateTime(房间创建时间,unix时间戳,单位为s)例:1400xxxxxx_218695_1590065777。通过 DescribeRoomInfo(查询历史房间列表)接口获取([查询历史房间列表](https://cloud.tencent.com/document/product/647/44050))。
* @param integer $StartTime 查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据
* @param integer $EndTime 查询结束时间,本地unix时间戳,单位为秒(如:1590065877)
注意:查询时间大于房间结束时间,以房间结束时间为准。
* @param string $UserId 用户UserId
* @param string $RoomId 房间号(如:223
* @param integer $SdkAppId 用户SdkAppId(如:1400xxxxxx
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("CommId",$param) and $param["CommId"] !== null) {
$this->CommId = $param["CommId"];
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("UserId",$param) and $param["UserId"] !== null) {
$this->UserId = $param["UserId"];
}
if (array_key_exists("RoomId",$param) and $param["RoomId"] !== null) {
$this->RoomId = $param["RoomId"];
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
}
}
@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeUserEvent返回参数结构体
*
* @method array getData() 获取返回的事件列表,若没有数据,会返回空数组。
* @method void setData(array $Data) 设置返回的事件列表,若没有数据,会返回空数组。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeUserEventResponse extends AbstractModel
{
/**
* @var array 返回的事件列表,若没有数据,会返回空数组。
*/
public $Data;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param array $Data 返回的事件列表,若没有数据,会返回空数组。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Data",$param) and $param["Data"] !== null) {
$this->Data = [];
foreach ($param["Data"] as $key => $value){
$obj = new EventList();
$obj->deserialize($value);
array_push($this->Data, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,145 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeUserInfo请求参数结构体
*
* @method string getCommId() 获取通话 ID(唯一标识一次通话): SdkAppId_RoomId(房间号)_ CreateTime(房间创建时间,unix时间戳,单位为s)例:1400xxxxxx_218695_1590065777。通过 DescribeRoomInfo(查询历史房间列表)接口获取([查询历史房间列表](https://cloud.tencent.com/document/product/647/44050))。
* @method void setCommId(string $CommId) 设置通话 ID(唯一标识一次通话): SdkAppId_RoomId(房间号)_ CreateTime(房间创建时间,unix时间戳,单位为s)例:1400xxxxxx_218695_1590065777。通过 DescribeRoomInfo(查询历史房间列表)接口获取([查询历史房间列表](https://cloud.tencent.com/document/product/647/44050))。
* @method integer getStartTime() 获取查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据
* @method void setStartTime(integer $StartTime) 设置查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据
* @method integer getEndTime() 获取查询结束时间,本地unix时间戳,单位为秒(如:1590065877)
注意:与StartTime间隔时间不超过4小时。
* @method void setEndTime(integer $EndTime) 设置查询结束时间,本地unix时间戳,单位为秒(如:1590065877)
注意:与StartTime间隔时间不超过4小时。
* @method integer getSdkAppId() 获取用户SdkAppId(如:1400xxxxxx
* @method void setSdkAppId(integer $SdkAppId) 设置用户SdkAppId(如:1400xxxxxx
* @method array getUserIds() 获取需查询的用户数组,不填默认返回6个用户
范围:[1100]。
* @method void setUserIds(array $UserIds) 设置需查询的用户数组,不填默认返回6个用户
范围:[1100]。
* @method integer getPageNumber() 获取当前页数,默认为0,
注意:PageNumber和PageSize 其中一个不填均默认返回6条数据。
* @method void setPageNumber(integer $PageNumber) 设置当前页数,默认为0,
注意:PageNumber和PageSize 其中一个不填均默认返回6条数据。
* @method integer getPageSize() 获取每页个数,默认为6,
范围:[1100]。
* @method void setPageSize(integer $PageSize) 设置每页个数,默认为6,
范围:[1100]。
*/
class DescribeUserInfoRequest extends AbstractModel
{
/**
* @var string 通话 ID(唯一标识一次通话): SdkAppId_RoomId(房间号)_ CreateTime(房间创建时间,unix时间戳,单位为s)例:1400xxxxxx_218695_1590065777。通过 DescribeRoomInfo(查询历史房间列表)接口获取([查询历史房间列表](https://cloud.tencent.com/document/product/647/44050))。
*/
public $CommId;
/**
* @var integer 查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据
*/
public $StartTime;
/**
* @var integer 查询结束时间,本地unix时间戳,单位为秒(如:1590065877)
注意:与StartTime间隔时间不超过4小时。
*/
public $EndTime;
/**
* @var integer 用户SdkAppId(如:1400xxxxxx
*/
public $SdkAppId;
/**
* @var array 需查询的用户数组,不填默认返回6个用户
范围:[1100]。
*/
public $UserIds;
/**
* @var integer 当前页数,默认为0
注意:PageNumber和PageSize 其中一个不填均默认返回6条数据。
*/
public $PageNumber;
/**
* @var integer 每页个数,默认为6
范围:[1100]。
*/
public $PageSize;
/**
* @param string $CommId 通话 ID(唯一标识一次通话): SdkAppId_RoomId(房间号)_ CreateTime(房间创建时间,unix时间戳,单位为s)例:1400xxxxxx_218695_1590065777。通过 DescribeRoomInfo(查询历史房间列表)接口获取([查询历史房间列表](https://cloud.tencent.com/document/product/647/44050))。
* @param integer $StartTime 查询开始时间,本地unix时间戳,单位为秒(如:1590065777)
注意:支持查询14天内的数据
* @param integer $EndTime 查询结束时间,本地unix时间戳,单位为秒(如:1590065877)
注意:与StartTime间隔时间不超过4小时。
* @param integer $SdkAppId 用户SdkAppId(如:1400xxxxxx
* @param array $UserIds 需查询的用户数组,不填默认返回6个用户
范围:[1100]。
* @param integer $PageNumber 当前页数,默认为0
注意:PageNumber和PageSize 其中一个不填均默认返回6条数据。
* @param integer $PageSize 每页个数,默认为6
范围:[1100]。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("CommId",$param) and $param["CommId"] !== null) {
$this->CommId = $param["CommId"];
}
if (array_key_exists("StartTime",$param) and $param["StartTime"] !== null) {
$this->StartTime = $param["StartTime"];
}
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
$this->EndTime = $param["EndTime"];
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("UserIds",$param) and $param["UserIds"] !== null) {
$this->UserIds = $param["UserIds"];
}
if (array_key_exists("PageNumber",$param) and $param["PageNumber"] !== null) {
$this->PageNumber = $param["PageNumber"];
}
if (array_key_exists("PageSize",$param) and $param["PageSize"] !== null) {
$this->PageSize = $param["PageSize"];
}
}
}
@@ -0,0 +1,86 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DescribeUserInfo返回参数结构体
*
* @method integer getTotal() 获取返回的用户总条数
* @method void setTotal(integer $Total) 设置返回的用户总条数
* @method array getUserList() 获取用户信息列表
注意:此字段可能返回 null,表示取不到有效值。
* @method void setUserList(array $UserList) 设置用户信息列表
注意:此字段可能返回 null,表示取不到有效值。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DescribeUserInfoResponse extends AbstractModel
{
/**
* @var integer 返回的用户总条数
*/
public $Total;
/**
* @var array 用户信息列表
注意:此字段可能返回 null,表示取不到有效值。
*/
public $UserList;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param integer $Total 返回的用户总条数
* @param array $UserList 用户信息列表
注意:此字段可能返回 null,表示取不到有效值。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Total",$param) and $param["Total"] !== null) {
$this->Total = $param["Total"];
}
if (array_key_exists("UserList",$param) and $param["UserList"] !== null) {
$this->UserList = [];
foreach ($param["UserList"] as $key => $value){
$obj = new UserInformation();
$obj->deserialize($value);
array_push($this->UserList, $obj);
}
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,69 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DismissRoomByStrRoomId请求参数结构体
*
* @method integer getSdkAppId() 获取TRTC的SDKAppId。
* @method void setSdkAppId(integer $SdkAppId) 设置TRTC的SDKAppId。
* @method string getRoomId() 获取字符串类型房间号。
本接口仅支持解散字符串类型房间号,如需解散数字类型房间号,请使用:DismissRoom
* @method void setRoomId(string $RoomId) 设置字符串类型房间号。
本接口仅支持解散字符串类型房间号,如需解散数字类型房间号,请使用:DismissRoom
*/
class DismissRoomByStrRoomIdRequest extends AbstractModel
{
/**
* @var integer TRTC的SDKAppId。
*/
public $SdkAppId;
/**
* @var string 字符串类型房间号。
本接口仅支持解散字符串类型房间号,如需解散数字类型房间号,请使用:DismissRoom
*/
public $RoomId;
/**
* @param integer $SdkAppId TRTC的SDKAppId。
* @param string $RoomId 字符串类型房间号。
本接口仅支持解散字符串类型房间号,如需解散数字类型房间号,请使用:DismissRoom
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("RoomId",$param) and $param["RoomId"] !== null) {
$this->RoomId = $param["RoomId"];
}
}
}
@@ -0,0 +1,53 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DismissRoomByStrRoomId返回参数结构体
*
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DismissRoomByStrRoomIdResponse extends AbstractModel
{
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DismissRoom请求参数结构体
*
* @method integer getSdkAppId() 获取TRTC的SDKAppId。
* @method void setSdkAppId(integer $SdkAppId) 设置TRTC的SDKAppId。
* @method integer getRoomId() 获取数字房间号。本接口仅支持解散数字类型房间号,如需解散字符串类型房间号,请使用DismissRoomByStrRoomId。
* @method void setRoomId(integer $RoomId) 设置数字房间号。本接口仅支持解散数字类型房间号,如需解散字符串类型房间号,请使用DismissRoomByStrRoomId。
*/
class DismissRoomRequest extends AbstractModel
{
/**
* @var integer TRTC的SDKAppId。
*/
public $SdkAppId;
/**
* @var integer 数字房间号。本接口仅支持解散数字类型房间号,如需解散字符串类型房间号,请使用DismissRoomByStrRoomId。
*/
public $RoomId;
/**
* @param integer $SdkAppId TRTC的SDKAppId。
* @param integer $RoomId 数字房间号。本接口仅支持解散数字类型房间号,如需解散字符串类型房间号,请使用DismissRoomByStrRoomId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("RoomId",$param) and $param["RoomId"] !== null) {
$this->RoomId = $param["RoomId"];
}
}
}
@@ -0,0 +1,53 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* DismissRoom返回参数结构体
*
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class DismissRoomResponse extends AbstractModel
{
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,213 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* MCU混流输出流编码参数
*
* @method integer getAudioSampleRate() 获取混流-输出流音频采样率。取值为[48000, 44100, 32000, 24000, 16000, 8000],单位是Hz。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
* @method void setAudioSampleRate(integer $AudioSampleRate) 设置混流-输出流音频采样率。取值为[48000, 44100, 32000, 24000, 16000, 8000],单位是Hz。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
* @method integer getAudioBitrate() 获取混流-输出流音频码率。取值范围[8,500],单位为kbps。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
* @method void setAudioBitrate(integer $AudioBitrate) 设置混流-输出流音频码率。取值范围[8,500],单位为kbps。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
* @method integer getAudioChannels() 获取混流-输出流音频声道数,取值范围[1,2],1表示混流输出音频为单声道,2表示混流输出音频为双声道。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
* @method void setAudioChannels(integer $AudioChannels) 设置混流-输出流音频声道数,取值范围[1,2],1表示混流输出音频为单声道,2表示混流输出音频为双声道。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
* @method integer getVideoWidth() 获取混流-输出流宽,音视频输出时必填。取值范围[0,1920],单位为像素值。
* @method void setVideoWidth(integer $VideoWidth) 设置混流-输出流宽,音视频输出时必填。取值范围[0,1920],单位为像素值。
* @method integer getVideoHeight() 获取混流-输出流高,音视频输出时必填。取值范围[0,1080],单位为像素值。
* @method void setVideoHeight(integer $VideoHeight) 设置混流-输出流高,音视频输出时必填。取值范围[0,1080],单位为像素值。
* @method integer getVideoBitrate() 获取混流-输出流码率,音视频输出时必填。取值范围[1,10000],单位为kbps。
* @method void setVideoBitrate(integer $VideoBitrate) 设置混流-输出流码率,音视频输出时必填。取值范围[1,10000],单位为kbps。
* @method integer getVideoFramerate() 获取混流-输出流帧率,音视频输出时必填。取值范围[1,60],表示混流的输出帧率可选范围为1到60fps。
* @method void setVideoFramerate(integer $VideoFramerate) 设置混流-输出流帧率,音视频输出时必填。取值范围[1,60],表示混流的输出帧率可选范围为1到60fps。
* @method integer getVideoGop() 获取混流-输出流gop,音视频输出时必填。取值范围[1,5],单位为秒。
* @method void setVideoGop(integer $VideoGop) 设置混流-输出流gop,音视频输出时必填。取值范围[1,5],单位为秒。
* @method integer getBackgroundColor() 获取混流-输出流背景色,取值是十进制整数。常用的颜色有:
红色:0xff0000,对应的十进制整数是16724736。
黄色:0xffff00。对应的十进制整数是16776960。
绿色:0x33cc00。对应的十进制整数是3394560。
蓝色:0x0066ff。对应的十进制整数是26367。
黑色:0x000000。对应的十进制整数是0。
白色:0xFFFFFF。对应的十进制整数是16777215。
灰色:0x999999。对应的十进制整数是10066329。
* @method void setBackgroundColor(integer $BackgroundColor) 设置混流-输出流背景色,取值是十进制整数。常用的颜色有:
红色:0xff0000,对应的十进制整数是16724736。
黄色:0xffff00。对应的十进制整数是16776960。
绿色:0x33cc00。对应的十进制整数是3394560。
蓝色:0x0066ff。对应的十进制整数是26367。
黑色:0x000000。对应的十进制整数是0。
白色:0xFFFFFF。对应的十进制整数是16777215。
灰色:0x999999。对应的十进制整数是10066329。
* @method integer getBackgroundImageId() 获取混流-输出流背景图片,取值为实时音视频控制台上传的图片ID。
* @method void setBackgroundImageId(integer $BackgroundImageId) 设置混流-输出流背景图片,取值为实时音视频控制台上传的图片ID。
* @method integer getAudioCodec() 获取混流-输出流音频编码类型,取值范围[0,1, 2]0为LC-AAC1为HE-AAC2为HE-AACv2。默认值为0。当音频编码设置为HE-AACv2时,只支持输出流音频声道数为双声道。HE-AAC和HE-AACv2支持的输出流音频采样率范围为[48000, 44100, 32000, 24000, 16000]。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
* @method void setAudioCodec(integer $AudioCodec) 设置混流-输出流音频编码类型,取值范围[0,1, 2]0为LC-AAC1为HE-AAC2为HE-AACv2。默认值为0。当音频编码设置为HE-AACv2时,只支持输出流音频声道数为双声道。HE-AAC和HE-AACv2支持的输出流音频采样率范围为[48000, 44100, 32000, 24000, 16000]。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
* @method string getBackgroundImageUrl() 获取混流-输出流背景图片URL地址,支持png、jpg、jpeg、bmp格式,暂不支持透明通道。URL链接长度限制为512字节。BackgroundImageUrl和BackgroundImageId参数都填时,以BackgroundImageUrl为准。图片大小限制不超过2MB。
* @method void setBackgroundImageUrl(string $BackgroundImageUrl) 设置混流-输出流背景图片URL地址,支持png、jpg、jpeg、bmp格式,暂不支持透明通道。URL链接长度限制为512字节。BackgroundImageUrl和BackgroundImageId参数都填时,以BackgroundImageUrl为准。图片大小限制不超过2MB。
*/
class EncodeParams extends AbstractModel
{
/**
* @var integer 混流-输出流音频采样率。取值为[48000, 44100, 32000, 24000, 16000, 8000],单位是Hz。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
*/
public $AudioSampleRate;
/**
* @var integer 混流-输出流音频码率。取值范围[8,500],单位为kbps。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
*/
public $AudioBitrate;
/**
* @var integer 混流-输出流音频声道数,取值范围[1,2],1表示混流输出音频为单声道,2表示混流输出音频为双声道。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
*/
public $AudioChannels;
/**
* @var integer 混流-输出流宽,音视频输出时必填。取值范围[0,1920],单位为像素值。
*/
public $VideoWidth;
/**
* @var integer 混流-输出流高,音视频输出时必填。取值范围[0,1080],单位为像素值。
*/
public $VideoHeight;
/**
* @var integer 混流-输出流码率,音视频输出时必填。取值范围[1,10000],单位为kbps。
*/
public $VideoBitrate;
/**
* @var integer 混流-输出流帧率,音视频输出时必填。取值范围[1,60],表示混流的输出帧率可选范围为1到60fps。
*/
public $VideoFramerate;
/**
* @var integer 混流-输出流gop,音视频输出时必填。取值范围[1,5],单位为秒。
*/
public $VideoGop;
/**
* @var integer 混流-输出流背景色,取值是十进制整数。常用的颜色有:
红色:0xff0000,对应的十进制整数是16724736。
黄色:0xffff00。对应的十进制整数是16776960。
绿色:0x33cc00。对应的十进制整数是3394560。
蓝色:0x0066ff。对应的十进制整数是26367。
黑色:0x000000。对应的十进制整数是0。
白色:0xFFFFFF。对应的十进制整数是16777215。
灰色:0x999999。对应的十进制整数是10066329。
*/
public $BackgroundColor;
/**
* @var integer 混流-输出流背景图片,取值为实时音视频控制台上传的图片ID。
*/
public $BackgroundImageId;
/**
* @var integer 混流-输出流音频编码类型,取值范围[0,1, 2]0为LC-AAC1为HE-AAC2为HE-AACv2。默认值为0。当音频编码设置为HE-AACv2时,只支持输出流音频声道数为双声道。HE-AAC和HE-AACv2支持的输出流音频采样率范围为[48000, 44100, 32000, 24000, 16000]。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
*/
public $AudioCodec;
/**
* @var string 混流-输出流背景图片URL地址,支持png、jpg、jpeg、bmp格式,暂不支持透明通道。URL链接长度限制为512字节。BackgroundImageUrl和BackgroundImageId参数都填时,以BackgroundImageUrl为准。图片大小限制不超过2MB。
*/
public $BackgroundImageUrl;
/**
* @param integer $AudioSampleRate 混流-输出流音频采样率。取值为[48000, 44100, 32000, 24000, 16000, 8000],单位是Hz。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
* @param integer $AudioBitrate 混流-输出流音频码率。取值范围[8,500],单位为kbps。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
* @param integer $AudioChannels 混流-输出流音频声道数,取值范围[1,2],1表示混流输出音频为单声道,2表示混流输出音频为双声道。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
* @param integer $VideoWidth 混流-输出流宽,音视频输出时必填。取值范围[0,1920],单位为像素值。
* @param integer $VideoHeight 混流-输出流高,音视频输出时必填。取值范围[0,1080],单位为像素值。
* @param integer $VideoBitrate 混流-输出流码率,音视频输出时必填。取值范围[1,10000],单位为kbps。
* @param integer $VideoFramerate 混流-输出流帧率,音视频输出时必填。取值范围[1,60],表示混流的输出帧率可选范围为1到60fps。
* @param integer $VideoGop 混流-输出流gop,音视频输出时必填。取值范围[1,5],单位为秒。
* @param integer $BackgroundColor 混流-输出流背景色,取值是十进制整数。常用的颜色有:
红色:0xff0000,对应的十进制整数是16724736。
黄色:0xffff00。对应的十进制整数是16776960。
绿色:0x33cc00。对应的十进制整数是3394560。
蓝色:0x0066ff。对应的十进制整数是26367。
黑色:0x000000。对应的十进制整数是0。
白色:0xFFFFFF。对应的十进制整数是16777215。
灰色:0x999999。对应的十进制整数是10066329。
* @param integer $BackgroundImageId 混流-输出流背景图片,取值为实时音视频控制台上传的图片ID。
* @param integer $AudioCodec 混流-输出流音频编码类型,取值范围[0,1, 2]0为LC-AAC1为HE-AAC2为HE-AACv2。默认值为0。当音频编码设置为HE-AACv2时,只支持输出流音频声道数为双声道。HE-AAC和HE-AACv2支持的输出流音频采样率范围为[48000, 44100, 32000, 24000, 16000]。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
* @param string $BackgroundImageUrl 混流-输出流背景图片URL地址,支持png、jpg、jpeg、bmp格式,暂不支持透明通道。URL链接长度限制为512字节。BackgroundImageUrl和BackgroundImageId参数都填时,以BackgroundImageUrl为准。图片大小限制不超过2MB。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("AudioSampleRate",$param) and $param["AudioSampleRate"] !== null) {
$this->AudioSampleRate = $param["AudioSampleRate"];
}
if (array_key_exists("AudioBitrate",$param) and $param["AudioBitrate"] !== null) {
$this->AudioBitrate = $param["AudioBitrate"];
}
if (array_key_exists("AudioChannels",$param) and $param["AudioChannels"] !== null) {
$this->AudioChannels = $param["AudioChannels"];
}
if (array_key_exists("VideoWidth",$param) and $param["VideoWidth"] !== null) {
$this->VideoWidth = $param["VideoWidth"];
}
if (array_key_exists("VideoHeight",$param) and $param["VideoHeight"] !== null) {
$this->VideoHeight = $param["VideoHeight"];
}
if (array_key_exists("VideoBitrate",$param) and $param["VideoBitrate"] !== null) {
$this->VideoBitrate = $param["VideoBitrate"];
}
if (array_key_exists("VideoFramerate",$param) and $param["VideoFramerate"] !== null) {
$this->VideoFramerate = $param["VideoFramerate"];
}
if (array_key_exists("VideoGop",$param) and $param["VideoGop"] !== null) {
$this->VideoGop = $param["VideoGop"];
}
if (array_key_exists("BackgroundColor",$param) and $param["BackgroundColor"] !== null) {
$this->BackgroundColor = $param["BackgroundColor"];
}
if (array_key_exists("BackgroundImageId",$param) and $param["BackgroundImageId"] !== null) {
$this->BackgroundImageId = $param["BackgroundImageId"];
}
if (array_key_exists("AudioCodec",$param) and $param["AudioCodec"] !== null) {
$this->AudioCodec = $param["AudioCodec"];
}
if (array_key_exists("BackgroundImageUrl",$param) and $param["BackgroundImageUrl"] !== null) {
$this->BackgroundImageUrl = $param["BackgroundImageUrl"];
}
}
}
@@ -0,0 +1,70 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* sdk或webrtc的事件列表。
*
* @method array getContent() 获取数据内容
* @method void setContent(array $Content) 设置数据内容
* @method string getPeerId() 获取发送端的userId
* @method void setPeerId(string $PeerId) 设置发送端的userId
*/
class EventList extends AbstractModel
{
/**
* @var array 数据内容
*/
public $Content;
/**
* @var string 发送端的userId
*/
public $PeerId;
/**
* @param array $Content 数据内容
* @param string $PeerId 发送端的userId
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Content",$param) and $param["Content"] !== null) {
$this->Content = [];
foreach ($param["Content"] as $key => $value){
$obj = new EventMessage();
$obj->deserialize($value);
array_push($this->Content, $obj);
}
}
if (array_key_exists("PeerId",$param) and $param["PeerId"] !== null) {
$this->PeerId = $param["PeerId"];
}
}
}
@@ -0,0 +1,117 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 事件信息,包括,事件时间戳,事件ID,
*
* @method integer getType() 获取视频流类型:
0:与视频无关的事件;
2:视频为大画面;
3:视频为小画面;
7:视频为旁路画面;
* @method void setType(integer $Type) 设置视频流类型:
0:与视频无关的事件;
2:视频为大画面;
3:视频为小画面;
7:视频为旁路画面;
* @method integer getTime() 获取事件上报的时间戳,unix时间(1589891188801ms)
* @method void setTime(integer $Time) 设置事件上报的时间戳,unix时间(1589891188801ms)
* @method integer getEventId() 获取事件Id:分为sdk的事件和webrtc的事件,详情见:附录/事件 ID 映射表:https://cloud.tencent.com/document/product/647/44916
* @method void setEventId(integer $EventId) 设置事件Id:分为sdk的事件和webrtc的事件,详情见:附录/事件 ID 映射表:https://cloud.tencent.com/document/product/647/44916
* @method integer getParamOne() 获取事件的第一个参数,如视频分辨率宽
* @method void setParamOne(integer $ParamOne) 设置事件的第一个参数,如视频分辨率宽
* @method integer getParamTwo() 获取事件的第二个参数,如视频分辨率高
* @method void setParamTwo(integer $ParamTwo) 设置事件的第二个参数,如视频分辨率高
*/
class EventMessage extends AbstractModel
{
/**
* @var integer 视频流类型:
0:与视频无关的事件;
2:视频为大画面;
3:视频为小画面;
7:视频为旁路画面;
*/
public $Type;
/**
* @var integer 事件上报的时间戳,unix时间(1589891188801ms)
*/
public $Time;
/**
* @var integer 事件Id:分为sdk的事件和webrtc的事件,详情见:附录/事件 ID 映射表:https://cloud.tencent.com/document/product/647/44916
*/
public $EventId;
/**
* @var integer 事件的第一个参数,如视频分辨率宽
*/
public $ParamOne;
/**
* @var integer 事件的第二个参数,如视频分辨率高
*/
public $ParamTwo;
/**
* @param integer $Type 视频流类型:
0:与视频无关的事件;
2:视频为大画面;
3:视频为小画面;
7:视频为旁路画面;
* @param integer $Time 事件上报的时间戳,unix时间(1589891188801ms)
* @param integer $EventId 事件Id:分为sdk的事件和webrtc的事件,详情见:附录/事件 ID 映射表:https://cloud.tencent.com/document/product/647/44916
* @param integer $ParamOne 事件的第一个参数,如视频分辨率宽
* @param integer $ParamTwo 事件的第二个参数,如视频分辨率高
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Type",$param) and $param["Type"] !== null) {
$this->Type = $param["Type"];
}
if (array_key_exists("Time",$param) and $param["Time"] !== null) {
$this->Time = $param["Time"];
}
if (array_key_exists("EventId",$param) and $param["EventId"] !== null) {
$this->EventId = $param["EventId"];
}
if (array_key_exists("ParamOne",$param) and $param["ParamOne"] !== null) {
$this->ParamOne = $param["ParamOne"];
}
if (array_key_exists("ParamTwo",$param) and $param["ParamTwo"] !== null) {
$this->ParamTwo = $param["ParamTwo"];
}
}
}
@@ -0,0 +1,180 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* MCU混流布局参数
*
* @method integer getTemplate() 获取混流布局模板ID,0为悬浮模板(默认);1为九宫格模板;2为屏幕分享模板;3为画中画模板;4为自定义模板。
* @method void setTemplate(integer $Template) 设置混流布局模板ID,0为悬浮模板(默认);1为九宫格模板;2为屏幕分享模板;3为画中画模板;4为自定义模板。
* @method string getMainVideoUserId() 获取屏幕分享模板、悬浮模板、画中画模板中有效,代表大画面对应的用户ID。
* @method void setMainVideoUserId(string $MainVideoUserId) 设置屏幕分享模板、悬浮模板、画中画模板中有效,代表大画面对应的用户ID。
* @method integer getMainVideoStreamType() 获取屏幕分享模板、悬浮模板、画中画模板中有效,代表大画面对应的流类型,0为摄像头,1为屏幕分享。左侧大画面为web用户时此值填0。
* @method void setMainVideoStreamType(integer $MainVideoStreamType) 设置屏幕分享模板、悬浮模板、画中画模板中有效,代表大画面对应的流类型,0为摄像头,1为屏幕分享。左侧大画面为web用户时此值填0。
* @method SmallVideoLayoutParams getSmallVideoLayoutParams() 获取画中画模板中有效,代表小画面的布局参数。
* @method void setSmallVideoLayoutParams(SmallVideoLayoutParams $SmallVideoLayoutParams) 设置画中画模板中有效,代表小画面的布局参数。
* @method integer getMainVideoRightAlign() 获取屏幕分享模板有效。设置为1时代表大画面居右,小画面居左布局。默认为0。
* @method void setMainVideoRightAlign(integer $MainVideoRightAlign) 设置屏幕分享模板有效。设置为1时代表大画面居右,小画面居左布局。默认为0。
* @method array getMixVideoUids() 获取指定混视频的用户ID列表。设置此参数后,输出流混合此参数中包含用户的音视频,以及其他用户的纯音频。悬浮模板、九宫格、屏幕分享模板有效,最多可设置16个用户。
* @method void setMixVideoUids(array $MixVideoUids) 设置指定混视频的用户ID列表。设置此参数后,输出流混合此参数中包含用户的音视频,以及其他用户的纯音频。悬浮模板、九宫格、屏幕分享模板有效,最多可设置16个用户。
* @method array getPresetLayoutConfig() 获取自定义模板中有效,指定用户视频在混合画面中的位置。
* @method void setPresetLayoutConfig(array $PresetLayoutConfig) 设置自定义模板中有效,指定用户视频在混合画面中的位置。
* @method integer getPlaceHolderMode() 获取自定义模板中有效,设置为1时代表启用占位图功能,0时代表不启用占位图功能,默认为0。启用占位图功能时,在预设位置的用户没有上行视频时可显示对应的占位图。
* @method void setPlaceHolderMode(integer $PlaceHolderMode) 设置自定义模板中有效,设置为1时代表启用占位图功能,0时代表不启用占位图功能,默认为0。启用占位图功能时,在预设位置的用户没有上行视频时可显示对应的占位图。
* @method integer getPureAudioHoldPlaceMode() 获取悬浮模板、九宫格、屏幕分享模板生效,用于控制纯音频上行是否占用画面布局位置。设置为0是代表后台默认处理方式,悬浮小画面占布局位置,九宫格画面占布局位置、屏幕分享小画面不占布局位置;设置为1时代表纯音频上行占布局位置;设置为2时代表纯音频上行不占布局位置。默认为0。
* @method void setPureAudioHoldPlaceMode(integer $PureAudioHoldPlaceMode) 设置悬浮模板、九宫格、屏幕分享模板生效,用于控制纯音频上行是否占用画面布局位置。设置为0是代表后台默认处理方式,悬浮小画面占布局位置,九宫格画面占布局位置、屏幕分享小画面不占布局位置;设置为1时代表纯音频上行占布局位置;设置为2时代表纯音频上行不占布局位置。默认为0。
* @method WaterMarkParams getWaterMarkParams() 获取水印参数。
* @method void setWaterMarkParams(WaterMarkParams $WaterMarkParams) 设置水印参数。
* @method integer getRenderMode() 获取屏幕分享模板、悬浮模板、九宫格模板、画中画模版有效,画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底,不填采用后台的默认渲染方式(屏幕分享大画面为缩放,其他为裁剪)。若此参数不生效,请提交工单寻求帮助。
* @method void setRenderMode(integer $RenderMode) 设置屏幕分享模板、悬浮模板、九宫格模板、画中画模版有效,画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底,不填采用后台的默认渲染方式(屏幕分享大画面为缩放,其他为裁剪)。若此参数不生效,请提交工单寻求帮助。
*/
class LayoutParams extends AbstractModel
{
/**
* @var integer 混流布局模板ID,0为悬浮模板(默认);1为九宫格模板;2为屏幕分享模板;3为画中画模板;4为自定义模板。
*/
public $Template;
/**
* @var string 屏幕分享模板、悬浮模板、画中画模板中有效,代表大画面对应的用户ID。
*/
public $MainVideoUserId;
/**
* @var integer 屏幕分享模板、悬浮模板、画中画模板中有效,代表大画面对应的流类型,0为摄像头,1为屏幕分享。左侧大画面为web用户时此值填0。
*/
public $MainVideoStreamType;
/**
* @var SmallVideoLayoutParams 画中画模板中有效,代表小画面的布局参数。
*/
public $SmallVideoLayoutParams;
/**
* @var integer 屏幕分享模板有效。设置为1时代表大画面居右,小画面居左布局。默认为0。
*/
public $MainVideoRightAlign;
/**
* @var array 指定混视频的用户ID列表。设置此参数后,输出流混合此参数中包含用户的音视频,以及其他用户的纯音频。悬浮模板、九宫格、屏幕分享模板有效,最多可设置16个用户。
*/
public $MixVideoUids;
/**
* @var array 自定义模板中有效,指定用户视频在混合画面中的位置。
*/
public $PresetLayoutConfig;
/**
* @var integer 自定义模板中有效,设置为1时代表启用占位图功能,0时代表不启用占位图功能,默认为0。启用占位图功能时,在预设位置的用户没有上行视频时可显示对应的占位图。
*/
public $PlaceHolderMode;
/**
* @var integer 悬浮模板、九宫格、屏幕分享模板生效,用于控制纯音频上行是否占用画面布局位置。设置为0是代表后台默认处理方式,悬浮小画面占布局位置,九宫格画面占布局位置、屏幕分享小画面不占布局位置;设置为1时代表纯音频上行占布局位置;设置为2时代表纯音频上行不占布局位置。默认为0。
*/
public $PureAudioHoldPlaceMode;
/**
* @var WaterMarkParams 水印参数。
*/
public $WaterMarkParams;
/**
* @var integer 屏幕分享模板、悬浮模板、九宫格模板、画中画模版有效,画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底,不填采用后台的默认渲染方式(屏幕分享大画面为缩放,其他为裁剪)。若此参数不生效,请提交工单寻求帮助。
*/
public $RenderMode;
/**
* @param integer $Template 混流布局模板ID,0为悬浮模板(默认);1为九宫格模板;2为屏幕分享模板;3为画中画模板;4为自定义模板。
* @param string $MainVideoUserId 屏幕分享模板、悬浮模板、画中画模板中有效,代表大画面对应的用户ID。
* @param integer $MainVideoStreamType 屏幕分享模板、悬浮模板、画中画模板中有效,代表大画面对应的流类型,0为摄像头,1为屏幕分享。左侧大画面为web用户时此值填0。
* @param SmallVideoLayoutParams $SmallVideoLayoutParams 画中画模板中有效,代表小画面的布局参数。
* @param integer $MainVideoRightAlign 屏幕分享模板有效。设置为1时代表大画面居右,小画面居左布局。默认为0。
* @param array $MixVideoUids 指定混视频的用户ID列表。设置此参数后,输出流混合此参数中包含用户的音视频,以及其他用户的纯音频。悬浮模板、九宫格、屏幕分享模板有效,最多可设置16个用户。
* @param array $PresetLayoutConfig 自定义模板中有效,指定用户视频在混合画面中的位置。
* @param integer $PlaceHolderMode 自定义模板中有效,设置为1时代表启用占位图功能,0时代表不启用占位图功能,默认为0。启用占位图功能时,在预设位置的用户没有上行视频时可显示对应的占位图。
* @param integer $PureAudioHoldPlaceMode 悬浮模板、九宫格、屏幕分享模板生效,用于控制纯音频上行是否占用画面布局位置。设置为0是代表后台默认处理方式,悬浮小画面占布局位置,九宫格画面占布局位置、屏幕分享小画面不占布局位置;设置为1时代表纯音频上行占布局位置;设置为2时代表纯音频上行不占布局位置。默认为0。
* @param WaterMarkParams $WaterMarkParams 水印参数。
* @param integer $RenderMode 屏幕分享模板、悬浮模板、九宫格模板、画中画模版有效,画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底,不填采用后台的默认渲染方式(屏幕分享大画面为缩放,其他为裁剪)。若此参数不生效,请提交工单寻求帮助。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Template",$param) and $param["Template"] !== null) {
$this->Template = $param["Template"];
}
if (array_key_exists("MainVideoUserId",$param) and $param["MainVideoUserId"] !== null) {
$this->MainVideoUserId = $param["MainVideoUserId"];
}
if (array_key_exists("MainVideoStreamType",$param) and $param["MainVideoStreamType"] !== null) {
$this->MainVideoStreamType = $param["MainVideoStreamType"];
}
if (array_key_exists("SmallVideoLayoutParams",$param) and $param["SmallVideoLayoutParams"] !== null) {
$this->SmallVideoLayoutParams = new SmallVideoLayoutParams();
$this->SmallVideoLayoutParams->deserialize($param["SmallVideoLayoutParams"]);
}
if (array_key_exists("MainVideoRightAlign",$param) and $param["MainVideoRightAlign"] !== null) {
$this->MainVideoRightAlign = $param["MainVideoRightAlign"];
}
if (array_key_exists("MixVideoUids",$param) and $param["MixVideoUids"] !== null) {
$this->MixVideoUids = $param["MixVideoUids"];
}
if (array_key_exists("PresetLayoutConfig",$param) and $param["PresetLayoutConfig"] !== null) {
$this->PresetLayoutConfig = [];
foreach ($param["PresetLayoutConfig"] as $key => $value){
$obj = new PresetLayoutConfig();
$obj->deserialize($value);
array_push($this->PresetLayoutConfig, $obj);
}
}
if (array_key_exists("PlaceHolderMode",$param) and $param["PlaceHolderMode"] !== null) {
$this->PlaceHolderMode = $param["PlaceHolderMode"];
}
if (array_key_exists("PureAudioHoldPlaceMode",$param) and $param["PureAudioHoldPlaceMode"] !== null) {
$this->PureAudioHoldPlaceMode = $param["PureAudioHoldPlaceMode"];
}
if (array_key_exists("WaterMarkParams",$param) and $param["WaterMarkParams"] !== null) {
$this->WaterMarkParams = new WaterMarkParams();
$this->WaterMarkParams->deserialize($param["WaterMarkParams"]);
}
if (array_key_exists("RenderMode",$param) and $param["RenderMode"] !== null) {
$this->RenderMode = $param["RenderMode"];
}
}
}
@@ -0,0 +1,54 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 指定动态布局中悬浮布局和屏幕分享布局的大画面信息,只在悬浮布局和屏幕分享布局有效。
*
* @method UserMediaStream getUserMediaStream() 获取用户媒体流参数。
* @method void setUserMediaStream(UserMediaStream $UserMediaStream) 设置用户媒体流参数。
*/
class MaxVideoUser extends AbstractModel
{
/**
* @var UserMediaStream 用户媒体流参数。
*/
public $UserMediaStream;
/**
* @param UserMediaStream $UserMediaStream 用户媒体流参数。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("UserMediaStream",$param) and $param["UserMediaStream"] !== null) {
$this->UserMediaStream = new UserMediaStream();
$this->UserMediaStream->deserialize($param["UserMediaStream"]);
}
}
}
@@ -0,0 +1,96 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 混流转推的音频相关参数。
*
* @method AudioEncode getAudioEncode() 获取音频编码参数。
* @method void setAudioEncode(AudioEncode $AudioEncode) 设置音频编码参数。
* @method array getSubscribeAudioList() 获取音频用户白名单,start时,为空或不填表示混所有主播音频,填具体值表示混指定主播音频;update时,不填表示不更新,为空表示更新为混所有主播音频,填具体值表示更新为混指定主播音频。
使用黑白名单时,黑白名单必须同时填写。都不填写时表示不更新。同一个用户同时在黑白名单时,以黑名单为主。
* @method void setSubscribeAudioList(array $SubscribeAudioList) 设置音频用户白名单,start时,为空或不填表示混所有主播音频,填具体值表示混指定主播音频;update时,不填表示不更新,为空表示更新为混所有主播音频,填具体值表示更新为混指定主播音频。
使用黑白名单时,黑白名单必须同时填写。都不填写时表示不更新。同一个用户同时在黑白名单时,以黑名单为主。
* @method array getUnSubscribeAudioList() 获取音频用户黑名单,为空或不填表示无黑名单,填具体值表示不混指定主播音频。update时,不填表示不更新,为空表示更新为清空黑名单,填具体值表示更新为不混指定主播音频。
使用黑白名单时,黑白名单必须同时填写。都不填写时表示不更新。同一个用户同时在黑白名单时,以黑名单为主。
* @method void setUnSubscribeAudioList(array $UnSubscribeAudioList) 设置音频用户黑名单,为空或不填表示无黑名单,填具体值表示不混指定主播音频。update时,不填表示不更新,为空表示更新为清空黑名单,填具体值表示更新为不混指定主播音频。
使用黑白名单时,黑白名单必须同时填写。都不填写时表示不更新。同一个用户同时在黑白名单时,以黑名单为主。
*/
class McuAudioParams extends AbstractModel
{
/**
* @var AudioEncode 音频编码参数。
*/
public $AudioEncode;
/**
* @var array 音频用户白名单,start时,为空或不填表示混所有主播音频,填具体值表示混指定主播音频;update时,不填表示不更新,为空表示更新为混所有主播音频,填具体值表示更新为混指定主播音频。
使用黑白名单时,黑白名单必须同时填写。都不填写时表示不更新。同一个用户同时在黑白名单时,以黑名单为主。
*/
public $SubscribeAudioList;
/**
* @var array 音频用户黑名单,为空或不填表示无黑名单,填具体值表示不混指定主播音频。update时,不填表示不更新,为空表示更新为清空黑名单,填具体值表示更新为不混指定主播音频。
使用黑白名单时,黑白名单必须同时填写。都不填写时表示不更新。同一个用户同时在黑白名单时,以黑名单为主。
*/
public $UnSubscribeAudioList;
/**
* @param AudioEncode $AudioEncode 音频编码参数。
* @param array $SubscribeAudioList 音频用户白名单,start时,为空或不填表示混所有主播音频,填具体值表示混指定主播音频;update时,不填表示不更新,为空表示更新为混所有主播音频,填具体值表示更新为混指定主播音频。
使用黑白名单时,黑白名单必须同时填写。都不填写时表示不更新。同一个用户同时在黑白名单时,以黑名单为主。
* @param array $UnSubscribeAudioList 音频用户黑名单,为空或不填表示无黑名单,填具体值表示不混指定主播音频。update时,不填表示不更新,为空表示更新为清空黑名单,填具体值表示更新为不混指定主播音频。
使用黑白名单时,黑白名单必须同时填写。都不填写时表示不更新。同一个用户同时在黑白名单时,以黑名单为主。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("AudioEncode",$param) and $param["AudioEncode"] !== null) {
$this->AudioEncode = new AudioEncode();
$this->AudioEncode->deserialize($param["AudioEncode"]);
}
if (array_key_exists("SubscribeAudioList",$param) and $param["SubscribeAudioList"] !== null) {
$this->SubscribeAudioList = [];
foreach ($param["SubscribeAudioList"] as $key => $value){
$obj = new McuUserInfoParams();
$obj->deserialize($value);
array_push($this->SubscribeAudioList, $obj);
}
}
if (array_key_exists("UnSubscribeAudioList",$param) and $param["UnSubscribeAudioList"] !== null) {
$this->UnSubscribeAudioList = [];
foreach ($param["UnSubscribeAudioList"] as $key => $value){
$obj = new McuUserInfoParams();
$obj->deserialize($value);
array_push($this->UnSubscribeAudioList, $obj);
}
}
}
}
@@ -0,0 +1,89 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 混流自定义裁剪参数
*
* @method integer getLocationX() 获取自定义裁剪起始位置的X偏移,单位为像素值,大于等于0。
* @method void setLocationX(integer $LocationX) 设置自定义裁剪起始位置的X偏移,单位为像素值,大于等于0。
* @method integer getLocationY() 获取自定义裁剪起始位置的Y偏移,单位为像素值,大于等于0。
* @method void setLocationY(integer $LocationY) 设置自定义裁剪起始位置的Y偏移,单位为像素值,大于等于0。
* @method integer getWidth() 获取自定义裁剪画面的宽度,单位为像素值,大于0,且LocationX+Width不超过10000
* @method void setWidth(integer $Width) 设置自定义裁剪画面的宽度,单位为像素值,大于0,且LocationX+Width不超过10000
* @method integer getHeight() 获取自定义裁剪画面的高度,单位为像素值,大于0,且LocationY+Height不超过10000
* @method void setHeight(integer $Height) 设置自定义裁剪画面的高度,单位为像素值,大于0,且LocationY+Height不超过10000
*/
class McuCustomCrop extends AbstractModel
{
/**
* @var integer 自定义裁剪起始位置的X偏移,单位为像素值,大于等于0。
*/
public $LocationX;
/**
* @var integer 自定义裁剪起始位置的Y偏移,单位为像素值,大于等于0。
*/
public $LocationY;
/**
* @var integer 自定义裁剪画面的宽度,单位为像素值,大于0,且LocationX+Width不超过10000
*/
public $Width;
/**
* @var integer 自定义裁剪画面的高度,单位为像素值,大于0,且LocationY+Height不超过10000
*/
public $Height;
/**
* @param integer $LocationX 自定义裁剪起始位置的X偏移,单位为像素值,大于等于0。
* @param integer $LocationY 自定义裁剪起始位置的Y偏移,单位为像素值,大于等于0。
* @param integer $Width 自定义裁剪画面的宽度,单位为像素值,大于0,且LocationX+Width不超过10000
* @param integer $Height 自定义裁剪画面的高度,单位为像素值,大于0,且LocationY+Height不超过10000
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("LocationX",$param) and $param["LocationX"] !== null) {
$this->LocationX = $param["LocationX"];
}
if (array_key_exists("LocationY",$param) and $param["LocationY"] !== null) {
$this->LocationY = $param["LocationY"];
}
if (array_key_exists("Width",$param) and $param["Width"] !== null) {
$this->Width = $param["Width"];
}
if (array_key_exists("Height",$param) and $param["Height"] !== null) {
$this->Height = $param["Height"];
}
}
}
@@ -0,0 +1,89 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 回推房间参数。
*
* @method string getRoomId() 获取回推房间的RoomId。
* @method void setRoomId(string $RoomId) 设置回推房间的RoomId。
* @method integer getRoomIdType() 获取房间类型,必须和回推房间所对应的RoomId类型相同,0为整形房间号,1为字符串房间号。
* @method void setRoomIdType(integer $RoomIdType) 设置房间类型,必须和回推房间所对应的RoomId类型相同,0为整形房间号,1为字符串房间号。
* @method string getUserId() 获取回推房间使用的UserId(https://cloud.tencent.com/document/product/647/46351#userid),注意这个userId不能与其他TRTC或者转推服务等已经使用的UserId重复,建议可以把房间ID作为userId的标识的一部分。
* @method void setUserId(string $UserId) 设置回推房间使用的UserId(https://cloud.tencent.com/document/product/647/46351#userid),注意这个userId不能与其他TRTC或者转推服务等已经使用的UserId重复,建议可以把房间ID作为userId的标识的一部分。
* @method string getUserSig() 获取回推房间UserId对应的用户签名,相当于登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
* @method void setUserSig(string $UserSig) 设置回推房间UserId对应的用户签名,相当于登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
*/
class McuFeedBackRoomParams extends AbstractModel
{
/**
* @var string 回推房间的RoomId。
*/
public $RoomId;
/**
* @var integer 房间类型,必须和回推房间所对应的RoomId类型相同,0为整形房间号,1为字符串房间号。
*/
public $RoomIdType;
/**
* @var string 回推房间使用的UserId(https://cloud.tencent.com/document/product/647/46351#userid),注意这个userId不能与其他TRTC或者转推服务等已经使用的UserId重复,建议可以把房间ID作为userId的标识的一部分。
*/
public $UserId;
/**
* @var string 回推房间UserId对应的用户签名,相当于登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
*/
public $UserSig;
/**
* @param string $RoomId 回推房间的RoomId。
* @param integer $RoomIdType 房间类型,必须和回推房间所对应的RoomId类型相同,0为整形房间号,1为字符串房间号。
* @param string $UserId 回推房间使用的UserId(https://cloud.tencent.com/document/product/647/46351#userid),注意这个userId不能与其他TRTC或者转推服务等已经使用的UserId重复,建议可以把房间ID作为userId的标识的一部分。
* @param string $UserSig 回推房间UserId对应的用户签名,相当于登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("RoomId",$param) and $param["RoomId"] !== null) {
$this->RoomId = $param["RoomId"];
}
if (array_key_exists("RoomIdType",$param) and $param["RoomIdType"] !== null) {
$this->RoomIdType = $param["RoomIdType"];
}
if (array_key_exists("UserId",$param) and $param["UserId"] !== null) {
$this->UserId = $param["UserId"];
}
if (array_key_exists("UserSig",$param) and $param["UserSig"] !== null) {
$this->UserSig = $param["UserSig"];
}
}
}
@@ -0,0 +1,203 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 混流布局参数。
*
* @method UserMediaStream getUserMediaStream() 获取用户媒体流参数。不填时腾讯云后台按照上行主播的进房顺序自动填充。
* @method void setUserMediaStream(UserMediaStream $UserMediaStream) 设置用户媒体流参数。不填时腾讯云后台按照上行主播的进房顺序自动填充。
* @method integer getImageWidth() 获取子画面在输出时的宽度,单位为像素值,不填默认为0。
* @method void setImageWidth(integer $ImageWidth) 设置子画面在输出时的宽度,单位为像素值,不填默认为0。
* @method integer getImageHeight() 获取子画面在输出时的高度,单位为像素值,不填默认为0。
* @method void setImageHeight(integer $ImageHeight) 设置子画面在输出时的高度,单位为像素值,不填默认为0。
* @method integer getLocationX() 获取子画面在输出时的X偏移,单位为像素值,LocationX与ImageWidth之和不能超过混流输出的总宽度,不填默认为0。
* @method void setLocationX(integer $LocationX) 设置子画面在输出时的X偏移,单位为像素值,LocationX与ImageWidth之和不能超过混流输出的总宽度,不填默认为0。
* @method integer getLocationY() 获取子画面在输出时的Y偏移,单位为像素值,LocationY与ImageHeight之和不能超过混流输出的总高度,不填默认为0。
* @method void setLocationY(integer $LocationY) 设置子画面在输出时的Y偏移,单位为像素值,LocationY与ImageHeight之和不能超过混流输出的总高度,不填默认为0。
* @method integer getZOrder() 获取子画面在输出时的层级,不填默认为0。
* @method void setZOrder(integer $ZOrder) 设置子画面在输出时的层级,不填默认为0。
* @method integer getRenderMode() 获取子画面在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底。不填默认为0。
* @method void setRenderMode(integer $RenderMode) 设置子画面在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底。不填默认为0。
* @method string getBackGroundColor() 获取【此参数配置无效,暂不支持】子画面的背景颜色,常用的颜色有:
红色:0xcc0033。
黄色:0xcc9900。
绿色:0xcccc33。
蓝色:0x99CCFF。
黑色:0x000000。
白色:0xFFFFFF。
灰色:0x999999。
* @method void setBackGroundColor(string $BackGroundColor) 设置【此参数配置无效,暂不支持】子画面的背景颜色,常用的颜色有:
红色:0xcc0033。
黄色:0xcc9900。
绿色:0xcccc33。
蓝色:0x99CCFF。
黑色:0x000000。
白色:0xFFFFFF。
灰色:0x999999。
* @method string getBackgroundImageUrl() 获取子画面的背景图url,填写该参数,当用户关闭摄像头或未进入TRTC房间时,会在布局位置填充为指定图片。若指定图片与布局位置尺寸比例不一致,则会对图片进行拉伸处理,优先级高于BackGroundColor。
* @method void setBackgroundImageUrl(string $BackgroundImageUrl) 设置子画面的背景图url,填写该参数,当用户关闭摄像头或未进入TRTC房间时,会在布局位置填充为指定图片。若指定图片与布局位置尺寸比例不一致,则会对图片进行拉伸处理,优先级高于BackGroundColor。
* @method McuCustomCrop getCustomCrop() 获取客户自定义裁剪,针对原始输入流裁剪
* @method void setCustomCrop(McuCustomCrop $CustomCrop) 设置客户自定义裁剪,针对原始输入流裁剪
* @method integer getBackgroundRenderMode() 获取子背景图在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底,3为变比例伸缩。不填默认为3。
* @method void setBackgroundRenderMode(integer $BackgroundRenderMode) 设置子背景图在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底,3为变比例伸缩。不填默认为3。
*/
class McuLayout extends AbstractModel
{
/**
* @var UserMediaStream 用户媒体流参数。不填时腾讯云后台按照上行主播的进房顺序自动填充。
*/
public $UserMediaStream;
/**
* @var integer 子画面在输出时的宽度,单位为像素值,不填默认为0。
*/
public $ImageWidth;
/**
* @var integer 子画面在输出时的高度,单位为像素值,不填默认为0。
*/
public $ImageHeight;
/**
* @var integer 子画面在输出时的X偏移,单位为像素值,LocationX与ImageWidth之和不能超过混流输出的总宽度,不填默认为0。
*/
public $LocationX;
/**
* @var integer 子画面在输出时的Y偏移,单位为像素值,LocationY与ImageHeight之和不能超过混流输出的总高度,不填默认为0。
*/
public $LocationY;
/**
* @var integer 子画面在输出时的层级,不填默认为0。
*/
public $ZOrder;
/**
* @var integer 子画面在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底。不填默认为0。
*/
public $RenderMode;
/**
* @var string 【此参数配置无效,暂不支持】子画面的背景颜色,常用的颜色有:
红色:0xcc0033。
黄色:0xcc9900。
绿色:0xcccc33。
蓝色:0x99CCFF。
黑色:0x000000。
白色:0xFFFFFF。
灰色:0x999999。
*/
public $BackGroundColor;
/**
* @var string 子画面的背景图url,填写该参数,当用户关闭摄像头或未进入TRTC房间时,会在布局位置填充为指定图片。若指定图片与布局位置尺寸比例不一致,则会对图片进行拉伸处理,优先级高于BackGroundColor。
*/
public $BackgroundImageUrl;
/**
* @var McuCustomCrop 客户自定义裁剪,针对原始输入流裁剪
*/
public $CustomCrop;
/**
* @var integer 子背景图在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底,3为变比例伸缩。不填默认为3。
*/
public $BackgroundRenderMode;
/**
* @param UserMediaStream $UserMediaStream 用户媒体流参数。不填时腾讯云后台按照上行主播的进房顺序自动填充。
* @param integer $ImageWidth 子画面在输出时的宽度,单位为像素值,不填默认为0。
* @param integer $ImageHeight 子画面在输出时的高度,单位为像素值,不填默认为0。
* @param integer $LocationX 子画面在输出时的X偏移,单位为像素值,LocationX与ImageWidth之和不能超过混流输出的总宽度,不填默认为0。
* @param integer $LocationY 子画面在输出时的Y偏移,单位为像素值,LocationY与ImageHeight之和不能超过混流输出的总高度,不填默认为0。
* @param integer $ZOrder 子画面在输出时的层级,不填默认为0。
* @param integer $RenderMode 子画面在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底。不填默认为0。
* @param string $BackGroundColor 【此参数配置无效,暂不支持】子画面的背景颜色,常用的颜色有:
红色:0xcc0033。
黄色:0xcc9900。
绿色:0xcccc33。
蓝色:0x99CCFF。
黑色:0x000000。
白色:0xFFFFFF。
灰色:0x999999。
* @param string $BackgroundImageUrl 子画面的背景图url,填写该参数,当用户关闭摄像头或未进入TRTC房间时,会在布局位置填充为指定图片。若指定图片与布局位置尺寸比例不一致,则会对图片进行拉伸处理,优先级高于BackGroundColor。
* @param McuCustomCrop $CustomCrop 客户自定义裁剪,针对原始输入流裁剪
* @param integer $BackgroundRenderMode 子背景图在输出时的显示模式:0为裁剪,1为缩放并显示背景,2为缩放并显示黑底,3为变比例伸缩。不填默认为3。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("UserMediaStream",$param) and $param["UserMediaStream"] !== null) {
$this->UserMediaStream = new UserMediaStream();
$this->UserMediaStream->deserialize($param["UserMediaStream"]);
}
if (array_key_exists("ImageWidth",$param) and $param["ImageWidth"] !== null) {
$this->ImageWidth = $param["ImageWidth"];
}
if (array_key_exists("ImageHeight",$param) and $param["ImageHeight"] !== null) {
$this->ImageHeight = $param["ImageHeight"];
}
if (array_key_exists("LocationX",$param) and $param["LocationX"] !== null) {
$this->LocationX = $param["LocationX"];
}
if (array_key_exists("LocationY",$param) and $param["LocationY"] !== null) {
$this->LocationY = $param["LocationY"];
}
if (array_key_exists("ZOrder",$param) and $param["ZOrder"] !== null) {
$this->ZOrder = $param["ZOrder"];
}
if (array_key_exists("RenderMode",$param) and $param["RenderMode"] !== null) {
$this->RenderMode = $param["RenderMode"];
}
if (array_key_exists("BackGroundColor",$param) and $param["BackGroundColor"] !== null) {
$this->BackGroundColor = $param["BackGroundColor"];
}
if (array_key_exists("BackgroundImageUrl",$param) and $param["BackgroundImageUrl"] !== null) {
$this->BackgroundImageUrl = $param["BackgroundImageUrl"];
}
if (array_key_exists("CustomCrop",$param) and $param["CustomCrop"] !== null) {
$this->CustomCrop = new McuCustomCrop();
$this->CustomCrop->deserialize($param["CustomCrop"]);
}
if (array_key_exists("BackgroundRenderMode",$param) and $param["BackgroundRenderMode"] !== null) {
$this->BackgroundRenderMode = $param["BackgroundRenderMode"];
}
}
}
@@ -0,0 +1,107 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 混流布局参数。
*
* @method integer getMixLayoutMode() 获取布局模式:动态布局(1:悬浮布局(默认),2:屏幕分享布局,3:九宫格布局),静态布局(4:自定义布局)。
* @method void setMixLayoutMode(integer $MixLayoutMode) 设置布局模式:动态布局(1:悬浮布局(默认),2:屏幕分享布局,3:九宫格布局),静态布局(4:自定义布局)。
* @method integer getPureAudioHoldPlaceMode() 获取纯音频上行是否占布局位置,只在动态布局中有效。0表示纯音频不占布局位置,1表示纯音频占布局位置,不填默认为0。
* @method void setPureAudioHoldPlaceMode(integer $PureAudioHoldPlaceMode) 设置纯音频上行是否占布局位置,只在动态布局中有效。0表示纯音频不占布局位置,1表示纯音频占布局位置,不填默认为0。
* @method array getMixLayoutList() 获取自定义模板中有效,指定用户视频在混合画面中的位置。
* @method void setMixLayoutList(array $MixLayoutList) 设置自定义模板中有效,指定用户视频在混合画面中的位置。
* @method MaxVideoUser getMaxVideoUser() 获取指定动态布局中悬浮布局和屏幕分享布局的大画面信息,只在悬浮布局和屏幕分享布局有效。
* @method void setMaxVideoUser(MaxVideoUser $MaxVideoUser) 设置指定动态布局中悬浮布局和屏幕分享布局的大画面信息,只在悬浮布局和屏幕分享布局有效。
* @method integer getRenderMode() 获取屏幕分享模板、悬浮模板、九宫格模版有效,画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底
* @method void setRenderMode(integer $RenderMode) 设置屏幕分享模板、悬浮模板、九宫格模版有效,画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底
*/
class McuLayoutParams extends AbstractModel
{
/**
* @var integer 布局模式:动态布局(1:悬浮布局(默认),2:屏幕分享布局,3:九宫格布局),静态布局(4:自定义布局)。
*/
public $MixLayoutMode;
/**
* @var integer 纯音频上行是否占布局位置,只在动态布局中有效。0表示纯音频不占布局位置,1表示纯音频占布局位置,不填默认为0。
*/
public $PureAudioHoldPlaceMode;
/**
* @var array 自定义模板中有效,指定用户视频在混合画面中的位置。
*/
public $MixLayoutList;
/**
* @var MaxVideoUser 指定动态布局中悬浮布局和屏幕分享布局的大画面信息,只在悬浮布局和屏幕分享布局有效。
*/
public $MaxVideoUser;
/**
* @var integer 屏幕分享模板、悬浮模板、九宫格模版有效,画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底
*/
public $RenderMode;
/**
* @param integer $MixLayoutMode 布局模式:动态布局(1:悬浮布局(默认),2:屏幕分享布局,3:九宫格布局),静态布局(4:自定义布局)。
* @param integer $PureAudioHoldPlaceMode 纯音频上行是否占布局位置,只在动态布局中有效。0表示纯音频不占布局位置,1表示纯音频占布局位置,不填默认为0。
* @param array $MixLayoutList 自定义模板中有效,指定用户视频在混合画面中的位置。
* @param MaxVideoUser $MaxVideoUser 指定动态布局中悬浮布局和屏幕分享布局的大画面信息,只在悬浮布局和屏幕分享布局有效。
* @param integer $RenderMode 屏幕分享模板、悬浮模板、九宫格模版有效,画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("MixLayoutMode",$param) and $param["MixLayoutMode"] !== null) {
$this->MixLayoutMode = $param["MixLayoutMode"];
}
if (array_key_exists("PureAudioHoldPlaceMode",$param) and $param["PureAudioHoldPlaceMode"] !== null) {
$this->PureAudioHoldPlaceMode = $param["PureAudioHoldPlaceMode"];
}
if (array_key_exists("MixLayoutList",$param) and $param["MixLayoutList"] !== null) {
$this->MixLayoutList = [];
foreach ($param["MixLayoutList"] as $key => $value){
$obj = new McuLayout();
$obj->deserialize($value);
array_push($this->MixLayoutList, $obj);
}
}
if (array_key_exists("MaxVideoUser",$param) and $param["MaxVideoUser"] !== null) {
$this->MaxVideoUser = new MaxVideoUser();
$this->MaxVideoUser->deserialize($param["MaxVideoUser"]);
}
if (array_key_exists("RenderMode",$param) and $param["RenderMode"] !== null) {
$this->RenderMode = $param["RenderMode"];
}
}
}
@@ -0,0 +1,90 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 音量布局SEI参数,可以自定义AppData和PayloadType类型。
该参数内容可以为空,表示携带默认的音量布局SEI。
*
* @method string getAppData() 获取AppData的内容,会被写入自定义SEI中的app_data字段,长度需小于4096。
* @method void setAppData(string $AppData) 设置AppData的内容,会被写入自定义SEI中的app_data字段,长度需小于4096。
* @method integer getPayloadType() 获取SEI消息的payload_type,默认值100,取值范围100-254(244除外,244为我们内部自定义的时间戳SEI)
* @method void setPayloadType(integer $PayloadType) 设置SEI消息的payload_type,默认值100,取值范围100-254(244除外,244为我们内部自定义的时间戳SEI)
* @method integer getInterval() 获取SEI发送间隔,单位毫秒,默认值为1000。
* @method void setInterval(integer $Interval) 设置SEI发送间隔,单位毫秒,默认值为1000。
* @method integer getFollowIdr() 获取取值范围[0,1],填1:发送关键帧时会确保带SEI;填0:发送关键帧时不确保带SEI。默认值为0。
* @method void setFollowIdr(integer $FollowIdr) 设置取值范围[0,1],填1:发送关键帧时会确保带SEI;填0:发送关键帧时不确保带SEI。默认值为0。
*/
class McuLayoutVolume extends AbstractModel
{
/**
* @var string AppData的内容,会被写入自定义SEI中的app_data字段,长度需小于4096。
*/
public $AppData;
/**
* @var integer SEI消息的payload_type,默认值100,取值范围100-254(244除外,244为我们内部自定义的时间戳SEI)
*/
public $PayloadType;
/**
* @var integer SEI发送间隔,单位毫秒,默认值为1000。
*/
public $Interval;
/**
* @var integer 取值范围[0,1],填1:发送关键帧时会确保带SEI;填0:发送关键帧时不确保带SEI。默认值为0。
*/
public $FollowIdr;
/**
* @param string $AppData AppData的内容,会被写入自定义SEI中的app_data字段,长度需小于4096。
* @param integer $PayloadType SEI消息的payload_type,默认值100,取值范围100-254(244除外,244为我们内部自定义的时间戳SEI)
* @param integer $Interval SEI发送间隔,单位毫秒,默认值为1000。
* @param integer $FollowIdr 取值范围[0,1],填1:发送关键帧时会确保带SEI;填0:发送关键帧时不确保带SEI。默认值为0。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("AppData",$param) and $param["AppData"] !== null) {
$this->AppData = $param["AppData"];
}
if (array_key_exists("PayloadType",$param) and $param["PayloadType"] !== null) {
$this->PayloadType = $param["PayloadType"];
}
if (array_key_exists("Interval",$param) and $param["Interval"] !== null) {
$this->Interval = $param["Interval"];
}
if (array_key_exists("FollowIdr",$param) and $param["FollowIdr"] !== null) {
$this->FollowIdr = $param["FollowIdr"];
}
}
}
@@ -0,0 +1,101 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 自定义透传SEI
*
* @method string getPayloadContent() 获取透传SEI的payload内容。
* @method void setPayloadContent(string $PayloadContent) 设置透传SEI的payload内容。
* @method integer getPayloadType() 获取SEI消息的payload_type,取值范围5、100-254(244除外,244为我们内部自定义的时间戳SEI)。
* @method void setPayloadType(integer $PayloadType) 设置SEI消息的payload_type,取值范围5、100-254(244除外,244为我们内部自定义的时间戳SEI)。
* @method string getPayloadUuid() 获取PayloadType为5PayloadUuid必须填写。PayloadType不是5时,不需要填写,填写会被后台忽略。该值必须是32长度的十六进制。
* @method void setPayloadUuid(string $PayloadUuid) 设置PayloadType为5PayloadUuid必须填写。PayloadType不是5时,不需要填写,填写会被后台忽略。该值必须是32长度的十六进制。
* @method integer getInterval() 获取SEI发送间隔,单位毫秒,默认值为1000。
* @method void setInterval(integer $Interval) 设置SEI发送间隔,单位毫秒,默认值为1000。
* @method integer getFollowIdr() 获取取值范围[0,1],填1:发送关键帧时会确保带SEI;填0:发送关键帧时不确保带SEI。默认值为0。
* @method void setFollowIdr(integer $FollowIdr) 设置取值范围[0,1],填1:发送关键帧时会确保带SEI;填0:发送关键帧时不确保带SEI。默认值为0。
*/
class McuPassThrough extends AbstractModel
{
/**
* @var string 透传SEI的payload内容。
*/
public $PayloadContent;
/**
* @var integer SEI消息的payload_type,取值范围5、100-254(244除外,244为我们内部自定义的时间戳SEI)。
*/
public $PayloadType;
/**
* @var string PayloadType为5PayloadUuid必须填写。PayloadType不是5时,不需要填写,填写会被后台忽略。该值必须是32长度的十六进制。
*/
public $PayloadUuid;
/**
* @var integer SEI发送间隔,单位毫秒,默认值为1000。
*/
public $Interval;
/**
* @var integer 取值范围[0,1],填1:发送关键帧时会确保带SEI;填0:发送关键帧时不确保带SEI。默认值为0。
*/
public $FollowIdr;
/**
* @param string $PayloadContent 透传SEI的payload内容。
* @param integer $PayloadType SEI消息的payload_type,取值范围5、100-254(244除外,244为我们内部自定义的时间戳SEI)。
* @param string $PayloadUuid PayloadType为5PayloadUuid必须填写。PayloadType不是5时,不需要填写,填写会被后台忽略。该值必须是32长度的十六进制。
* @param integer $Interval SEI发送间隔,单位毫秒,默认值为1000。
* @param integer $FollowIdr 取值范围[0,1],填1:发送关键帧时会确保带SEI;填0:发送关键帧时不确保带SEI。默认值为0。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("PayloadContent",$param) and $param["PayloadContent"] !== null) {
$this->PayloadContent = $param["PayloadContent"];
}
if (array_key_exists("PayloadType",$param) and $param["PayloadType"] !== null) {
$this->PayloadType = $param["PayloadType"];
}
if (array_key_exists("PayloadUuid",$param) and $param["PayloadUuid"] !== null) {
$this->PayloadUuid = $param["PayloadUuid"];
}
if (array_key_exists("Interval",$param) and $param["Interval"] !== null) {
$this->Interval = $param["Interval"];
}
if (array_key_exists("FollowIdr",$param) and $param["FollowIdr"] !== null) {
$this->FollowIdr = $param["FollowIdr"];
}
}
}
@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 转推参数。
*
* @method string getPublishCdnUrl() 获取CDN转推URL。
* @method void setPublishCdnUrl(string $PublishCdnUrl) 设置CDN转推URL。
* @method integer getIsTencentCdn() 获取是否是腾讯云CDN,0为转推非腾讯云CDN,1为转推腾讯CDN,不携带该参数默认为1。注意:1,为避免误产生转推费用,该参数建议明确填写,转推非腾讯云CDN时会产生转推费用,详情参见接口文档说明;2,国内站默认只支持转推腾讯云CDN,如您有转推第三方CDN需求,请联系腾讯云技术支持。
* @method void setIsTencentCdn(integer $IsTencentCdn) 设置是否是腾讯云CDN,0为转推非腾讯云CDN,1为转推腾讯CDN,不携带该参数默认为1。注意:1,为避免误产生转推费用,该参数建议明确填写,转推非腾讯云CDN时会产生转推费用,详情参见接口文档说明;2,国内站默认只支持转推腾讯云CDN,如您有转推第三方CDN需求,请联系腾讯云技术支持。
*/
class McuPublishCdnParam extends AbstractModel
{
/**
* @var string CDN转推URL。
*/
public $PublishCdnUrl;
/**
* @var integer 是否是腾讯云CDN,0为转推非腾讯云CDN,1为转推腾讯CDN,不携带该参数默认为1。注意:1,为避免误产生转推费用,该参数建议明确填写,转推非腾讯云CDN时会产生转推费用,详情参见接口文档说明;2,国内站默认只支持转推腾讯云CDN,如您有转推第三方CDN需求,请联系腾讯云技术支持。
*/
public $IsTencentCdn;
/**
* @param string $PublishCdnUrl CDN转推URL。
* @param integer $IsTencentCdn 是否是腾讯云CDN,0为转推非腾讯云CDN,1为转推腾讯CDN,不携带该参数默认为1。注意:1,为避免误产生转推费用,该参数建议明确填写,转推非腾讯云CDN时会产生转推费用,详情参见接口文档说明;2,国内站默认只支持转推腾讯云CDN,如您有转推第三方CDN需求,请联系腾讯云技术支持。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("PublishCdnUrl",$param) and $param["PublishCdnUrl"] !== null) {
$this->PublishCdnUrl = $param["PublishCdnUrl"];
}
if (array_key_exists("IsTencentCdn",$param) and $param["IsTencentCdn"] !== null) {
$this->IsTencentCdn = $param["IsTencentCdn"];
}
}
}
@@ -0,0 +1,67 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 混流SEI参数
*
* @method McuLayoutVolume getLayoutVolume() 获取音量布局SEI
* @method void setLayoutVolume(McuLayoutVolume $LayoutVolume) 设置音量布局SEI
* @method McuPassThrough getPassThrough() 获取透传SEI
* @method void setPassThrough(McuPassThrough $PassThrough) 设置透传SEI
*/
class McuSeiParams extends AbstractModel
{
/**
* @var McuLayoutVolume 音量布局SEI
*/
public $LayoutVolume;
/**
* @var McuPassThrough 透传SEI
*/
public $PassThrough;
/**
* @param McuLayoutVolume $LayoutVolume 音量布局SEI
* @param McuPassThrough $PassThrough 透传SEI
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("LayoutVolume",$param) and $param["LayoutVolume"] !== null) {
$this->LayoutVolume = new McuLayoutVolume();
$this->LayoutVolume->deserialize($param["LayoutVolume"]);
}
if (array_key_exists("PassThrough",$param) and $param["PassThrough"] !== null) {
$this->PassThrough = new McuPassThrough();
$this->PassThrough->deserialize($param["PassThrough"]);
}
}
}
@@ -0,0 +1,54 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 混流用户参数
*
* @method MixUserInfo getUserInfo() 获取用户参数。
* @method void setUserInfo(MixUserInfo $UserInfo) 设置用户参数。
*/
class McuUserInfoParams extends AbstractModel
{
/**
* @var MixUserInfo 用户参数。
*/
public $UserInfo;
/**
* @param MixUserInfo $UserInfo 用户参数。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("UserInfo",$param) and $param["UserInfo"] !== null) {
$this->UserInfo = new MixUserInfo();
$this->UserInfo->deserialize($param["UserInfo"]);
}
}
}
@@ -0,0 +1,148 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 混流转推的视频相关参数。
*
* @method VideoEncode getVideoEncode() 获取输出流视频编码参数。
* @method void setVideoEncode(VideoEncode $VideoEncode) 设置输出流视频编码参数。
* @method McuLayoutParams getLayoutParams() 获取混流布局参数。
* @method void setLayoutParams(McuLayoutParams $LayoutParams) 设置混流布局参数。
* @method string getBackGroundColor() 获取整个画布背景颜色,常用的颜色有:
红色:0xcc0033。
黄色:0xcc9900。
绿色:0xcccc33。
蓝色:0x99CCFF。
黑色:0x000000。
白色:0xFFFFFF。
灰色:0x999999。
* @method void setBackGroundColor(string $BackGroundColor) 设置整个画布背景颜色,常用的颜色有:
红色:0xcc0033。
黄色:0xcc9900。
绿色:0xcccc33。
蓝色:0x99CCFF。
黑色:0x000000。
白色:0xFFFFFF。
灰色:0x999999。
* @method string getBackgroundImageUrl() 获取整个画布的背景图url,优先级高于BackGroundColor。
* @method void setBackgroundImageUrl(string $BackgroundImageUrl) 设置整个画布的背景图url,优先级高于BackGroundColor。
* @method array getWaterMarkList() 获取混流布局的水印参数。
* @method void setWaterMarkList(array $WaterMarkList) 设置混流布局的水印参数。
* @method integer getBackgroundRenderMode() 获取背景图在输出时的显示模式:0为裁剪,1为缩放并显示黑底,2为变比例伸缩。后台默认为变比例伸缩。
* @method void setBackgroundRenderMode(integer $BackgroundRenderMode) 设置背景图在输出时的显示模式:0为裁剪,1为缩放并显示黑底,2为变比例伸缩。后台默认为变比例伸缩。
*/
class McuVideoParams extends AbstractModel
{
/**
* @var VideoEncode 输出流视频编码参数。
*/
public $VideoEncode;
/**
* @var McuLayoutParams 混流布局参数。
*/
public $LayoutParams;
/**
* @var string 整个画布背景颜色,常用的颜色有:
红色:0xcc0033。
黄色:0xcc9900。
绿色:0xcccc33。
蓝色:0x99CCFF。
黑色:0x000000。
白色:0xFFFFFF。
灰色:0x999999。
*/
public $BackGroundColor;
/**
* @var string 整个画布的背景图url,优先级高于BackGroundColor。
*/
public $BackgroundImageUrl;
/**
* @var array 混流布局的水印参数。
*/
public $WaterMarkList;
/**
* @var integer 背景图在输出时的显示模式:0为裁剪,1为缩放并显示黑底,2为变比例伸缩。后台默认为变比例伸缩。
*/
public $BackgroundRenderMode;
/**
* @param VideoEncode $VideoEncode 输出流视频编码参数。
* @param McuLayoutParams $LayoutParams 混流布局参数。
* @param string $BackGroundColor 整个画布背景颜色,常用的颜色有:
红色:0xcc0033。
黄色:0xcc9900。
绿色:0xcccc33。
蓝色:0x99CCFF。
黑色:0x000000。
白色:0xFFFFFF。
灰色:0x999999。
* @param string $BackgroundImageUrl 整个画布的背景图url,优先级高于BackGroundColor。
* @param array $WaterMarkList 混流布局的水印参数。
* @param integer $BackgroundRenderMode 背景图在输出时的显示模式:0为裁剪,1为缩放并显示黑底,2为变比例伸缩。后台默认为变比例伸缩。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("VideoEncode",$param) and $param["VideoEncode"] !== null) {
$this->VideoEncode = new VideoEncode();
$this->VideoEncode->deserialize($param["VideoEncode"]);
}
if (array_key_exists("LayoutParams",$param) and $param["LayoutParams"] !== null) {
$this->LayoutParams = new McuLayoutParams();
$this->LayoutParams->deserialize($param["LayoutParams"]);
}
if (array_key_exists("BackGroundColor",$param) and $param["BackGroundColor"] !== null) {
$this->BackGroundColor = $param["BackGroundColor"];
}
if (array_key_exists("BackgroundImageUrl",$param) and $param["BackgroundImageUrl"] !== null) {
$this->BackgroundImageUrl = $param["BackgroundImageUrl"];
}
if (array_key_exists("WaterMarkList",$param) and $param["WaterMarkList"] !== null) {
$this->WaterMarkList = [];
foreach ($param["WaterMarkList"] as $key => $value){
$obj = new McuWaterMarkParams();
$obj->deserialize($value);
array_push($this->WaterMarkList, $obj);
}
}
if (array_key_exists("BackgroundRenderMode",$param) and $param["BackgroundRenderMode"] !== null) {
$this->BackgroundRenderMode = $param["BackgroundRenderMode"];
}
}
}
@@ -0,0 +1,113 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 图片水印参数。
*
* @method string getWaterMarkUrl() 获取水印图片URL地址,支持png、jpg、jpeg格式。图片大小限制不超过5MB。
* @method void setWaterMarkUrl(string $WaterMarkUrl) 设置水印图片URL地址,支持png、jpg、jpeg格式。图片大小限制不超过5MB。
* @method integer getWaterMarkWidth() 获取水印在输出时的宽。单位为像素值。
* @method void setWaterMarkWidth(integer $WaterMarkWidth) 设置水印在输出时的宽。单位为像素值。
* @method integer getWaterMarkHeight() 获取水印在输出时的高。单位为像素值。
* @method void setWaterMarkHeight(integer $WaterMarkHeight) 设置水印在输出时的高。单位为像素值。
* @method integer getLocationX() 获取水印在输出时的X偏移。单位为像素值。
* @method void setLocationX(integer $LocationX) 设置水印在输出时的X偏移。单位为像素值。
* @method integer getLocationY() 获取水印在输出时的Y偏移。单位为像素值。
* @method void setLocationY(integer $LocationY) 设置水印在输出时的Y偏移。单位为像素值。
* @method integer getZOrder() 获取水印在输出时的层级,不填默认为0。
* @method void setZOrder(integer $ZOrder) 设置水印在输出时的层级,不填默认为0。
*/
class McuWaterMarkImage extends AbstractModel
{
/**
* @var string 水印图片URL地址,支持png、jpg、jpeg格式。图片大小限制不超过5MB。
*/
public $WaterMarkUrl;
/**
* @var integer 水印在输出时的宽。单位为像素值。
*/
public $WaterMarkWidth;
/**
* @var integer 水印在输出时的高。单位为像素值。
*/
public $WaterMarkHeight;
/**
* @var integer 水印在输出时的X偏移。单位为像素值。
*/
public $LocationX;
/**
* @var integer 水印在输出时的Y偏移。单位为像素值。
*/
public $LocationY;
/**
* @var integer 水印在输出时的层级,不填默认为0。
*/
public $ZOrder;
/**
* @param string $WaterMarkUrl 水印图片URL地址,支持png、jpg、jpeg格式。图片大小限制不超过5MB。
* @param integer $WaterMarkWidth 水印在输出时的宽。单位为像素值。
* @param integer $WaterMarkHeight 水印在输出时的高。单位为像素值。
* @param integer $LocationX 水印在输出时的X偏移。单位为像素值。
* @param integer $LocationY 水印在输出时的Y偏移。单位为像素值。
* @param integer $ZOrder 水印在输出时的层级,不填默认为0。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("WaterMarkUrl",$param) and $param["WaterMarkUrl"] !== null) {
$this->WaterMarkUrl = $param["WaterMarkUrl"];
}
if (array_key_exists("WaterMarkWidth",$param) and $param["WaterMarkWidth"] !== null) {
$this->WaterMarkWidth = $param["WaterMarkWidth"];
}
if (array_key_exists("WaterMarkHeight",$param) and $param["WaterMarkHeight"] !== null) {
$this->WaterMarkHeight = $param["WaterMarkHeight"];
}
if (array_key_exists("LocationX",$param) and $param["LocationX"] !== null) {
$this->LocationX = $param["LocationX"];
}
if (array_key_exists("LocationY",$param) and $param["LocationY"] !== null) {
$this->LocationY = $param["LocationY"];
}
if (array_key_exists("ZOrder",$param) and $param["ZOrder"] !== null) {
$this->ZOrder = $param["ZOrder"];
}
}
}
@@ -0,0 +1,79 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 水印参数。
*
* @method integer getWaterMarkType() 获取水印类型,0为图片(默认),1为文字。
* @method void setWaterMarkType(integer $WaterMarkType) 设置水印类型,0为图片(默认),1为文字。
* @method McuWaterMarkImage getWaterMarkImage() 获取图片水印参数。WaterMarkType为0指定。
* @method void setWaterMarkImage(McuWaterMarkImage $WaterMarkImage) 设置图片水印参数。WaterMarkType为0指定。
* @method McuWaterMarkText getWaterMarkText() 获取文字水印参数。WaterMarkType为1指定。
* @method void setWaterMarkText(McuWaterMarkText $WaterMarkText) 设置文字水印参数。WaterMarkType为1指定。
*/
class McuWaterMarkParams extends AbstractModel
{
/**
* @var integer 水印类型,0为图片(默认),1为文字。
*/
public $WaterMarkType;
/**
* @var McuWaterMarkImage 图片水印参数。WaterMarkType为0指定。
*/
public $WaterMarkImage;
/**
* @var McuWaterMarkText 文字水印参数。WaterMarkType为1指定。
*/
public $WaterMarkText;
/**
* @param integer $WaterMarkType 水印类型,0为图片(默认),1为文字。
* @param McuWaterMarkImage $WaterMarkImage 图片水印参数。WaterMarkType为0指定。
* @param McuWaterMarkText $WaterMarkText 文字水印参数。WaterMarkType为1指定。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("WaterMarkType",$param) and $param["WaterMarkType"] !== null) {
$this->WaterMarkType = $param["WaterMarkType"];
}
if (array_key_exists("WaterMarkImage",$param) and $param["WaterMarkImage"] !== null) {
$this->WaterMarkImage = new McuWaterMarkImage();
$this->WaterMarkImage->deserialize($param["WaterMarkImage"]);
}
if (array_key_exists("WaterMarkText",$param) and $param["WaterMarkText"] !== null) {
$this->WaterMarkText = new McuWaterMarkText();
$this->WaterMarkText->deserialize($param["WaterMarkText"]);
}
}
}
@@ -0,0 +1,137 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 文字水印参数。
*
* @method string getText() 获取文字水印内容。
* @method void setText(string $Text) 设置文字水印内容。
* @method integer getWaterMarkWidth() 获取水印在输出时的宽。单位为像素值。
* @method void setWaterMarkWidth(integer $WaterMarkWidth) 设置水印在输出时的宽。单位为像素值。
* @method integer getWaterMarkHeight() 获取水印在输出时的高。单位为像素值。
* @method void setWaterMarkHeight(integer $WaterMarkHeight) 设置水印在输出时的高。单位为像素值。
* @method integer getLocationX() 获取水印在输出时的X偏移。单位为像素值。
* @method void setLocationX(integer $LocationX) 设置水印在输出时的X偏移。单位为像素值。
* @method integer getLocationY() 获取水印在输出时的Y偏移。单位为像素值。
* @method void setLocationY(integer $LocationY) 设置水印在输出时的Y偏移。单位为像素值。
* @method integer getFontSize() 获取字体大小
* @method void setFontSize(integer $FontSize) 设置字体大小
* @method string getFontColor() 获取字体颜色,默认为白色。常用的颜色有: 红色:0xcc0033。 黄色:0xcc9900。 绿色:0xcccc33。 蓝色:0x99CCFF。 黑色:0x000000。 白色:0xFFFFFF。 灰色:0x999999。
* @method void setFontColor(string $FontColor) 设置字体颜色,默认为白色。常用的颜色有: 红色:0xcc0033。 黄色:0xcc9900。 绿色:0xcccc33。 蓝色:0x99CCFF。 黑色:0x000000。 白色:0xFFFFFF。 灰色:0x999999。
* @method string getBackGroundColor() 获取字体背景色,不配置默认为透明。常用的颜色有: 红色:0xcc0033。 黄色:0xcc9900。 绿色:0xcccc33。 蓝色:0x99CCFF。 黑色:0x000000。 白色:0xFFFFFF。 灰色:0x999999。
* @method void setBackGroundColor(string $BackGroundColor) 设置字体背景色,不配置默认为透明。常用的颜色有: 红色:0xcc0033。 黄色:0xcc9900。 绿色:0xcccc33。 蓝色:0x99CCFF。 黑色:0x000000。 白色:0xFFFFFF。 灰色:0x999999。
*/
class McuWaterMarkText extends AbstractModel
{
/**
* @var string 文字水印内容。
*/
public $Text;
/**
* @var integer 水印在输出时的宽。单位为像素值。
*/
public $WaterMarkWidth;
/**
* @var integer 水印在输出时的高。单位为像素值。
*/
public $WaterMarkHeight;
/**
* @var integer 水印在输出时的X偏移。单位为像素值。
*/
public $LocationX;
/**
* @var integer 水印在输出时的Y偏移。单位为像素值。
*/
public $LocationY;
/**
* @var integer 字体大小
*/
public $FontSize;
/**
* @var string 字体颜色,默认为白色。常用的颜色有: 红色:0xcc0033。 黄色:0xcc9900。 绿色:0xcccc33。 蓝色:0x99CCFF。 黑色:0x000000。 白色:0xFFFFFF。 灰色:0x999999。
*/
public $FontColor;
/**
* @var string 字体背景色,不配置默认为透明。常用的颜色有: 红色:0xcc0033。 黄色:0xcc9900。 绿色:0xcccc33。 蓝色:0x99CCFF。 黑色:0x000000。 白色:0xFFFFFF。 灰色:0x999999。
*/
public $BackGroundColor;
/**
* @param string $Text 文字水印内容。
* @param integer $WaterMarkWidth 水印在输出时的宽。单位为像素值。
* @param integer $WaterMarkHeight 水印在输出时的高。单位为像素值。
* @param integer $LocationX 水印在输出时的X偏移。单位为像素值。
* @param integer $LocationY 水印在输出时的Y偏移。单位为像素值。
* @param integer $FontSize 字体大小
* @param string $FontColor 字体颜色,默认为白色。常用的颜色有: 红色:0xcc0033。 黄色:0xcc9900。 绿色:0xcccc33。 蓝色:0x99CCFF。 黑色:0x000000。 白色:0xFFFFFF。 灰色:0x999999。
* @param string $BackGroundColor 字体背景色,不配置默认为透明。常用的颜色有: 红色:0xcc0033。 黄色:0xcc9900。 绿色:0xcccc33。 蓝色:0x99CCFF。 黑色:0x000000。 白色:0xFFFFFF。 灰色:0x999999。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Text",$param) and $param["Text"] !== null) {
$this->Text = $param["Text"];
}
if (array_key_exists("WaterMarkWidth",$param) and $param["WaterMarkWidth"] !== null) {
$this->WaterMarkWidth = $param["WaterMarkWidth"];
}
if (array_key_exists("WaterMarkHeight",$param) and $param["WaterMarkHeight"] !== null) {
$this->WaterMarkHeight = $param["WaterMarkHeight"];
}
if (array_key_exists("LocationX",$param) and $param["LocationX"] !== null) {
$this->LocationX = $param["LocationX"];
}
if (array_key_exists("LocationY",$param) and $param["LocationY"] !== null) {
$this->LocationY = $param["LocationY"];
}
if (array_key_exists("FontSize",$param) and $param["FontSize"] !== null) {
$this->FontSize = $param["FontSize"];
}
if (array_key_exists("FontColor",$param) and $param["FontColor"] !== null) {
$this->FontColor = $param["FontColor"];
}
if (array_key_exists("BackGroundColor",$param) and $param["BackGroundColor"] !== null) {
$this->BackGroundColor = $param["BackGroundColor"];
}
}
}
@@ -0,0 +1,193 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 用户自定义混流布局参数列表。
*
* @method integer getTop() 获取画布上该画面左上角的 y 轴坐标,取值范围 [0, 1920],不能超过画布的高。
* @method void setTop(integer $Top) 设置画布上该画面左上角的 y 轴坐标,取值范围 [0, 1920],不能超过画布的高。
* @method integer getLeft() 获取画布上该画面左上角的 x 轴坐标,取值范围 [0, 1920],不能超过画布的宽。
* @method void setLeft(integer $Left) 设置画布上该画面左上角的 x 轴坐标,取值范围 [0, 1920],不能超过画布的宽。
* @method integer getWidth() 获取画布上该画面宽度的相对值,取值范围 [0, 1920],与Left相加不应超过画布的宽。
* @method void setWidth(integer $Width) 设置画布上该画面宽度的相对值,取值范围 [0, 1920],与Left相加不应超过画布的宽。
* @method integer getHeight() 获取画布上该画面高度的相对值,取值范围 [0, 1920],与Top相加不应超过画布的高。
* @method void setHeight(integer $Height) 设置画布上该画面高度的相对值,取值范围 [0, 1920],与Top相加不应超过画布的高。
* @method string getUserId() 获取字符串内容为待显示在该画面的主播对应的UserId,如果不指定,会按照主播加入房间的顺序匹配。
* @method void setUserId(string $UserId) 设置字符串内容为待显示在该画面的主播对应的UserId,如果不指定,会按照主播加入房间的顺序匹配。
* @method integer getAlpha() 获取画布的透明度值,取值范围[0, 255]。0表示不透明,255表示全透明。默认值为0。
* @method void setAlpha(integer $Alpha) 设置画布的透明度值,取值范围[0, 255]。0表示不透明,255表示全透明。默认值为0。
* @method integer getRenderMode() 获取0 :拉伸模式,这个模式下整个视频内容会全部显示,并填满子画面,在源视频和目的视频宽高比不一致的时候,画面不会缺少内容,但是画面可能产生形变;
1 :剪裁模式(默认),这个模式下会严格按照目的视频的宽高比对源视频剪裁之后再拉伸,并填满子画面画布,在源视频和目的视频宽高比不一致的时候,画面保持不变形,但是会被剪裁;
2 :填黑模式,这个模式下会严格保持源视频的宽高比进行等比缩放,在源视频和目的视频宽高比不一致的时候,画面的上下侧边缘或者左右侧边缘会露出子画面画布的背景;
3 :智能拉伸模式,这个模式类似剪裁模式,区别是在源视频和目的视频宽高比不一致的时候,限制了最大剪裁比例为画面的宽度或者高度的20%;
* @method void setRenderMode(integer $RenderMode) 设置0 :拉伸模式,这个模式下整个视频内容会全部显示,并填满子画面,在源视频和目的视频宽高比不一致的时候,画面不会缺少内容,但是画面可能产生形变;
1 :剪裁模式(默认),这个模式下会严格按照目的视频的宽高比对源视频剪裁之后再拉伸,并填满子画面画布,在源视频和目的视频宽高比不一致的时候,画面保持不变形,但是会被剪裁;
2 :填黑模式,这个模式下会严格保持源视频的宽高比进行等比缩放,在源视频和目的视频宽高比不一致的时候,画面的上下侧边缘或者左右侧边缘会露出子画面画布的背景;
3 :智能拉伸模式,这个模式类似剪裁模式,区别是在源视频和目的视频宽高比不一致的时候,限制了最大剪裁比例为画面的宽度或者高度的20%;
* @method integer getMediaId() 获取对应订阅流的主辅路标识:
0:主流(默认);
1:辅流;
* @method void setMediaId(integer $MediaId) 设置对应订阅流的主辅路标识:
0:主流(默认);
1:辅流;
* @method integer getImageLayer() 获取该画布的图层顺序, 这个值越小表示图层越靠后。默认值为0。
* @method void setImageLayer(integer $ImageLayer) 设置该画布的图层顺序, 这个值越小表示图层越靠后。默认值为0。
* @method string getSubBackgroundImage() 获取图片的url地址, 只支持jpg, png,大小限制不超过5M,宽高比不一致的处理方案同 RenderMode。
* @method void setSubBackgroundImage(string $SubBackgroundImage) 设置图片的url地址, 只支持jpg, png,大小限制不超过5M,宽高比不一致的处理方案同 RenderMode。
*/
class MixLayout extends AbstractModel
{
/**
* @var integer 画布上该画面左上角的 y 轴坐标,取值范围 [0, 1920],不能超过画布的高。
*/
public $Top;
/**
* @var integer 画布上该画面左上角的 x 轴坐标,取值范围 [0, 1920],不能超过画布的宽。
*/
public $Left;
/**
* @var integer 画布上该画面宽度的相对值,取值范围 [0, 1920],与Left相加不应超过画布的宽。
*/
public $Width;
/**
* @var integer 画布上该画面高度的相对值,取值范围 [0, 1920],与Top相加不应超过画布的高。
*/
public $Height;
/**
* @var string 字符串内容为待显示在该画面的主播对应的UserId,如果不指定,会按照主播加入房间的顺序匹配。
*/
public $UserId;
/**
* @var integer 画布的透明度值,取值范围[0, 255]。0表示不透明,255表示全透明。默认值为0。
*/
public $Alpha;
/**
* @var integer 0 :拉伸模式,这个模式下整个视频内容会全部显示,并填满子画面,在源视频和目的视频宽高比不一致的时候,画面不会缺少内容,但是画面可能产生形变;
1 :剪裁模式(默认),这个模式下会严格按照目的视频的宽高比对源视频剪裁之后再拉伸,并填满子画面画布,在源视频和目的视频宽高比不一致的时候,画面保持不变形,但是会被剪裁;
2 :填黑模式,这个模式下会严格保持源视频的宽高比进行等比缩放,在源视频和目的视频宽高比不一致的时候,画面的上下侧边缘或者左右侧边缘会露出子画面画布的背景;
3 :智能拉伸模式,这个模式类似剪裁模式,区别是在源视频和目的视频宽高比不一致的时候,限制了最大剪裁比例为画面的宽度或者高度的20%;
*/
public $RenderMode;
/**
* @var integer 对应订阅流的主辅路标识:
0:主流(默认);
1:辅流;
*/
public $MediaId;
/**
* @var integer 该画布的图层顺序, 这个值越小表示图层越靠后。默认值为0。
*/
public $ImageLayer;
/**
* @var string 图片的url地址, 只支持jpg, png,大小限制不超过5M,宽高比不一致的处理方案同 RenderMode。
*/
public $SubBackgroundImage;
/**
* @param integer $Top 画布上该画面左上角的 y 轴坐标,取值范围 [0, 1920],不能超过画布的高。
* @param integer $Left 画布上该画面左上角的 x 轴坐标,取值范围 [0, 1920],不能超过画布的宽。
* @param integer $Width 画布上该画面宽度的相对值,取值范围 [0, 1920],与Left相加不应超过画布的宽。
* @param integer $Height 画布上该画面高度的相对值,取值范围 [0, 1920],与Top相加不应超过画布的高。
* @param string $UserId 字符串内容为待显示在该画面的主播对应的UserId,如果不指定,会按照主播加入房间的顺序匹配。
* @param integer $Alpha 画布的透明度值,取值范围[0, 255]。0表示不透明,255表示全透明。默认值为0。
* @param integer $RenderMode 0 :拉伸模式,这个模式下整个视频内容会全部显示,并填满子画面,在源视频和目的视频宽高比不一致的时候,画面不会缺少内容,但是画面可能产生形变;
1 :剪裁模式(默认),这个模式下会严格按照目的视频的宽高比对源视频剪裁之后再拉伸,并填满子画面画布,在源视频和目的视频宽高比不一致的时候,画面保持不变形,但是会被剪裁;
2 :填黑模式,这个模式下会严格保持源视频的宽高比进行等比缩放,在源视频和目的视频宽高比不一致的时候,画面的上下侧边缘或者左右侧边缘会露出子画面画布的背景;
3 :智能拉伸模式,这个模式类似剪裁模式,区别是在源视频和目的视频宽高比不一致的时候,限制了最大剪裁比例为画面的宽度或者高度的20%;
* @param integer $MediaId 对应订阅流的主辅路标识:
0:主流(默认);
1:辅流;
* @param integer $ImageLayer 该画布的图层顺序, 这个值越小表示图层越靠后。默认值为0。
* @param string $SubBackgroundImage 图片的url地址, 只支持jpg, png,大小限制不超过5M,宽高比不一致的处理方案同 RenderMode。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Top",$param) and $param["Top"] !== null) {
$this->Top = $param["Top"];
}
if (array_key_exists("Left",$param) and $param["Left"] !== null) {
$this->Left = $param["Left"];
}
if (array_key_exists("Width",$param) and $param["Width"] !== null) {
$this->Width = $param["Width"];
}
if (array_key_exists("Height",$param) and $param["Height"] !== null) {
$this->Height = $param["Height"];
}
if (array_key_exists("UserId",$param) and $param["UserId"] !== null) {
$this->UserId = $param["UserId"];
}
if (array_key_exists("Alpha",$param) and $param["Alpha"] !== null) {
$this->Alpha = $param["Alpha"];
}
if (array_key_exists("RenderMode",$param) and $param["RenderMode"] !== null) {
$this->RenderMode = $param["RenderMode"];
}
if (array_key_exists("MediaId",$param) and $param["MediaId"] !== null) {
$this->MediaId = $param["MediaId"];
}
if (array_key_exists("ImageLayer",$param) and $param["ImageLayer"] !== null) {
$this->ImageLayer = $param["ImageLayer"];
}
if (array_key_exists("SubBackgroundImage",$param) and $param["SubBackgroundImage"] !== null) {
$this->SubBackgroundImage = $param["SubBackgroundImage"];
}
}
}
@@ -0,0 +1,255 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 录制的混流布局参数。
*
* @method integer getMixLayoutMode() 获取布局模式:
1:悬浮布局;
2:屏幕分享布局;
3:九宫格布局(默认);
4:自定义布局;
悬浮布局:默认第一个进入房间的主播(也可以指定一个主播)的视频画面会铺满整个屏幕。其他主播的视频画面从左下角开始依次按照进房顺序水平排列,显示为小画面,小画面悬浮于大画面之上。当画面数量小于等于17个时,每行4个(4 x 4排列)。当画面数量大于17个时,重新布局小画面为每行5个(5 x 5)排列。最多支持25个画面,如果用户只发送音频,仍然会占用画面位置。
屏幕分享布局:指定一个主播在屏幕左侧的大画面位置(如果不指定,那么大画面位置为背景色),其他主播自上而下依次垂直排列于右侧。当画面数量少于17个的时候,右侧每列最多8人,最多占据两列。当画面数量多于17个的时候,超过17个画面的主播从左下角开始依次水平排列。最多支持25个画面,如果主播只发送音频,仍然会占用画面位置。
九宫格布局:根据主播的数量自动调整每个画面的大小,每个主播的画面大小一致,最多支持25个画面。
自定义布局:根据需要在MixLayoutList内定制每个主播画面的布局。
* @method void setMixLayoutMode(integer $MixLayoutMode) 设置布局模式:
1:悬浮布局;
2:屏幕分享布局;
3:九宫格布局(默认);
4:自定义布局;
悬浮布局:默认第一个进入房间的主播(也可以指定一个主播)的视频画面会铺满整个屏幕。其他主播的视频画面从左下角开始依次按照进房顺序水平排列,显示为小画面,小画面悬浮于大画面之上。当画面数量小于等于17个时,每行4个(4 x 4排列)。当画面数量大于17个时,重新布局小画面为每行5个(5 x 5)排列。最多支持25个画面,如果用户只发送音频,仍然会占用画面位置。
屏幕分享布局:指定一个主播在屏幕左侧的大画面位置(如果不指定,那么大画面位置为背景色),其他主播自上而下依次垂直排列于右侧。当画面数量少于17个的时候,右侧每列最多8人,最多占据两列。当画面数量多于17个的时候,超过17个画面的主播从左下角开始依次水平排列。最多支持25个画面,如果主播只发送音频,仍然会占用画面位置。
九宫格布局:根据主播的数量自动调整每个画面的大小,每个主播的画面大小一致,最多支持25个画面。
自定义布局:根据需要在MixLayoutList内定制每个主播画面的布局。
* @method array getMixLayoutList() 获取如果MixLayoutMode 选择为4自定义布局模式的话,设置此参数为每个主播所对应的布局画面的详细信息,最大不超过25个。
* @method void setMixLayoutList(array $MixLayoutList) 设置如果MixLayoutMode 选择为4自定义布局模式的话,设置此参数为每个主播所对应的布局画面的详细信息,最大不超过25个。
* @method string getBackGroundColor() 获取录制背景颜色,RGB的颜色表的16进制表示,每个颜色通过8bit长度标识,默认为黑色。比如橙色对应的RGB为 R:255 G:165 B:0, 那么对应的字符串描述为#FFA500,格式规范:‘#‘开头,后面跟固定RGB的颜色值
* @method void setBackGroundColor(string $BackGroundColor) 设置录制背景颜色,RGB的颜色表的16进制表示,每个颜色通过8bit长度标识,默认为黑色。比如橙色对应的RGB为 R:255 G:165 B:0, 那么对应的字符串描述为#FFA500,格式规范:‘#‘开头,后面跟固定RGB的颜色值
* @method string getMaxResolutionUserId() 获取在布局模式为1:悬浮布局和 2:屏幕分享布局时,设定为显示大视频画面的UserId。不填的话:悬浮布局默认是第一个进房间的主播,屏幕分享布局默认是背景色
* @method void setMaxResolutionUserId(string $MaxResolutionUserId) 设置在布局模式为1:悬浮布局和 2:屏幕分享布局时,设定为显示大视频画面的UserId。不填的话:悬浮布局默认是第一个进房间的主播,屏幕分享布局默认是背景色
* @method integer getMediaId() 获取主辅路标识,
0:主流(默认);
1:辅流(屏幕分享);
这个位置的MediaId代表的是对应MaxResolutionUserId的主辅路,MixLayoutList内代表的是自定义用户的主辅路。
* @method void setMediaId(integer $MediaId) 设置主辅路标识,
0:主流(默认);
1:辅流(屏幕分享);
这个位置的MediaId代表的是对应MaxResolutionUserId的主辅路,MixLayoutList内代表的是自定义用户的主辅路。
* @method string getBackgroundImageUrl() 获取图片的url地址, 只支持jpg, png,大小限制不超过5M,url不可包含中文。
* @method void setBackgroundImageUrl(string $BackgroundImageUrl) 设置图片的url地址, 只支持jpg, png,大小限制不超过5M,url不可包含中文。
* @method integer getPlaceHolderMode() 获取设置为1时代表启用占位图功能,0时代表不启用占位图功能,默认为0。启用占位图功能时,在预设位置的用户没有上行视频时可显示对应的占位图。
* @method void setPlaceHolderMode(integer $PlaceHolderMode) 设置设置为1时代表启用占位图功能,0时代表不启用占位图功能,默认为0。启用占位图功能时,在预设位置的用户没有上行视频时可显示对应的占位图。
* @method integer getBackgroundImageRenderMode() 获取背景画面宽高比不一致的时候处理方案,与MixLayoufList定义的RenderMode一致。
* @method void setBackgroundImageRenderMode(integer $BackgroundImageRenderMode) 设置背景画面宽高比不一致的时候处理方案,与MixLayoufList定义的RenderMode一致。
* @method string getDefaultSubBackgroundImage() 获取子画面占位图url地址, 只支持jpg, png,大小限制不超过5M,宽高比不一致的处理方案同 RenderMode。
* @method void setDefaultSubBackgroundImage(string $DefaultSubBackgroundImage) 设置子画面占位图url地址, 只支持jpg, png,大小限制不超过5M,宽高比不一致的处理方案同 RenderMode。
* @method array getWaterMarkList() 获取水印布局参数, 最多支持25个。
* @method void setWaterMarkList(array $WaterMarkList) 设置水印布局参数, 最多支持25个。
* @method integer getRenderMode() 获取模板布局下,背景画面宽高比不一致的时候处理方案。自定义布局不生效,与MixLayoufList定义的RenderMode一致。
* @method void setRenderMode(integer $RenderMode) 设置模板布局下,背景画面宽高比不一致的时候处理方案。自定义布局不生效,与MixLayoufList定义的RenderMode一致。
* @method integer getMaxResolutionUserAlign() 获取屏幕分享模板有效。设置为1时代表大画面居右,小画面居左布局。默认为0。
* @method void setMaxResolutionUserAlign(integer $MaxResolutionUserAlign) 设置屏幕分享模板有效。设置为1时代表大画面居右,小画面居左布局。默认为0。
*/
class MixLayoutParams extends AbstractModel
{
/**
* @var integer 布局模式:
1:悬浮布局;
2:屏幕分享布局;
3:九宫格布局(默认);
4:自定义布局;
悬浮布局:默认第一个进入房间的主播(也可以指定一个主播)的视频画面会铺满整个屏幕。其他主播的视频画面从左下角开始依次按照进房顺序水平排列,显示为小画面,小画面悬浮于大画面之上。当画面数量小于等于17个时,每行4个(4 x 4排列)。当画面数量大于17个时,重新布局小画面为每行5个(5 x 5)排列。最多支持25个画面,如果用户只发送音频,仍然会占用画面位置。
屏幕分享布局:指定一个主播在屏幕左侧的大画面位置(如果不指定,那么大画面位置为背景色),其他主播自上而下依次垂直排列于右侧。当画面数量少于17个的时候,右侧每列最多8人,最多占据两列。当画面数量多于17个的时候,超过17个画面的主播从左下角开始依次水平排列。最多支持25个画面,如果主播只发送音频,仍然会占用画面位置。
九宫格布局:根据主播的数量自动调整每个画面的大小,每个主播的画面大小一致,最多支持25个画面。
自定义布局:根据需要在MixLayoutList内定制每个主播画面的布局。
*/
public $MixLayoutMode;
/**
* @var array 如果MixLayoutMode 选择为4自定义布局模式的话,设置此参数为每个主播所对应的布局画面的详细信息,最大不超过25个。
*/
public $MixLayoutList;
/**
* @var string 录制背景颜色,RGB的颜色表的16进制表示,每个颜色通过8bit长度标识,默认为黑色。比如橙色对应的RGB为 R:255 G:165 B:0, 那么对应的字符串描述为#FFA500,格式规范:‘#‘开头,后面跟固定RGB的颜色值
*/
public $BackGroundColor;
/**
* @var string 在布局模式为1:悬浮布局和 2:屏幕分享布局时,设定为显示大视频画面的UserId。不填的话:悬浮布局默认是第一个进房间的主播,屏幕分享布局默认是背景色
*/
public $MaxResolutionUserId;
/**
* @var integer 主辅路标识,
0:主流(默认);
1:辅流(屏幕分享);
这个位置的MediaId代表的是对应MaxResolutionUserId的主辅路,MixLayoutList内代表的是自定义用户的主辅路。
*/
public $MediaId;
/**
* @var string 图片的url地址, 只支持jpg, png,大小限制不超过5M,url不可包含中文。
*/
public $BackgroundImageUrl;
/**
* @var integer 设置为1时代表启用占位图功能,0时代表不启用占位图功能,默认为0。启用占位图功能时,在预设位置的用户没有上行视频时可显示对应的占位图。
*/
public $PlaceHolderMode;
/**
* @var integer 背景画面宽高比不一致的时候处理方案,与MixLayoufList定义的RenderMode一致。
*/
public $BackgroundImageRenderMode;
/**
* @var string 子画面占位图url地址, 只支持jpg, png,大小限制不超过5M,宽高比不一致的处理方案同 RenderMode。
*/
public $DefaultSubBackgroundImage;
/**
* @var array 水印布局参数, 最多支持25个。
*/
public $WaterMarkList;
/**
* @var integer 模板布局下,背景画面宽高比不一致的时候处理方案。自定义布局不生效,与MixLayoufList定义的RenderMode一致。
*/
public $RenderMode;
/**
* @var integer 屏幕分享模板有效。设置为1时代表大画面居右,小画面居左布局。默认为0。
*/
public $MaxResolutionUserAlign;
/**
* @param integer $MixLayoutMode 布局模式:
1:悬浮布局;
2:屏幕分享布局;
3:九宫格布局(默认);
4:自定义布局;
悬浮布局:默认第一个进入房间的主播(也可以指定一个主播)的视频画面会铺满整个屏幕。其他主播的视频画面从左下角开始依次按照进房顺序水平排列,显示为小画面,小画面悬浮于大画面之上。当画面数量小于等于17个时,每行4个(4 x 4排列)。当画面数量大于17个时,重新布局小画面为每行5个(5 x 5)排列。最多支持25个画面,如果用户只发送音频,仍然会占用画面位置。
屏幕分享布局:指定一个主播在屏幕左侧的大画面位置(如果不指定,那么大画面位置为背景色),其他主播自上而下依次垂直排列于右侧。当画面数量少于17个的时候,右侧每列最多8人,最多占据两列。当画面数量多于17个的时候,超过17个画面的主播从左下角开始依次水平排列。最多支持25个画面,如果主播只发送音频,仍然会占用画面位置。
九宫格布局:根据主播的数量自动调整每个画面的大小,每个主播的画面大小一致,最多支持25个画面。
自定义布局:根据需要在MixLayoutList内定制每个主播画面的布局。
* @param array $MixLayoutList 如果MixLayoutMode 选择为4自定义布局模式的话,设置此参数为每个主播所对应的布局画面的详细信息,最大不超过25个。
* @param string $BackGroundColor 录制背景颜色,RGB的颜色表的16进制表示,每个颜色通过8bit长度标识,默认为黑色。比如橙色对应的RGB为 R:255 G:165 B:0, 那么对应的字符串描述为#FFA500,格式规范:‘#‘开头,后面跟固定RGB的颜色值
* @param string $MaxResolutionUserId 在布局模式为1:悬浮布局和 2:屏幕分享布局时,设定为显示大视频画面的UserId。不填的话:悬浮布局默认是第一个进房间的主播,屏幕分享布局默认是背景色
* @param integer $MediaId 主辅路标识,
0:主流(默认);
1:辅流(屏幕分享);
这个位置的MediaId代表的是对应MaxResolutionUserId的主辅路,MixLayoutList内代表的是自定义用户的主辅路。
* @param string $BackgroundImageUrl 图片的url地址, 只支持jpg, png,大小限制不超过5M,url不可包含中文。
* @param integer $PlaceHolderMode 设置为1时代表启用占位图功能,0时代表不启用占位图功能,默认为0。启用占位图功能时,在预设位置的用户没有上行视频时可显示对应的占位图。
* @param integer $BackgroundImageRenderMode 背景画面宽高比不一致的时候处理方案,与MixLayoufList定义的RenderMode一致。
* @param string $DefaultSubBackgroundImage 子画面占位图url地址, 只支持jpg, png,大小限制不超过5M,宽高比不一致的处理方案同 RenderMode。
* @param array $WaterMarkList 水印布局参数, 最多支持25个。
* @param integer $RenderMode 模板布局下,背景画面宽高比不一致的时候处理方案。自定义布局不生效,与MixLayoufList定义的RenderMode一致。
* @param integer $MaxResolutionUserAlign 屏幕分享模板有效。设置为1时代表大画面居右,小画面居左布局。默认为0。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("MixLayoutMode",$param) and $param["MixLayoutMode"] !== null) {
$this->MixLayoutMode = $param["MixLayoutMode"];
}
if (array_key_exists("MixLayoutList",$param) and $param["MixLayoutList"] !== null) {
$this->MixLayoutList = [];
foreach ($param["MixLayoutList"] as $key => $value){
$obj = new MixLayout();
$obj->deserialize($value);
array_push($this->MixLayoutList, $obj);
}
}
if (array_key_exists("BackGroundColor",$param) and $param["BackGroundColor"] !== null) {
$this->BackGroundColor = $param["BackGroundColor"];
}
if (array_key_exists("MaxResolutionUserId",$param) and $param["MaxResolutionUserId"] !== null) {
$this->MaxResolutionUserId = $param["MaxResolutionUserId"];
}
if (array_key_exists("MediaId",$param) and $param["MediaId"] !== null) {
$this->MediaId = $param["MediaId"];
}
if (array_key_exists("BackgroundImageUrl",$param) and $param["BackgroundImageUrl"] !== null) {
$this->BackgroundImageUrl = $param["BackgroundImageUrl"];
}
if (array_key_exists("PlaceHolderMode",$param) and $param["PlaceHolderMode"] !== null) {
$this->PlaceHolderMode = $param["PlaceHolderMode"];
}
if (array_key_exists("BackgroundImageRenderMode",$param) and $param["BackgroundImageRenderMode"] !== null) {
$this->BackgroundImageRenderMode = $param["BackgroundImageRenderMode"];
}
if (array_key_exists("DefaultSubBackgroundImage",$param) and $param["DefaultSubBackgroundImage"] !== null) {
$this->DefaultSubBackgroundImage = $param["DefaultSubBackgroundImage"];
}
if (array_key_exists("WaterMarkList",$param) and $param["WaterMarkList"] !== null) {
$this->WaterMarkList = [];
foreach ($param["WaterMarkList"] as $key => $value){
$obj = new WaterMark();
$obj->deserialize($value);
array_push($this->WaterMarkList, $obj);
}
}
if (array_key_exists("RenderMode",$param) and $param["RenderMode"] !== null) {
$this->RenderMode = $param["RenderMode"];
}
if (array_key_exists("MaxResolutionUserAlign",$param) and $param["MaxResolutionUserAlign"] !== null) {
$this->MaxResolutionUserAlign = $param["MaxResolutionUserAlign"];
}
}
}
@@ -0,0 +1,67 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 录制的音视频转码参数。
*
* @method VideoParams getVideoParams() 获取录制视频转码参数,注意如果设置了这个参数,那么里面的字段都是必填的,没有默认值,如果不填这个参数,那么取值为默认值。
* @method void setVideoParams(VideoParams $VideoParams) 设置录制视频转码参数,注意如果设置了这个参数,那么里面的字段都是必填的,没有默认值,如果不填这个参数,那么取值为默认值。
* @method AudioParams getAudioParams() 获取录制音频转码参数,注意如果设置了这个参数,那么里面的字段都是必填的,没有默认值,如果不填这个参数,那么取值为默认值。
* @method void setAudioParams(AudioParams $AudioParams) 设置录制音频转码参数,注意如果设置了这个参数,那么里面的字段都是必填的,没有默认值,如果不填这个参数,那么取值为默认值。
*/
class MixTranscodeParams extends AbstractModel
{
/**
* @var VideoParams 录制视频转码参数,注意如果设置了这个参数,那么里面的字段都是必填的,没有默认值,如果不填这个参数,那么取值为默认值。
*/
public $VideoParams;
/**
* @var AudioParams 录制音频转码参数,注意如果设置了这个参数,那么里面的字段都是必填的,没有默认值,如果不填这个参数,那么取值为默认值。
*/
public $AudioParams;
/**
* @param VideoParams $VideoParams 录制视频转码参数,注意如果设置了这个参数,那么里面的字段都是必填的,没有默认值,如果不填这个参数,那么取值为默认值。
* @param AudioParams $AudioParams 录制音频转码参数,注意如果设置了这个参数,那么里面的字段都是必填的,没有默认值,如果不填这个参数,那么取值为默认值。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("VideoParams",$param) and $param["VideoParams"] !== null) {
$this->VideoParams = new VideoParams();
$this->VideoParams->deserialize($param["VideoParams"]);
}
if (array_key_exists("AudioParams",$param) and $param["AudioParams"] !== null) {
$this->AudioParams = new AudioParams();
$this->AudioParams->deserialize($param["AudioParams"]);
}
}
}
@@ -0,0 +1,77 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* TRTC用户参数。
*
* @method string getUserId() 获取用户ID。
* @method void setUserId(string $UserId) 设置用户ID。
* @method string getRoomId() 获取动态布局时房间信息必须和主房间信息保持一致,自定义布局时房间信息必须和MixLayoutList中对应用户的房间信息保持一致,不填时默认与主房间信息一致。
* @method void setRoomId(string $RoomId) 设置动态布局时房间信息必须和主房间信息保持一致,自定义布局时房间信息必须和MixLayoutList中对应用户的房间信息保持一致,不填时默认与主房间信息一致。
* @method integer getRoomIdType() 获取房间号类型,0为整形房间号,1为字符串房间号。
* @method void setRoomIdType(integer $RoomIdType) 设置房间号类型,0为整形房间号,1为字符串房间号。
*/
class MixUserInfo extends AbstractModel
{
/**
* @var string 用户ID。
*/
public $UserId;
/**
* @var string 动态布局时房间信息必须和主房间信息保持一致,自定义布局时房间信息必须和MixLayoutList中对应用户的房间信息保持一致,不填时默认与主房间信息一致。
*/
public $RoomId;
/**
* @var integer 房间号类型,0为整形房间号,1为字符串房间号。
*/
public $RoomIdType;
/**
* @param string $UserId 用户ID。
* @param string $RoomId 动态布局时房间信息必须和主房间信息保持一致,自定义布局时房间信息必须和MixLayoutList中对应用户的房间信息保持一致,不填时默认与主房间信息一致。
* @param integer $RoomIdType 房间号类型,0为整形房间号,1为字符串房间号。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("UserId",$param) and $param["UserId"] !== null) {
$this->UserId = $param["UserId"];
}
if (array_key_exists("RoomId",$param) and $param["RoomId"] !== null) {
$this->RoomId = $param["RoomId"];
}
if (array_key_exists("RoomIdType",$param) and $param["RoomIdType"] !== null) {
$this->RoomIdType = $param["RoomIdType"];
}
}
}
@@ -0,0 +1,91 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* ModifyCloudRecording请求参数结构体
*
* @method integer getSdkAppId() 获取TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同。
* @method void setSdkAppId(integer $SdkAppId) 设置TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同。
* @method string getTaskId() 获取录制任务的唯一Id,在启动录制成功后会返回。
* @method void setTaskId(string $TaskId) 设置录制任务的唯一Id,在启动录制成功后会返回。
* @method MixLayoutParams getMixLayoutParams() 获取需要更新的混流的布局参数。
* @method void setMixLayoutParams(MixLayoutParams $MixLayoutParams) 设置需要更新的混流的布局参数。
* @method SubscribeStreamUserIds getSubscribeStreamUserIds() 获取指定订阅流白名单或者黑名单。
* @method void setSubscribeStreamUserIds(SubscribeStreamUserIds $SubscribeStreamUserIds) 设置指定订阅流白名单或者黑名单。
*/
class ModifyCloudRecordingRequest extends AbstractModel
{
/**
* @var integer TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同。
*/
public $SdkAppId;
/**
* @var string 录制任务的唯一Id,在启动录制成功后会返回。
*/
public $TaskId;
/**
* @var MixLayoutParams 需要更新的混流的布局参数。
*/
public $MixLayoutParams;
/**
* @var SubscribeStreamUserIds 指定订阅流白名单或者黑名单。
*/
public $SubscribeStreamUserIds;
/**
* @param integer $SdkAppId TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同。
* @param string $TaskId 录制任务的唯一Id,在启动录制成功后会返回。
* @param MixLayoutParams $MixLayoutParams 需要更新的混流的布局参数。
* @param SubscribeStreamUserIds $SubscribeStreamUserIds 指定订阅流白名单或者黑名单。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("TaskId",$param) and $param["TaskId"] !== null) {
$this->TaskId = $param["TaskId"];
}
if (array_key_exists("MixLayoutParams",$param) and $param["MixLayoutParams"] !== null) {
$this->MixLayoutParams = new MixLayoutParams();
$this->MixLayoutParams->deserialize($param["MixLayoutParams"]);
}
if (array_key_exists("SubscribeStreamUserIds",$param) and $param["SubscribeStreamUserIds"] !== null) {
$this->SubscribeStreamUserIds = new SubscribeStreamUserIds();
$this->SubscribeStreamUserIds->deserialize($param["SubscribeStreamUserIds"]);
}
}
}
@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* ModifyCloudRecording返回参数结构体
*
* @method string getTaskId() 获取云录制服务分配的任务 ID。任务 ID 是对一次录制生命周期过程的唯一标识,结束录制时会失去意义。
* @method void setTaskId(string $TaskId) 设置云录制服务分配的任务 ID。任务 ID 是对一次录制生命周期过程的唯一标识,结束录制时会失去意义。
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class ModifyCloudRecordingResponse extends AbstractModel
{
/**
* @var string 云录制服务分配的任务 ID。任务 ID 是对一次录制生命周期过程的唯一标识,结束录制时会失去意义。
*/
public $TaskId;
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param string $TaskId 云录制服务分配的任务 ID。任务 ID 是对一次录制生命周期过程的唯一标识,结束录制时会失去意义。
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("TaskId",$param) and $param["TaskId"] !== null) {
$this->TaskId = $param["TaskId"];
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,113 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* ModifyPicture请求参数结构体
*
* @method integer getPictureId() 获取图片id
* @method void setPictureId(integer $PictureId) 设置图片id
* @method integer getSdkAppId() 获取应用id
* @method void setSdkAppId(integer $SdkAppId) 设置应用id
* @method integer getHeight() 获取图片长度
* @method void setHeight(integer $Height) 设置图片长度
* @method integer getWidth() 获取图片宽度
* @method void setWidth(integer $Width) 设置图片宽度
* @method integer getXPosition() 获取显示位置x轴方向
* @method void setXPosition(integer $XPosition) 设置显示位置x轴方向
* @method integer getYPosition() 获取显示位置y轴方向
* @method void setYPosition(integer $YPosition) 设置显示位置y轴方向
*/
class ModifyPictureRequest extends AbstractModel
{
/**
* @var integer 图片id
*/
public $PictureId;
/**
* @var integer 应用id
*/
public $SdkAppId;
/**
* @var integer 图片长度
*/
public $Height;
/**
* @var integer 图片宽度
*/
public $Width;
/**
* @var integer 显示位置x轴方向
*/
public $XPosition;
/**
* @var integer 显示位置y轴方向
*/
public $YPosition;
/**
* @param integer $PictureId 图片id
* @param integer $SdkAppId 应用id
* @param integer $Height 图片长度
* @param integer $Width 图片宽度
* @param integer $XPosition 显示位置x轴方向
* @param integer $YPosition 显示位置y轴方向
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("PictureId",$param) and $param["PictureId"] !== null) {
$this->PictureId = $param["PictureId"];
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("Height",$param) and $param["Height"] !== null) {
$this->Height = $param["Height"];
}
if (array_key_exists("Width",$param) and $param["Width"] !== null) {
$this->Width = $param["Width"];
}
if (array_key_exists("XPosition",$param) and $param["XPosition"] !== null) {
$this->XPosition = $param["XPosition"];
}
if (array_key_exists("YPosition",$param) and $param["YPosition"] !== null) {
$this->YPosition = $param["YPosition"];
}
}
}
@@ -0,0 +1,53 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* ModifyPicture返回参数结构体
*
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
class ModifyPictureResponse extends AbstractModel
{
/**
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
public $RequestId;
/**
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
$this->RequestId = $param["RequestId"];
}
}
}
@@ -0,0 +1,82 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 旁路转码时长的查询结果
*
* @method array getSdkAppIdTranscodeTimeUsages() 获取旁路转码时长查询结果数组
* @method void setSdkAppIdTranscodeTimeUsages(array $SdkAppIdTranscodeTimeUsages) 设置旁路转码时长查询结果数组
* @method integer getTotalNum() 获取查询记录数量
* @method void setTotalNum(integer $TotalNum) 设置查询记录数量
* @method string getSdkAppId() 获取所查询的应用ID,可能值为:1-应用的应用ID,2-total,显示为total则表示查询的是所有应用的用量合计值。
* @method void setSdkAppId(string $SdkAppId) 设置所查询的应用ID,可能值为:1-应用的应用ID,2-total,显示为total则表示查询的是所有应用的用量合计值。
*/
class OneSdkAppIdTranscodeTimeUsagesInfo extends AbstractModel
{
/**
* @var array 旁路转码时长查询结果数组
*/
public $SdkAppIdTranscodeTimeUsages;
/**
* @var integer 查询记录数量
*/
public $TotalNum;
/**
* @var string 所查询的应用ID,可能值为:1-应用的应用ID,2-total,显示为total则表示查询的是所有应用的用量合计值。
*/
public $SdkAppId;
/**
* @param array $SdkAppIdTranscodeTimeUsages 旁路转码时长查询结果数组
* @param integer $TotalNum 查询记录数量
* @param string $SdkAppId 所查询的应用ID,可能值为:1-应用的应用ID,2-total,显示为total则表示查询的是所有应用的用量合计值。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("SdkAppIdTranscodeTimeUsages",$param) and $param["SdkAppIdTranscodeTimeUsages"] !== null) {
$this->SdkAppIdTranscodeTimeUsages = [];
foreach ($param["SdkAppIdTranscodeTimeUsages"] as $key => $value){
$obj = new SdkAppIdTrtcMcuTranscodeTimeUsage();
$obj->deserialize($value);
array_push($this->SdkAppIdTranscodeTimeUsages, $obj);
}
}
if (array_key_exists("TotalNum",$param) and $param["TotalNum"] !== null) {
$this->TotalNum = $param["TotalNum"];
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
}
}
@@ -0,0 +1,93 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* MCU混流的输出参数
*
* @method string getStreamId() 获取直播流 ID,由用户自定义设置,该流 ID 不能与用户旁路的流 ID 相同,限制64字节。
* @method void setStreamId(string $StreamId) 设置直播流 ID,由用户自定义设置,该流 ID 不能与用户旁路的流 ID 相同,限制64字节。
* @method integer getPureAudioStream() 获取取值范围[0,1], 填0:直播流为音视频(默认); 填1:直播流为纯音频
* @method void setPureAudioStream(integer $PureAudioStream) 设置取值范围[0,1], 填0:直播流为音视频(默认); 填1:直播流为纯音频
* @method string getRecordId() 获取自定义录制文件名称前缀。请先在实时音视频控制台开通录制功能,https://cloud.tencent.com/document/product/647/50768。
【注意】该方式仅对旧版云端录制功能的应用生效,新版云端录制功能的应用请用接口CreateCloudRecording发起录制。新、旧云端录制类型判断方式请见:https://cloud.tencent.com/document/product/647/50768#record
* @method void setRecordId(string $RecordId) 设置自定义录制文件名称前缀。请先在实时音视频控制台开通录制功能,https://cloud.tencent.com/document/product/647/50768。
【注意】该方式仅对旧版云端录制功能的应用生效,新版云端录制功能的应用请用接口CreateCloudRecording发起录制。新、旧云端录制类型判断方式请见:https://cloud.tencent.com/document/product/647/50768#record
* @method integer getRecordAudioOnly() 获取取值范围[0,1],填0无实际含义; 填1:指定录制文件格式为mp3。此参数不建议使用,建议在实时音视频控制台配置纯音频录制模板。
* @method void setRecordAudioOnly(integer $RecordAudioOnly) 设置取值范围[0,1],填0无实际含义; 填1:指定录制文件格式为mp3。此参数不建议使用,建议在实时音视频控制台配置纯音频录制模板。
*/
class OutputParams extends AbstractModel
{
/**
* @var string 直播流 ID,由用户自定义设置,该流 ID 不能与用户旁路的流 ID 相同,限制64字节。
*/
public $StreamId;
/**
* @var integer 取值范围[0,1] 填0:直播流为音视频(默认); 填1:直播流为纯音频
*/
public $PureAudioStream;
/**
* @var string 自定义录制文件名称前缀。请先在实时音视频控制台开通录制功能,https://cloud.tencent.com/document/product/647/50768。
【注意】该方式仅对旧版云端录制功能的应用生效,新版云端录制功能的应用请用接口CreateCloudRecording发起录制。新、旧云端录制类型判断方式请见:https://cloud.tencent.com/document/product/647/50768#record
*/
public $RecordId;
/**
* @var integer 取值范围[0,1],填0无实际含义; 填1:指定录制文件格式为mp3。此参数不建议使用,建议在实时音视频控制台配置纯音频录制模板。
*/
public $RecordAudioOnly;
/**
* @param string $StreamId 直播流 ID,由用户自定义设置,该流 ID 不能与用户旁路的流 ID 相同,限制64字节。
* @param integer $PureAudioStream 取值范围[0,1] 填0:直播流为音视频(默认); 填1:直播流为纯音频
* @param string $RecordId 自定义录制文件名称前缀。请先在实时音视频控制台开通录制功能,https://cloud.tencent.com/document/product/647/50768。
【注意】该方式仅对旧版云端录制功能的应用生效,新版云端录制功能的应用请用接口CreateCloudRecording发起录制。新、旧云端录制类型判断方式请见:https://cloud.tencent.com/document/product/647/50768#record
* @param integer $RecordAudioOnly 取值范围[0,1],填0无实际含义; 填1:指定录制文件格式为mp3。此参数不建议使用,建议在实时音视频控制台配置纯音频录制模板。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("StreamId",$param) and $param["StreamId"] !== null) {
$this->StreamId = $param["StreamId"];
}
if (array_key_exists("PureAudioStream",$param) and $param["PureAudioStream"] !== null) {
$this->PureAudioStream = $param["PureAudioStream"];
}
if (array_key_exists("RecordId",$param) and $param["RecordId"] !== null) {
$this->RecordId = $param["RecordId"];
}
if (array_key_exists("RecordAudioOnly",$param) and $param["RecordAudioOnly"] !== null) {
$this->RecordAudioOnly = $param["RecordAudioOnly"];
}
}
}
@@ -0,0 +1,113 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 图片列表信息
*
* @method integer getHeight() 获取图片长度
* @method void setHeight(integer $Height) 设置图片长度
* @method integer getWidth() 获取图片宽度
* @method void setWidth(integer $Width) 设置图片宽度
* @method integer getXPosition() 获取显示位置x轴方向
* @method void setXPosition(integer $XPosition) 设置显示位置x轴方向
* @method integer getYPosition() 获取显示位置y轴方向
* @method void setYPosition(integer $YPosition) 设置显示位置y轴方向
* @method integer getSdkAppId() 获取应用id
* @method void setSdkAppId(integer $SdkAppId) 设置应用id
* @method integer getPictureId() 获取图片id
* @method void setPictureId(integer $PictureId) 设置图片id
*/
class PictureInfo extends AbstractModel
{
/**
* @var integer 图片长度
*/
public $Height;
/**
* @var integer 图片宽度
*/
public $Width;
/**
* @var integer 显示位置x轴方向
*/
public $XPosition;
/**
* @var integer 显示位置y轴方向
*/
public $YPosition;
/**
* @var integer 应用id
*/
public $SdkAppId;
/**
* @var integer 图片id
*/
public $PictureId;
/**
* @param integer $Height 图片长度
* @param integer $Width 图片宽度
* @param integer $XPosition 显示位置x轴方向
* @param integer $YPosition 显示位置y轴方向
* @param integer $SdkAppId 应用id
* @param integer $PictureId 图片id
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Height",$param) and $param["Height"] !== null) {
$this->Height = $param["Height"];
}
if (array_key_exists("Width",$param) and $param["Width"] !== null) {
$this->Width = $param["Width"];
}
if (array_key_exists("XPosition",$param) and $param["XPosition"] !== null) {
$this->XPosition = $param["XPosition"];
}
if (array_key_exists("YPosition",$param) and $param["YPosition"] !== null) {
$this->YPosition = $param["YPosition"];
}
if (array_key_exists("SdkAppId",$param) and $param["SdkAppId"] !== null) {
$this->SdkAppId = $param["SdkAppId"];
}
if (array_key_exists("PictureId",$param) and $param["PictureId"] !== null) {
$this->PictureId = $param["PictureId"];
}
}
}
@@ -0,0 +1,161 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 自定义模板中有效,指定用户视频在混合画面中的位置。
*
* @method string getUserId() 获取指定显示在该画面上的用户ID。如果不指定用户ID,会按照用户加入房间的顺序自动匹配PresetLayoutConfig中的画面设置。
* @method void setUserId(string $UserId) 设置指定显示在该画面上的用户ID。如果不指定用户ID,会按照用户加入房间的顺序自动匹配PresetLayoutConfig中的画面设置。
* @method integer getStreamType() 获取当该画面指定用户时,代表用户的流类型。0为摄像头,1为屏幕分享。小画面为web用户时此值填0。
* @method void setStreamType(integer $StreamType) 设置当该画面指定用户时,代表用户的流类型。0为摄像头,1为屏幕分享。小画面为web用户时此值填0。
* @method integer getImageWidth() 获取该画面在输出时的宽度,单位为像素值,不填默认为0。
* @method void setImageWidth(integer $ImageWidth) 设置该画面在输出时的宽度,单位为像素值,不填默认为0。
* @method integer getImageHeight() 获取该画面在输出时的高度,单位为像素值,不填默认为0。
* @method void setImageHeight(integer $ImageHeight) 设置该画面在输出时的高度,单位为像素值,不填默认为0。
* @method integer getLocationX() 获取该画面在输出时的X偏移,单位为像素值,LocationX与ImageWidth之和不能超过混流输出的总宽度,不填默认为0。
* @method void setLocationX(integer $LocationX) 设置该画面在输出时的X偏移,单位为像素值,LocationX与ImageWidth之和不能超过混流输出的总宽度,不填默认为0。
* @method integer getLocationY() 获取该画面在输出时的Y偏移,单位为像素值,LocationY与ImageHeight之和不能超过混流输出的总高度,不填默认为0。
* @method void setLocationY(integer $LocationY) 设置该画面在输出时的Y偏移,单位为像素值,LocationY与ImageHeight之和不能超过混流输出的总高度,不填默认为0。
* @method integer getZOrder() 获取该画面在输出时的层级,不填默认为0。
* @method void setZOrder(integer $ZOrder) 设置该画面在输出时的层级,不填默认为0。
* @method integer getRenderMode() 获取该画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底。不填默认为0。
* @method void setRenderMode(integer $RenderMode) 设置该画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底。不填默认为0。
* @method integer getMixInputType() 获取该当前位置用户混入的流类型:0为混入音视频,1为只混入视频,2为只混入音频。默认为0,建议配合指定用户ID使用。
* @method void setMixInputType(integer $MixInputType) 设置该当前位置用户混入的流类型:0为混入音视频,1为只混入视频,2为只混入音频。默认为0,建议配合指定用户ID使用。
* @method integer getPlaceImageId() 获取占位图ID。启用占位图功能时,在当前位置的用户没有上行视频时显示占位图。占位图大小不能超过2M,在实时音视频控制台上传并生成,https://cloud.tencent.com/document/product/647/50769
* @method void setPlaceImageId(integer $PlaceImageId) 设置占位图ID。启用占位图功能时,在当前位置的用户没有上行视频时显示占位图。占位图大小不能超过2M,在实时音视频控制台上传并生成,https://cloud.tencent.com/document/product/647/50769
*/
class PresetLayoutConfig extends AbstractModel
{
/**
* @var string 指定显示在该画面上的用户ID。如果不指定用户ID,会按照用户加入房间的顺序自动匹配PresetLayoutConfig中的画面设置。
*/
public $UserId;
/**
* @var integer 当该画面指定用户时,代表用户的流类型。0为摄像头,1为屏幕分享。小画面为web用户时此值填0。
*/
public $StreamType;
/**
* @var integer 该画面在输出时的宽度,单位为像素值,不填默认为0。
*/
public $ImageWidth;
/**
* @var integer 该画面在输出时的高度,单位为像素值,不填默认为0。
*/
public $ImageHeight;
/**
* @var integer 该画面在输出时的X偏移,单位为像素值,LocationX与ImageWidth之和不能超过混流输出的总宽度,不填默认为0。
*/
public $LocationX;
/**
* @var integer 该画面在输出时的Y偏移,单位为像素值,LocationY与ImageHeight之和不能超过混流输出的总高度,不填默认为0。
*/
public $LocationY;
/**
* @var integer 该画面在输出时的层级,不填默认为0。
*/
public $ZOrder;
/**
* @var integer 该画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底。不填默认为0。
*/
public $RenderMode;
/**
* @var integer 该当前位置用户混入的流类型:0为混入音视频,1为只混入视频,2为只混入音频。默认为0,建议配合指定用户ID使用。
*/
public $MixInputType;
/**
* @var integer 占位图ID。启用占位图功能时,在当前位置的用户没有上行视频时显示占位图。占位图大小不能超过2M,在实时音视频控制台上传并生成,https://cloud.tencent.com/document/product/647/50769
*/
public $PlaceImageId;
/**
* @param string $UserId 指定显示在该画面上的用户ID。如果不指定用户ID,会按照用户加入房间的顺序自动匹配PresetLayoutConfig中的画面设置。
* @param integer $StreamType 当该画面指定用户时,代表用户的流类型。0为摄像头,1为屏幕分享。小画面为web用户时此值填0。
* @param integer $ImageWidth 该画面在输出时的宽度,单位为像素值,不填默认为0。
* @param integer $ImageHeight 该画面在输出时的高度,单位为像素值,不填默认为0。
* @param integer $LocationX 该画面在输出时的X偏移,单位为像素值,LocationX与ImageWidth之和不能超过混流输出的总宽度,不填默认为0。
* @param integer $LocationY 该画面在输出时的Y偏移,单位为像素值,LocationY与ImageHeight之和不能超过混流输出的总高度,不填默认为0。
* @param integer $ZOrder 该画面在输出时的层级,不填默认为0。
* @param integer $RenderMode 该画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底。不填默认为0。
* @param integer $MixInputType 该当前位置用户混入的流类型:0为混入音视频,1为只混入视频,2为只混入音频。默认为0,建议配合指定用户ID使用。
* @param integer $PlaceImageId 占位图ID。启用占位图功能时,在当前位置的用户没有上行视频时显示占位图。占位图大小不能超过2M,在实时音视频控制台上传并生成,https://cloud.tencent.com/document/product/647/50769
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("UserId",$param) and $param["UserId"] !== null) {
$this->UserId = $param["UserId"];
}
if (array_key_exists("StreamType",$param) and $param["StreamType"] !== null) {
$this->StreamType = $param["StreamType"];
}
if (array_key_exists("ImageWidth",$param) and $param["ImageWidth"] !== null) {
$this->ImageWidth = $param["ImageWidth"];
}
if (array_key_exists("ImageHeight",$param) and $param["ImageHeight"] !== null) {
$this->ImageHeight = $param["ImageHeight"];
}
if (array_key_exists("LocationX",$param) and $param["LocationX"] !== null) {
$this->LocationX = $param["LocationX"];
}
if (array_key_exists("LocationY",$param) and $param["LocationY"] !== null) {
$this->LocationY = $param["LocationY"];
}
if (array_key_exists("ZOrder",$param) and $param["ZOrder"] !== null) {
$this->ZOrder = $param["ZOrder"];
}
if (array_key_exists("RenderMode",$param) and $param["RenderMode"] !== null) {
$this->RenderMode = $param["RenderMode"];
}
if (array_key_exists("MixInputType",$param) and $param["MixInputType"] !== null) {
$this->MixInputType = $param["MixInputType"];
}
if (array_key_exists("PlaceImageId",$param) and $param["PlaceImageId"] !== null) {
$this->PlaceImageId = $param["PlaceImageId"];
}
}
}
@@ -0,0 +1,65 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 第三方CDN转推参数
*
* @method integer getBizId() 获取腾讯云直播BizId。
* @method void setBizId(integer $BizId) 设置腾讯云直播BizId。
* @method array getPublishCdnUrls() 获取第三方CDN转推的目的地址,同时只支持转推一个第三方CDN地址。
* @method void setPublishCdnUrls(array $PublishCdnUrls) 设置第三方CDN转推的目的地址,同时只支持转推一个第三方CDN地址。
*/
class PublishCdnParams extends AbstractModel
{
/**
* @var integer 腾讯云直播BizId。
*/
public $BizId;
/**
* @var array 第三方CDN转推的目的地址,同时只支持转推一个第三方CDN地址。
*/
public $PublishCdnUrls;
/**
* @param integer $BizId 腾讯云直播BizId。
* @param array $PublishCdnUrls 第三方CDN转推的目的地址,同时只支持转推一个第三方CDN地址。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("BizId",$param) and $param["BizId"] !== null) {
$this->BizId = $param["BizId"];
}
if (array_key_exists("PublishCdnUrls",$param) and $param["PublishCdnUrls"] !== null) {
$this->PublishCdnUrls = $param["PublishCdnUrls"];
}
}
}
@@ -0,0 +1,98 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* Es返回的质量数据
*
* @method array getContent() 获取数据内容
* @method void setContent(array $Content) 设置数据内容
* @method string getUserId() 获取用户ID
* @method void setUserId(string $UserId) 设置用户ID
* @method string getPeerId() 获取对端Id,为空时表示上行数据
注意:此字段可能返回 null,表示取不到有效值。
* @method void setPeerId(string $PeerId) 设置对端Id,为空时表示上行数据
注意:此字段可能返回 null,表示取不到有效值。
* @method string getDataType() 获取数据类型
* @method void setDataType(string $DataType) 设置数据类型
*/
class QualityData extends AbstractModel
{
/**
* @var array 数据内容
*/
public $Content;
/**
* @var string 用户ID
*/
public $UserId;
/**
* @var string 对端Id,为空时表示上行数据
注意:此字段可能返回 null,表示取不到有效值。
*/
public $PeerId;
/**
* @var string 数据类型
*/
public $DataType;
/**
* @param array $Content 数据内容
* @param string $UserId 用户ID
* @param string $PeerId 对端Id,为空时表示上行数据
注意:此字段可能返回 null,表示取不到有效值。
* @param string $DataType 数据类型
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("Content",$param) and $param["Content"] !== null) {
$this->Content = [];
foreach ($param["Content"] as $key => $value){
$obj = new TimeValue();
$obj->deserialize($value);
array_push($this->Content, $obj);
}
}
if (array_key_exists("UserId",$param) and $param["UserId"] !== null) {
$this->UserId = $param["UserId"];
}
if (array_key_exists("PeerId",$param) and $param["PeerId"] !== null) {
$this->PeerId = $param["PeerId"];
}
if (array_key_exists("DataType",$param) and $param["DataType"] !== null) {
$this->DataType = $param["DataType"];
}
}
}
@@ -0,0 +1,170 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 云端录制控制参数。
*
* @method integer getRecordMode() 获取录制模式:
1:单流录制,分别录制房间的订阅UserId的音频和视频,将录制文件上传至云存储;
2:混流录制,将房间内订阅UserId的音视频混录成一个音视频文件,将录制文件上传至云存储;
* @method void setRecordMode(integer $RecordMode) 设置录制模式:
1:单流录制,分别录制房间的订阅UserId的音频和视频,将录制文件上传至云存储;
2:混流录制,将房间内订阅UserId的音视频混录成一个音视频文件,将录制文件上传至云存储;
* @method integer getMaxIdleTime() 获取房间内持续没有用户(主播)上行推流的状态超过MaxIdleTime的时长,自动停止录制,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
* @method void setMaxIdleTime(integer $MaxIdleTime) 设置房间内持续没有用户(主播)上行推流的状态超过MaxIdleTime的时长,自动停止录制,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
* @method integer getStreamType() 获取录制的媒体流类型:
0:录制音频+视频流(默认);
1:仅录制音频流;
2:仅录制视频流,
* @method void setStreamType(integer $StreamType) 设置录制的媒体流类型:
0:录制音频+视频流(默认);
1:仅录制音频流;
2:仅录制视频流,
* @method SubscribeStreamUserIds getSubscribeStreamUserIds() 获取指定订阅流白名单或者黑名单。
* @method void setSubscribeStreamUserIds(SubscribeStreamUserIds $SubscribeStreamUserIds) 设置指定订阅流白名单或者黑名单。
* @method integer getOutputFormat() 获取输出文件的格式(存储至COS等第三方存储时有效)。0:(默认)输出文件为hls格式。1:输出文件格式为hls+mp4。2:输出文件格式为hls+aac 。3:输出文件格式为mp4。4:输出文件格式为aac。
存储到云点播VOD时此参数无效,存储到VOD时请通过TencentVodhttps://cloud.tencent.com/document/api/647/44055#TencentVod)内的MediaType设置。
* @method void setOutputFormat(integer $OutputFormat) 设置输出文件的格式(存储至COS等第三方存储时有效)。0:(默认)输出文件为hls格式。1:输出文件格式为hls+mp4。2:输出文件格式为hls+aac 。3:输出文件格式为mp4。4:输出文件格式为aac。
存储到云点播VOD时此参数无效,存储到VOD时请通过TencentVodhttps://cloud.tencent.com/document/api/647/44055#TencentVod)内的MediaType设置。
* @method integer getAvMerge() 获取单流录制模式下,用户的音视频是否合并,0:单流音视频不合并(默认)。1:单流音视频合并成一个ts。混流录制此参数无需设置,默认音视频合并。
* @method void setAvMerge(integer $AvMerge) 设置单流录制模式下,用户的音视频是否合并,0:单流音视频不合并(默认)。1:单流音视频合并成一个ts。混流录制此参数无需设置,默认音视频合并。
* @method integer getMaxMediaFileDuration() 获取如果是aac或者mp4文件格式,超过长度限制后,系统会自动拆分视频文件。单位:分钟。默认为1440min(24h),取值范围为1-1440。【单文件限制最大为2G,满足文件大小 >2G 或录制时长度 > 24h任意一个条件,文件都会自动切分】
Hls 格式录制此参数不生效。
* @method void setMaxMediaFileDuration(integer $MaxMediaFileDuration) 设置如果是aac或者mp4文件格式,超过长度限制后,系统会自动拆分视频文件。单位:分钟。默认为1440min(24h),取值范围为1-1440。【单文件限制最大为2G,满足文件大小 >2G 或录制时长度 > 24h任意一个条件,文件都会自动切分】
Hls 格式录制此参数不生效。
* @method integer getMediaId() 获取指定录制主辅流,0:主流+辅流(默认);1:主流;2:辅流。
* @method void setMediaId(integer $MediaId) 设置指定录制主辅流,0:主流+辅流(默认);1:主流;2:辅流。
*/
class RecordParams extends AbstractModel
{
/**
* @var integer 录制模式:
1:单流录制,分别录制房间的订阅UserId的音频和视频,将录制文件上传至云存储;
2:混流录制,将房间内订阅UserId的音视频混录成一个音视频文件,将录制文件上传至云存储;
*/
public $RecordMode;
/**
* @var integer 房间内持续没有用户(主播)上行推流的状态超过MaxIdleTime的时长,自动停止录制,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
*/
public $MaxIdleTime;
/**
* @var integer 录制的媒体流类型:
0:录制音频+视频流(默认);
1:仅录制音频流;
2:仅录制视频流,
*/
public $StreamType;
/**
* @var SubscribeStreamUserIds 指定订阅流白名单或者黑名单。
*/
public $SubscribeStreamUserIds;
/**
* @var integer 输出文件的格式(存储至COS等第三方存储时有效)。0:(默认)输出文件为hls格式。1:输出文件格式为hls+mp4。2:输出文件格式为hls+aac 。3:输出文件格式为mp4。4:输出文件格式为aac。
存储到云点播VOD时此参数无效,存储到VOD时请通过TencentVodhttps://cloud.tencent.com/document/api/647/44055#TencentVod)内的MediaType设置。
*/
public $OutputFormat;
/**
* @var integer 单流录制模式下,用户的音视频是否合并,0:单流音视频不合并(默认)。1:单流音视频合并成一个ts。混流录制此参数无需设置,默认音视频合并。
*/
public $AvMerge;
/**
* @var integer 如果是aac或者mp4文件格式,超过长度限制后,系统会自动拆分视频文件。单位:分钟。默认为1440min(24h),取值范围为1-1440。【单文件限制最大为2G,满足文件大小 >2G 或录制时长度 > 24h任意一个条件,文件都会自动切分】
Hls 格式录制此参数不生效。
*/
public $MaxMediaFileDuration;
/**
* @var integer 指定录制主辅流,0:主流+辅流(默认);1:主流;2:辅流。
*/
public $MediaId;
/**
* @param integer $RecordMode 录制模式:
1:单流录制,分别录制房间的订阅UserId的音频和视频,将录制文件上传至云存储;
2:混流录制,将房间内订阅UserId的音视频混录成一个音视频文件,将录制文件上传至云存储;
* @param integer $MaxIdleTime 房间内持续没有用户(主播)上行推流的状态超过MaxIdleTime的时长,自动停止录制,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
* @param integer $StreamType 录制的媒体流类型:
0:录制音频+视频流(默认);
1:仅录制音频流;
2:仅录制视频流,
* @param SubscribeStreamUserIds $SubscribeStreamUserIds 指定订阅流白名单或者黑名单。
* @param integer $OutputFormat 输出文件的格式(存储至COS等第三方存储时有效)。0:(默认)输出文件为hls格式。1:输出文件格式为hls+mp4。2:输出文件格式为hls+aac 。3:输出文件格式为mp4。4:输出文件格式为aac。
存储到云点播VOD时此参数无效,存储到VOD时请通过TencentVodhttps://cloud.tencent.com/document/api/647/44055#TencentVod)内的MediaType设置。
* @param integer $AvMerge 单流录制模式下,用户的音视频是否合并,0:单流音视频不合并(默认)。1:单流音视频合并成一个ts。混流录制此参数无需设置,默认音视频合并。
* @param integer $MaxMediaFileDuration 如果是aac或者mp4文件格式,超过长度限制后,系统会自动拆分视频文件。单位:分钟。默认为1440min(24h),取值范围为1-1440。【单文件限制最大为2G,满足文件大小 >2G 或录制时长度 > 24h任意一个条件,文件都会自动切分】
Hls 格式录制此参数不生效。
* @param integer $MediaId 指定录制主辅流,0:主流+辅流(默认);1:主流;2:辅流。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("RecordMode",$param) and $param["RecordMode"] !== null) {
$this->RecordMode = $param["RecordMode"];
}
if (array_key_exists("MaxIdleTime",$param) and $param["MaxIdleTime"] !== null) {
$this->MaxIdleTime = $param["MaxIdleTime"];
}
if (array_key_exists("StreamType",$param) and $param["StreamType"] !== null) {
$this->StreamType = $param["StreamType"];
}
if (array_key_exists("SubscribeStreamUserIds",$param) and $param["SubscribeStreamUserIds"] !== null) {
$this->SubscribeStreamUserIds = new SubscribeStreamUserIds();
$this->SubscribeStreamUserIds->deserialize($param["SubscribeStreamUserIds"]);
}
if (array_key_exists("OutputFormat",$param) and $param["OutputFormat"] !== null) {
$this->OutputFormat = $param["OutputFormat"];
}
if (array_key_exists("AvMerge",$param) and $param["AvMerge"] !== null) {
$this->AvMerge = $param["AvMerge"];
}
if (array_key_exists("MaxMediaFileDuration",$param) and $param["MaxMediaFileDuration"] !== null) {
$this->MaxMediaFileDuration = $param["MaxMediaFileDuration"];
}
if (array_key_exists("MediaId",$param) and $param["MediaId"] !== null) {
$this->MediaId = $param["MediaId"];
}
}
}
@@ -0,0 +1,101 @@
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace TencentCloud\Trtc\V20190722\Models;
use TencentCloud\Common\AbstractModel;
/**
* 录制的使用信息。
*
* @method string getTimeKey() 获取本组数据对应的时间点,格式如:2020-09-07或2020-09-07 00:05:05。
* @method void setTimeKey(string $TimeKey) 设置本组数据对应的时间点,格式如:2020-09-07或2020-09-07 00:05:05。
* @method integer getClass1VideoTime() 获取视频时长-标清SD,单位:秒。
* @method void setClass1VideoTime(integer $Class1VideoTime) 设置视频时长-标清SD,单位:秒。
* @method integer getClass2VideoTime() 获取视频时长-高清HD,单位:秒。
* @method void setClass2VideoTime(integer $Class2VideoTime) 设置视频时长-高清HD,单位:秒。
* @method integer getClass3VideoTime() 获取视频时长-超清HD,单位:秒。
* @method void setClass3VideoTime(integer $Class3VideoTime) 设置视频时长-超清HD,单位:秒。
* @method integer getAudioTime() 获取语音时长,单位:秒。
* @method void setAudioTime(integer $AudioTime) 设置语音时长,单位:秒。
*/
class RecordUsage extends AbstractModel
{
/**
* @var string 本组数据对应的时间点,格式如:2020-09-07或2020-09-07 00:05:05。
*/
public $TimeKey;
/**
* @var integer 视频时长-标清SD,单位:秒。
*/
public $Class1VideoTime;
/**
* @var integer 视频时长-高清HD,单位:秒。
*/
public $Class2VideoTime;
/**
* @var integer 视频时长-超清HD,单位:秒。
*/
public $Class3VideoTime;
/**
* @var integer 语音时长,单位:秒。
*/
public $AudioTime;
/**
* @param string $TimeKey 本组数据对应的时间点,格式如:2020-09-07或2020-09-07 00:05:05。
* @param integer $Class1VideoTime 视频时长-标清SD,单位:秒。
* @param integer $Class2VideoTime 视频时长-高清HD,单位:秒。
* @param integer $Class3VideoTime 视频时长-超清HD,单位:秒。
* @param integer $AudioTime 语音时长,单位:秒。
*/
function __construct()
{
}
/**
* For internal only. DO NOT USE IT.
*/
public function deserialize($param)
{
if ($param === null) {
return;
}
if (array_key_exists("TimeKey",$param) and $param["TimeKey"] !== null) {
$this->TimeKey = $param["TimeKey"];
}
if (array_key_exists("Class1VideoTime",$param) and $param["Class1VideoTime"] !== null) {
$this->Class1VideoTime = $param["Class1VideoTime"];
}
if (array_key_exists("Class2VideoTime",$param) and $param["Class2VideoTime"] !== null) {
$this->Class2VideoTime = $param["Class2VideoTime"];
}
if (array_key_exists("Class3VideoTime",$param) and $param["Class3VideoTime"] !== null) {
$this->Class3VideoTime = $param["Class3VideoTime"];
}
if (array_key_exists("AudioTime",$param) and $param["AudioTime"] !== null) {
$this->AudioTime = $param["AudioTime"];
}
}
}

Some files were not shown because too many files have changed in this diff Show More