代码修改后的版本,全部提交

This commit is contained in:
ss001
2026-02-07 15:48:27 +08:00
parent cccbaa37c9
commit c2cda58c65
15604 changed files with 2455502 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Canvas : AbstractModel
{
/// <summary>
/// 混流画布宽高配置
/// </summary>
[JsonProperty("LayoutParams")]
public LayoutParams LayoutParams{ get; set; }
/// <summary>
/// 背景颜色默认为黑色格式为RGB格式如红色为"#FF0000"
/// </summary>
[JsonProperty("BackgroundColor")]
public string BackgroundColor{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamObj(map, prefix + "LayoutParams.", this.LayoutParams);
this.SetParamSimple(map, prefix + "BackgroundColor", this.BackgroundColor);
}
}
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Concat : AbstractModel
{
/// <summary>
/// 是否开启拼接功能
/// 在开启了视频拼接功能的情况下,实时录制服务会把同一个用户因为暂停导致的多段视频拼接成一个视频
/// </summary>
[JsonProperty("Enabled")]
public bool? Enabled{ get; set; }
/// <summary>
/// 视频拼接时使用的垫片图片下载地址,不填默认用全黑的图片进行视频垫片
/// </summary>
[JsonProperty("Image")]
public string Image{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Enabled", this.Enabled);
this.SetParamSimple(map, prefix + "Image", this.Image);
}
}
}

View File

@@ -0,0 +1,86 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateTranscodeRequest : AbstractModel
{
/// <summary>
/// 客户的SdkAppId
/// </summary>
[JsonProperty("SdkAppId")]
public long? SdkAppId{ get; set; }
/// <summary>
/// 需要进行转码文件地址
/// </summary>
[JsonProperty("Url")]
public string Url{ get; set; }
/// <summary>
/// 是否为静态PPT默认为False
/// 如果IsStaticPPT为False后缀名为.ppt或.pptx的文档会动态转码成HTML5页面其他格式的文档会静态转码成图片如果IsStaticPPT为True所有格式的文档会静态转码成图片
/// </summary>
[JsonProperty("IsStaticPPT")]
public bool? IsStaticPPT{ get; set; }
/// <summary>
/// 转码后文档的最小分辨率,不传、传空字符串或分辨率格式错误则使用文档原分辨率
///
/// 注意分辨率宽高中间为英文字母"xyz"的"x"
/// </summary>
[JsonProperty("MinResolution")]
public string MinResolution{ get; set; }
/// <summary>
/// 动态PPT转码可以为文件生成该分辨率的缩略图不传、传空字符串或分辨率格式错误则不生成缩略图分辨率格式同MinResolution
///
/// 静态转码这个参数不起作用
/// </summary>
[JsonProperty("ThumbnailResolution")]
public string ThumbnailResolution{ get; set; }
/// <summary>
/// 转码文件压缩格式,不传、传空字符串或不是指定的格式则不生成压缩文件,目前支持如下压缩格式:
///
/// zip 生成`.zip`压缩包
/// tar.gz 生成`.tar.gz`压缩包
/// </summary>
[JsonProperty("CompressFileType")]
public string CompressFileType{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SdkAppId", this.SdkAppId);
this.SetParamSimple(map, prefix + "Url", this.Url);
this.SetParamSimple(map, prefix + "IsStaticPPT", this.IsStaticPPT);
this.SetParamSimple(map, prefix + "MinResolution", this.MinResolution);
this.SetParamSimple(map, prefix + "ThumbnailResolution", this.ThumbnailResolution);
this.SetParamSimple(map, prefix + "CompressFileType", this.CompressFileType);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateTranscodeResponse : AbstractModel
{
/// <summary>
/// 文档转码任务的唯一标识Id用于查询该任务的进度以及转码结果
/// </summary>
[JsonProperty("TaskId")]
public string TaskId{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "TaskId", this.TaskId);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CustomLayout : AbstractModel
{
/// <summary>
/// 混流画布参数
/// </summary>
[JsonProperty("Canvas")]
public Canvas Canvas{ get; set; }
/// <summary>
/// 流布局参数,每路流的布局不能超出画布区域
/// </summary>
[JsonProperty("InputStreamList")]
public StreamLayout[] InputStreamList{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamObj(map, prefix + "Canvas.", this.Canvas);
this.SetParamArrayObj(map, prefix + "InputStreamList.", this.InputStreamList);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeOnlineRecordCallbackRequest : AbstractModel
{
/// <summary>
/// 应用的SdkAppId
/// </summary>
[JsonProperty("SdkAppId")]
public long? SdkAppId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SdkAppId", this.SdkAppId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeOnlineRecordCallbackResponse : AbstractModel
{
/// <summary>
/// 实时录制事件回调地址,如果未设置回调地址,该字段为空字符串
/// </summary>
[JsonProperty("Callback")]
public string Callback{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Callback", this.Callback);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeOnlineRecordRequest : AbstractModel
{
/// <summary>
/// 客户的SdkAppId
/// </summary>
[JsonProperty("SdkAppId")]
public long? SdkAppId{ get; set; }
/// <summary>
/// 实时录制任务Id
/// </summary>
[JsonProperty("TaskId")]
public string TaskId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SdkAppId", this.SdkAppId);
this.SetParamSimple(map, prefix + "TaskId", this.TaskId);
}
}
}

View File

@@ -0,0 +1,135 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeOnlineRecordResponse : AbstractModel
{
/// <summary>
/// 录制结束原因,
/// - AUTO: 房间内长时间没有音视频上行及白板操作导致自动停止录制
/// - USER_CALL: 主动调用了停止录制接口
/// - EXCEPTION: 录制异常结束
/// </summary>
[JsonProperty("FinishReason")]
public string FinishReason{ get; set; }
/// <summary>
/// 需要查询结果的录制任务Id
/// </summary>
[JsonProperty("TaskId")]
public string TaskId{ get; set; }
/// <summary>
/// 录制任务状态
/// - PREPARED: 表示录制正在准备中(进房/启动录制服务等操作)
/// - RECORDING: 表示录制已开始
/// - PAUSED: 表示录制已暂停
/// - STOPPED: 表示录制已停止,正在处理并上传视频
/// - FINISHED: 表示视频处理并上传完成,成功生成录制结果
/// </summary>
[JsonProperty("Status")]
public string Status{ get; set; }
/// <summary>
/// 房间号
/// </summary>
[JsonProperty("RoomId")]
public long? RoomId{ get; set; }
/// <summary>
/// 白板的群组 Id
/// </summary>
[JsonProperty("GroupId")]
public string GroupId{ get; set; }
/// <summary>
/// 录制用户Id
/// </summary>
[JsonProperty("RecordUserId")]
public string RecordUserId{ get; set; }
/// <summary>
/// 实际开始录制时间Unix 时间戳,单位秒
/// </summary>
[JsonProperty("RecordStartTime")]
public long? RecordStartTime{ get; set; }
/// <summary>
/// 实际停止录制时间Unix 时间戳,单位秒
/// </summary>
[JsonProperty("RecordStopTime")]
public long? RecordStopTime{ get; set; }
/// <summary>
/// 回放视频总时长(单位:毫秒)
/// </summary>
[JsonProperty("TotalTime")]
public long? TotalTime{ get; set; }
/// <summary>
/// 录制过程中出现异常的次数
/// </summary>
[JsonProperty("ExceptionCnt")]
public long? ExceptionCnt{ get; set; }
/// <summary>
/// 拼接视频中被忽略的时间段,只有开启视频拼接功能的时候,这个参数才是有效的
/// </summary>
[JsonProperty("OmittedDurations")]
public OmittedDuration[] OmittedDurations{ get; set; }
/// <summary>
/// 录制视频列表
/// </summary>
[JsonProperty("VideoInfos")]
public VideoInfo[] VideoInfos{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "FinishReason", this.FinishReason);
this.SetParamSimple(map, prefix + "TaskId", this.TaskId);
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "RoomId", this.RoomId);
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
this.SetParamSimple(map, prefix + "RecordUserId", this.RecordUserId);
this.SetParamSimple(map, prefix + "RecordStartTime", this.RecordStartTime);
this.SetParamSimple(map, prefix + "RecordStopTime", this.RecordStopTime);
this.SetParamSimple(map, prefix + "TotalTime", this.TotalTime);
this.SetParamSimple(map, prefix + "ExceptionCnt", this.ExceptionCnt);
this.SetParamArrayObj(map, prefix + "OmittedDurations.", this.OmittedDurations);
this.SetParamArrayObj(map, prefix + "VideoInfos.", this.VideoInfos);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeTranscodeCallbackRequest : AbstractModel
{
/// <summary>
/// 应用的SdkAppId
/// </summary>
[JsonProperty("SdkAppId")]
public long? SdkAppId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SdkAppId", this.SdkAppId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeTranscodeCallbackResponse : AbstractModel
{
/// <summary>
/// 文档转码回调地址
/// </summary>
[JsonProperty("Callback")]
public string Callback{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Callback", this.Callback);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeTranscodeRequest : AbstractModel
{
/// <summary>
/// 客户的SdkAppId
/// </summary>
[JsonProperty("SdkAppId")]
public long? SdkAppId{ get; set; }
/// <summary>
/// 文档转码任务的唯一标识Id
/// </summary>
[JsonProperty("TaskId")]
public string TaskId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SdkAppId", this.SdkAppId);
this.SetParamSimple(map, prefix + "TaskId", this.TaskId);
}
}
}

View File

@@ -0,0 +1,122 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeTranscodeResponse : AbstractModel
{
/// <summary>
/// 文档的总页数
/// </summary>
[JsonProperty("Pages")]
public long? Pages{ get; set; }
/// <summary>
/// 转码的当前进度,取值范围为0~100
/// </summary>
[JsonProperty("Progress")]
public long? Progress{ get; set; }
/// <summary>
/// 文档的分辨率
/// </summary>
[JsonProperty("Resolution")]
public string Resolution{ get; set; }
/// <summary>
/// 转码完成后结果的URL
/// 动态转码PPT转动态H5的链接
/// 静态转码文档每一页的图片URL前缀比如该URL前缀为`http://example.com/g0jb42ps49vtebjshilb/`那么文档第1页的图片URL为
/// `http://example.com/g0jb42ps49vtebjshilb/1.jpg`,其它页以此类推
/// </summary>
[JsonProperty("ResultUrl")]
public string ResultUrl{ get; set; }
/// <summary>
/// 任务的当前状态
/// - QUEUED: 正在排队等待转换
/// - PROCESSING: 转换中
/// - FINISHED: 转换完成
/// </summary>
[JsonProperty("Status")]
public string Status{ get; set; }
/// <summary>
/// 转码任务的唯一标识Id
/// </summary>
[JsonProperty("TaskId")]
public string TaskId{ get; set; }
/// <summary>
/// 文档的文件名
/// </summary>
[JsonProperty("Title")]
public string Title{ get; set; }
/// <summary>
/// 缩略图URL前缀比如该URL前缀为`http://example.com/g0jb42ps49vtebjshilb/ `那么动态PPT第1页的缩略图URL为
/// `http://example.com/g0jb42ps49vtebjshilb/1.jpg`,其它页以此类推
///
/// 如果发起文档转码请求参数中带了ThumbnailResolution参数并且转码类型为动态转码该参数不为空其余情况该参数为空字符串
/// </summary>
[JsonProperty("ThumbnailUrl")]
public string ThumbnailUrl{ get; set; }
/// <summary>
/// 动态转码缩略图生成分辨率
/// </summary>
[JsonProperty("ThumbnailResolution")]
public string ThumbnailResolution{ get; set; }
/// <summary>
/// 转码压缩文件下载的URL如果发起文档转码请求参数中`CompressFileType`为空或者不是支持的压缩格式,该参数为空字符串
/// </summary>
[JsonProperty("CompressFileUrl")]
public string CompressFileUrl{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Pages", this.Pages);
this.SetParamSimple(map, prefix + "Progress", this.Progress);
this.SetParamSimple(map, prefix + "Resolution", this.Resolution);
this.SetParamSimple(map, prefix + "ResultUrl", this.ResultUrl);
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "TaskId", this.TaskId);
this.SetParamSimple(map, prefix + "Title", this.Title);
this.SetParamSimple(map, prefix + "ThumbnailUrl", this.ThumbnailUrl);
this.SetParamSimple(map, prefix + "ThumbnailResolution", this.ThumbnailResolution);
this.SetParamSimple(map, prefix + "CompressFileUrl", this.CompressFileUrl);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class LayoutParams : AbstractModel
{
/// <summary>
/// 流画面宽,取值范围[2,3000]
/// </summary>
[JsonProperty("Width")]
public long? Width{ get; set; }
/// <summary>
/// 流画面高,取值范围[2,3000]
/// </summary>
[JsonProperty("Height")]
public long? Height{ get; set; }
/// <summary>
/// 当前画面左上角顶点相对于Canvas左上角顶点的x轴偏移量默认为0取值范围[0,3000]
/// </summary>
[JsonProperty("X")]
public long? X{ get; set; }
/// <summary>
/// 当前画面左上角顶点相对于Canvas左上角顶点的y轴偏移量默认为0 取值范围[0,3000]
/// </summary>
[JsonProperty("Y")]
public long? Y{ get; set; }
/// <summary>
/// 画面z轴位置默认为0
/// z轴确定了重叠画面的遮盖顺序z轴值大的画面处于顶层
/// </summary>
[JsonProperty("ZOrder")]
public long? ZOrder{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Width", this.Width);
this.SetParamSimple(map, prefix + "Height", this.Height);
this.SetParamSimple(map, prefix + "X", this.X);
this.SetParamSimple(map, prefix + "Y", this.Y);
this.SetParamSimple(map, prefix + "ZOrder", this.ZOrder);
}
}
}

View File

@@ -0,0 +1,75 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class MixStream : AbstractModel
{
/// <summary>
/// 是否开启混流
/// </summary>
[JsonProperty("Enabled")]
public bool? Enabled{ get; set; }
/// <summary>
/// 是否禁用音频混流
/// </summary>
[JsonProperty("DisableAudio")]
public bool? DisableAudio{ get; set; }
/// <summary>
/// 内置混流布局模板ID, 取值 [1, 2], 区别见内置混流布局模板样式示例说明
/// 在没有填Custom字段时候ModelId是必填的
/// </summary>
[JsonProperty("ModelId")]
public long? ModelId{ get; set; }
/// <summary>
/// 老师用户ID
/// 此字段只有在ModelId填了的情况下生效
/// 填写TeacherId的效果是把指定为TeacherId的用户视频流显示在内置模板的第一个小画面中
/// </summary>
[JsonProperty("TeacherId")]
public string TeacherId{ get; set; }
/// <summary>
/// 自定义混流布局参数
/// 当此字段存在时ModelId 及 TeacherId 字段将被忽略
/// </summary>
[JsonProperty("Custom")]
public CustomLayout Custom{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Enabled", this.Enabled);
this.SetParamSimple(map, prefix + "DisableAudio", this.DisableAudio);
this.SetParamSimple(map, prefix + "ModelId", this.ModelId);
this.SetParamSimple(map, prefix + "TeacherId", this.TeacherId);
this.SetParamObj(map, prefix + "Custom.", this.Custom);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class OmittedDuration : AbstractModel
{
/// <summary>
/// 录制暂停时间戳对应的视频播放时间(单位: 毫秒)
/// </summary>
[JsonProperty("VideoTime")]
public long? VideoTime{ get; set; }
/// <summary>
/// 录制暂停时间戳(单位: 毫秒)
/// </summary>
[JsonProperty("PauseTime")]
public long? PauseTime{ get; set; }
/// <summary>
/// 录制恢复时间戳(单位: 毫秒)
/// </summary>
[JsonProperty("ResumeTime")]
public long? ResumeTime{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "VideoTime", this.VideoTime);
this.SetParamSimple(map, prefix + "PauseTime", this.PauseTime);
this.SetParamSimple(map, prefix + "ResumeTime", this.ResumeTime);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PauseOnlineRecordRequest : AbstractModel
{
/// <summary>
/// 客户的SdkAppId
/// </summary>
[JsonProperty("SdkAppId")]
public long? SdkAppId{ get; set; }
/// <summary>
/// 实时录制任务 Id
/// </summary>
[JsonProperty("TaskId")]
public string TaskId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SdkAppId", this.SdkAppId);
this.SetParamSimple(map, prefix + "TaskId", this.TaskId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PauseOnlineRecordResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ResumeOnlineRecordRequest : AbstractModel
{
/// <summary>
/// 客户的SdkAppId
/// </summary>
[JsonProperty("SdkAppId")]
public long? SdkAppId{ get; set; }
/// <summary>
/// 恢复录制的实时录制任务 Id
/// </summary>
[JsonProperty("TaskId")]
public string TaskId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SdkAppId", this.SdkAppId);
this.SetParamSimple(map, prefix + "TaskId", this.TaskId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ResumeOnlineRecordResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SetOnlineRecordCallbackRequest : AbstractModel
{
/// <summary>
/// 客户的SdkAppId
/// </summary>
[JsonProperty("SdkAppId")]
public long? SdkAppId{ get; set; }
/// <summary>
/// 实时录制任务结果回调地址,如果传空字符串会删除原来的回调地址配置,回调地址仅支持 http或https协议即回调地址以http://或https://开头
/// </summary>
[JsonProperty("Callback")]
public string Callback{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SdkAppId", this.SdkAppId);
this.SetParamSimple(map, prefix + "Callback", this.Callback);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SetOnlineRecordCallbackResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SetTranscodeCallbackRequest : AbstractModel
{
/// <summary>
/// 客户的SdkAppId
/// </summary>
[JsonProperty("SdkAppId")]
public long? SdkAppId{ get; set; }
/// <summary>
/// 文档转码进度回调地址如果传空字符串会删除原来的回调地址配置回调地址仅支持http或https协议即回调地址以http://或https://开头
/// </summary>
[JsonProperty("Callback")]
public string Callback{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SdkAppId", this.SdkAppId);
this.SetParamSimple(map, prefix + "Callback", this.Callback);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class SetTranscodeCallbackResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,112 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class StartOnlineRecordRequest : AbstractModel
{
/// <summary>
/// 客户的SdkAppId
/// </summary>
[JsonProperty("SdkAppId")]
public long? SdkAppId{ get; set; }
/// <summary>
/// 需要录制的房间号
/// </summary>
[JsonProperty("RoomId")]
public long? RoomId{ get; set; }
/// <summary>
/// 用于实时录制服务进房的用户Id格式为`tic_record_user_${RoomId}_${Random}`,其中 `${RoomId}` 与录制房间号对应,`${Random}`为一个随机字符串。
/// 实时录制服务会使用这个用户Id进房进行录制房间内的音视频与白板为了防止进房冲突请保证此 用户Id不重复
/// </summary>
[JsonProperty("RecordUserId")]
public string RecordUserId{ get; set; }
/// <summary>
/// 与RecordUserId对应的签名
/// </summary>
[JsonProperty("RecordUserSig")]
public string RecordUserSig{ get; set; }
/// <summary>
/// 白板的 IM 群组 Id默认同房间号
/// </summary>
[JsonProperty("GroupId")]
public string GroupId{ get; set; }
/// <summary>
/// 实时录制视频拼接参数
/// </summary>
[JsonProperty("Concat")]
public Concat Concat{ get; set; }
/// <summary>
/// 实时录制白板参数,例如白板宽高等
/// </summary>
[JsonProperty("Whiteboard")]
public Whiteboard Whiteboard{ get; set; }
/// <summary>
/// 实时录制混流参数
/// 特别说明:
/// 1. 混流功能需要根据额外开通, 请联系腾讯云互动白板客服人员
/// 2. 使用混流功能,必须提供 Extras 参数,且 Extras 参数中必须包含 "MIX_STREAM"
/// </summary>
[JsonProperty("MixStream")]
public MixStream MixStream{ get; set; }
/// <summary>
/// 使用到的高级功能列表
/// 可以选值列表:
/// MIX_STREAM - 混流功能
/// </summary>
[JsonProperty("Extras")]
public string[] Extras{ get; set; }
/// <summary>
/// 是否需要在结果回调中返回各路流的纯音频录制文件文件格式为mp3
/// </summary>
[JsonProperty("AudioFileNeeded")]
public bool? AudioFileNeeded{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SdkAppId", this.SdkAppId);
this.SetParamSimple(map, prefix + "RoomId", this.RoomId);
this.SetParamSimple(map, prefix + "RecordUserId", this.RecordUserId);
this.SetParamSimple(map, prefix + "RecordUserSig", this.RecordUserSig);
this.SetParamSimple(map, prefix + "GroupId", this.GroupId);
this.SetParamObj(map, prefix + "Concat.", this.Concat);
this.SetParamObj(map, prefix + "Whiteboard.", this.Whiteboard);
this.SetParamObj(map, prefix + "MixStream.", this.MixStream);
this.SetParamArraySimple(map, prefix + "Extras.", this.Extras);
this.SetParamSimple(map, prefix + "AudioFileNeeded", this.AudioFileNeeded);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class StartOnlineRecordResponse : AbstractModel
{
/// <summary>
/// 实时录制的任务Id
/// </summary>
[JsonProperty("TaskId")]
public string TaskId{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "TaskId", this.TaskId);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class StopOnlineRecordRequest : AbstractModel
{
/// <summary>
/// 客户的SdkAppId
/// </summary>
[JsonProperty("SdkAppId")]
public long? SdkAppId{ get; set; }
/// <summary>
/// 需要停止录制的任务 Id
/// </summary>
[JsonProperty("TaskId")]
public string TaskId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "SdkAppId", this.SdkAppId);
this.SetParamSimple(map, prefix + "TaskId", this.TaskId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class StopOnlineRecordResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class StreamLayout : AbstractModel
{
/// <summary>
/// 流布局配置参数
/// </summary>
[JsonProperty("LayoutParams")]
public LayoutParams LayoutParams{ get; set; }
/// <summary>
/// 视频流ID
/// 流ID的取值含义如下
/// 1. tic_record_user - 表示当前画面用于显示白板视频流
/// 2. tic_substream - 表示当前画面用于显示辅路视频流
/// 3. 特定用户ID - 表示当前画面用于显示指定用户的视频流
/// 4. 不填 - 表示当前画面用于备选,当有新的视频流加入时,会从这些备选的空位中选择一个没有被占用的位置来显示新的视频流画面
/// </summary>
[JsonProperty("InputStreamId")]
public string InputStreamId{ get; set; }
/// <summary>
/// 背景颜色默认为黑色格式为RGB格式如红色为"#FF0000"
/// </summary>
[JsonProperty("BackgroundColor")]
public string BackgroundColor{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamObj(map, prefix + "LayoutParams.", this.LayoutParams);
this.SetParamSimple(map, prefix + "InputStreamId", this.InputStreamId);
this.SetParamSimple(map, prefix + "BackgroundColor", this.BackgroundColor);
}
}
}

View File

@@ -0,0 +1,97 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class VideoInfo : AbstractModel
{
/// <summary>
/// 视频开始播放的时间(单位:毫秒)
/// </summary>
[JsonProperty("VideoPlayTime")]
public long? VideoPlayTime{ get; set; }
/// <summary>
/// 视频大小(字节)
/// </summary>
[JsonProperty("VideoSize")]
public long? VideoSize{ get; set; }
/// <summary>
/// 视频格式
/// </summary>
[JsonProperty("VideoFormat")]
public string VideoFormat{ get; set; }
/// <summary>
/// 视频播放时长(单位:毫秒)
/// </summary>
[JsonProperty("VideoDuration")]
public long? VideoDuration{ get; set; }
/// <summary>
/// 视频文件URL
/// </summary>
[JsonProperty("VideoUrl")]
public string VideoUrl{ get; set; }
/// <summary>
/// 视频文件Id
/// </summary>
[JsonProperty("VideoId")]
public string VideoId{ get; set; }
/// <summary>
/// 视频流类型
/// - 0摄像头视频
/// - 1屏幕分享视频
/// - 2白板视频
/// - 3混流视频
/// - 4纯音频mp3)
/// </summary>
[JsonProperty("VideoType")]
public long? VideoType{ get; set; }
/// <summary>
/// 摄像头/屏幕分享视频所属用户的 Id白板视频为空、混流视频tic_mixstream_房间号_混流布局类型、辅路视频tic_substream_用户Id
/// </summary>
[JsonProperty("UserId")]
public string UserId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "VideoPlayTime", this.VideoPlayTime);
this.SetParamSimple(map, prefix + "VideoSize", this.VideoSize);
this.SetParamSimple(map, prefix + "VideoFormat", this.VideoFormat);
this.SetParamSimple(map, prefix + "VideoDuration", this.VideoDuration);
this.SetParamSimple(map, prefix + "VideoUrl", this.VideoUrl);
this.SetParamSimple(map, prefix + "VideoId", this.VideoId);
this.SetParamSimple(map, prefix + "VideoType", this.VideoType);
this.SetParamSimple(map, prefix + "UserId", this.UserId);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* Copyright (c) 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.Tiw.V20190919.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Whiteboard : AbstractModel
{
/// <summary>
/// 实时录制结果里白板视频宽默认为1280
/// </summary>
[JsonProperty("Width")]
public long? Width{ get; set; }
/// <summary>
/// 实时录制结果里白板视频高默认为960
/// </summary>
[JsonProperty("Height")]
public long? Height{ get; set; }
/// <summary>
/// 白板初始化参数,透传到白板 SDK
/// </summary>
[JsonProperty("InitParam")]
public string InitParam{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Width", this.Width);
this.SetParamSimple(map, prefix + "Height", this.Height);
this.SetParamSimple(map, prefix + "InitParam", this.InitParam);
}
}
}

View File

@@ -0,0 +1,496 @@
/*
* Copyright (c) 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.Tiw.V20190919
{
using Newtonsoft.Json;
using System.Threading.Tasks;
using TencentCloud.Common;
using TencentCloud.Common.Profile;
using TencentCloud.Tiw.V20190919.Models;
public class TiwClient : AbstractClient{
private const string endpoint = "tiw.tencentcloudapi.com";
private const string version = "2019-09-19";
/// <summary>
/// Client constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
public TiwClient(Credential credential, string region)
: this(credential, region, new ClientProfile())
{
}
/// <summary>
/// Client Constructor.
/// </summary>
/// <param name="credential">Credentials.</param>
/// <param name="region">Region name, such as "ap-guangzhou".</param>
/// <param name="profile">Client profiles.</param>
public TiwClient(Credential credential, string region, ClientProfile profile)
: base(endpoint, version, credential, region, profile)
{
}
/// <summary>
/// 创建一个文档转码任务
/// </summary>
/// <param name="req"><see cref="CreateTranscodeRequest"/></param>
/// <returns><see cref="CreateTranscodeResponse"/></returns>
public async Task<CreateTranscodeResponse> CreateTranscode(CreateTranscodeRequest req)
{
JsonResponseModel<CreateTranscodeResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "CreateTranscode");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CreateTranscodeResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 创建一个文档转码任务
/// </summary>
/// <param name="req"><see cref="CreateTranscodeRequest"/></param>
/// <returns><see cref="CreateTranscodeResponse"/></returns>
public CreateTranscodeResponse CreateTranscodeSync(CreateTranscodeRequest req)
{
JsonResponseModel<CreateTranscodeResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "CreateTranscode");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<CreateTranscodeResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询实时录制任务状态与结果
/// </summary>
/// <param name="req"><see cref="DescribeOnlineRecordRequest"/></param>
/// <returns><see cref="DescribeOnlineRecordResponse"/></returns>
public async Task<DescribeOnlineRecordResponse> DescribeOnlineRecord(DescribeOnlineRecordRequest req)
{
JsonResponseModel<DescribeOnlineRecordResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeOnlineRecord");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeOnlineRecordResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询实时录制任务状态与结果
/// </summary>
/// <param name="req"><see cref="DescribeOnlineRecordRequest"/></param>
/// <returns><see cref="DescribeOnlineRecordResponse"/></returns>
public DescribeOnlineRecordResponse DescribeOnlineRecordSync(DescribeOnlineRecordRequest req)
{
JsonResponseModel<DescribeOnlineRecordResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeOnlineRecord");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeOnlineRecordResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询实时录制回调地址
/// </summary>
/// <param name="req"><see cref="DescribeOnlineRecordCallbackRequest"/></param>
/// <returns><see cref="DescribeOnlineRecordCallbackResponse"/></returns>
public async Task<DescribeOnlineRecordCallbackResponse> DescribeOnlineRecordCallback(DescribeOnlineRecordCallbackRequest req)
{
JsonResponseModel<DescribeOnlineRecordCallbackResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeOnlineRecordCallback");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeOnlineRecordCallbackResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询实时录制回调地址
/// </summary>
/// <param name="req"><see cref="DescribeOnlineRecordCallbackRequest"/></param>
/// <returns><see cref="DescribeOnlineRecordCallbackResponse"/></returns>
public DescribeOnlineRecordCallbackResponse DescribeOnlineRecordCallbackSync(DescribeOnlineRecordCallbackRequest req)
{
JsonResponseModel<DescribeOnlineRecordCallbackResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeOnlineRecordCallback");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeOnlineRecordCallbackResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询文档转码任务的执行进度与转码结果
/// </summary>
/// <param name="req"><see cref="DescribeTranscodeRequest"/></param>
/// <returns><see cref="DescribeTranscodeResponse"/></returns>
public async Task<DescribeTranscodeResponse> DescribeTranscode(DescribeTranscodeRequest req)
{
JsonResponseModel<DescribeTranscodeResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeTranscode");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeTranscodeResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询文档转码任务的执行进度与转码结果
/// </summary>
/// <param name="req"><see cref="DescribeTranscodeRequest"/></param>
/// <returns><see cref="DescribeTranscodeResponse"/></returns>
public DescribeTranscodeResponse DescribeTranscodeSync(DescribeTranscodeRequest req)
{
JsonResponseModel<DescribeTranscodeResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeTranscode");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeTranscodeResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询文档转码回调地址
/// </summary>
/// <param name="req"><see cref="DescribeTranscodeCallbackRequest"/></param>
/// <returns><see cref="DescribeTranscodeCallbackResponse"/></returns>
public async Task<DescribeTranscodeCallbackResponse> DescribeTranscodeCallback(DescribeTranscodeCallbackRequest req)
{
JsonResponseModel<DescribeTranscodeCallbackResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "DescribeTranscodeCallback");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeTranscodeCallbackResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 查询文档转码回调地址
/// </summary>
/// <param name="req"><see cref="DescribeTranscodeCallbackRequest"/></param>
/// <returns><see cref="DescribeTranscodeCallbackResponse"/></returns>
public DescribeTranscodeCallbackResponse DescribeTranscodeCallbackSync(DescribeTranscodeCallbackRequest req)
{
JsonResponseModel<DescribeTranscodeCallbackResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "DescribeTranscodeCallback");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeTranscodeCallbackResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 暂停实时录制
/// </summary>
/// <param name="req"><see cref="PauseOnlineRecordRequest"/></param>
/// <returns><see cref="PauseOnlineRecordResponse"/></returns>
public async Task<PauseOnlineRecordResponse> PauseOnlineRecord(PauseOnlineRecordRequest req)
{
JsonResponseModel<PauseOnlineRecordResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "PauseOnlineRecord");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<PauseOnlineRecordResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 暂停实时录制
/// </summary>
/// <param name="req"><see cref="PauseOnlineRecordRequest"/></param>
/// <returns><see cref="PauseOnlineRecordResponse"/></returns>
public PauseOnlineRecordResponse PauseOnlineRecordSync(PauseOnlineRecordRequest req)
{
JsonResponseModel<PauseOnlineRecordResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "PauseOnlineRecord");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<PauseOnlineRecordResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 恢复实时录制
/// </summary>
/// <param name="req"><see cref="ResumeOnlineRecordRequest"/></param>
/// <returns><see cref="ResumeOnlineRecordResponse"/></returns>
public async Task<ResumeOnlineRecordResponse> ResumeOnlineRecord(ResumeOnlineRecordRequest req)
{
JsonResponseModel<ResumeOnlineRecordResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "ResumeOnlineRecord");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ResumeOnlineRecordResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 恢复实时录制
/// </summary>
/// <param name="req"><see cref="ResumeOnlineRecordRequest"/></param>
/// <returns><see cref="ResumeOnlineRecordResponse"/></returns>
public ResumeOnlineRecordResponse ResumeOnlineRecordSync(ResumeOnlineRecordRequest req)
{
JsonResponseModel<ResumeOnlineRecordResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "ResumeOnlineRecord");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<ResumeOnlineRecordResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 设置实时录制回调地址
/// </summary>
/// <param name="req"><see cref="SetOnlineRecordCallbackRequest"/></param>
/// <returns><see cref="SetOnlineRecordCallbackResponse"/></returns>
public async Task<SetOnlineRecordCallbackResponse> SetOnlineRecordCallback(SetOnlineRecordCallbackRequest req)
{
JsonResponseModel<SetOnlineRecordCallbackResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "SetOnlineRecordCallback");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<SetOnlineRecordCallbackResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 设置实时录制回调地址
/// </summary>
/// <param name="req"><see cref="SetOnlineRecordCallbackRequest"/></param>
/// <returns><see cref="SetOnlineRecordCallbackResponse"/></returns>
public SetOnlineRecordCallbackResponse SetOnlineRecordCallbackSync(SetOnlineRecordCallbackRequest req)
{
JsonResponseModel<SetOnlineRecordCallbackResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "SetOnlineRecordCallback");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<SetOnlineRecordCallbackResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 设置文档转码回调地址
/// </summary>
/// <param name="req"><see cref="SetTranscodeCallbackRequest"/></param>
/// <returns><see cref="SetTranscodeCallbackResponse"/></returns>
public async Task<SetTranscodeCallbackResponse> SetTranscodeCallback(SetTranscodeCallbackRequest req)
{
JsonResponseModel<SetTranscodeCallbackResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "SetTranscodeCallback");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<SetTranscodeCallbackResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 设置文档转码回调地址
/// </summary>
/// <param name="req"><see cref="SetTranscodeCallbackRequest"/></param>
/// <returns><see cref="SetTranscodeCallbackResponse"/></returns>
public SetTranscodeCallbackResponse SetTranscodeCallbackSync(SetTranscodeCallbackRequest req)
{
JsonResponseModel<SetTranscodeCallbackResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "SetTranscodeCallback");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<SetTranscodeCallbackResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 发起一个实时录制任务
/// </summary>
/// <param name="req"><see cref="StartOnlineRecordRequest"/></param>
/// <returns><see cref="StartOnlineRecordResponse"/></returns>
public async Task<StartOnlineRecordResponse> StartOnlineRecord(StartOnlineRecordRequest req)
{
JsonResponseModel<StartOnlineRecordResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "StartOnlineRecord");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<StartOnlineRecordResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 发起一个实时录制任务
/// </summary>
/// <param name="req"><see cref="StartOnlineRecordRequest"/></param>
/// <returns><see cref="StartOnlineRecordResponse"/></returns>
public StartOnlineRecordResponse StartOnlineRecordSync(StartOnlineRecordRequest req)
{
JsonResponseModel<StartOnlineRecordResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "StartOnlineRecord");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<StartOnlineRecordResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 停止实时录制
/// </summary>
/// <param name="req"><see cref="StopOnlineRecordRequest"/></param>
/// <returns><see cref="StopOnlineRecordResponse"/></returns>
public async Task<StopOnlineRecordResponse> StopOnlineRecord(StopOnlineRecordRequest req)
{
JsonResponseModel<StopOnlineRecordResponse> rsp = null;
try
{
var strResp = await this.InternalRequest(req, "StopOnlineRecord");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<StopOnlineRecordResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
/// <summary>
/// 停止实时录制
/// </summary>
/// <param name="req"><see cref="StopOnlineRecordRequest"/></param>
/// <returns><see cref="StopOnlineRecordResponse"/></returns>
public StopOnlineRecordResponse StopOnlineRecordSync(StopOnlineRecordRequest req)
{
JsonResponseModel<StopOnlineRecordResponse> rsp = null;
try
{
var strResp = this.InternalRequestSync(req, "StopOnlineRecord");
rsp = JsonConvert.DeserializeObject<JsonResponseModel<StopOnlineRecordResponse>>(strResp);
}
catch (JsonSerializationException e)
{
throw new TencentCloudSDKException(e.Message);
}
return rsp.Response;
}
}
}