/* * 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.Live.V20180801 { using Newtonsoft.Json; using System.Threading.Tasks; using TencentCloud.Common; using TencentCloud.Common.Profile; using TencentCloud.Live.V20180801.Models; public class LiveClient : AbstractClient{ private const string endpoint = "live.tencentcloudapi.com"; private const string version = "2018-08-01"; /// /// Client constructor. /// /// Credentials. /// Region name, such as "ap-guangzhou". public LiveClient(Credential credential, string region) : this(credential, region, new ClientProfile()) { } /// /// Client Constructor. /// /// Credentials. /// Region name, such as "ap-guangzhou". /// Client profiles. public LiveClient(Credential credential, string region, ClientProfile profile) : base(endpoint, version, credential, region, profile) { } /// /// 对流设置延播时间 /// 注意:如果在推流前设置延播,需要提前5分钟设置。 /// 目前该接口只支持流粒度的,域名及应用粒度功能支持当前开发中。 /// /// /// public async Task AddDelayLiveStream(AddDelayLiveStreamRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "AddDelayLiveStream"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 对流设置延播时间 /// 注意:如果在推流前设置延播,需要提前5分钟设置。 /// 目前该接口只支持流粒度的,域名及应用粒度功能支持当前开发中。 /// /// /// public AddDelayLiveStreamResponse AddDelayLiveStreamSync(AddDelayLiveStreamRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "AddDelayLiveStream"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加域名,一次只能提交一个域名。域名必须已备案。 /// /// /// public async Task AddLiveDomain(AddLiveDomainRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "AddLiveDomain"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加域名,一次只能提交一个域名。域名必须已备案。 /// /// /// public AddLiveDomainResponse AddLiveDomainSync(AddLiveDomainRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "AddLiveDomain"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加水印,成功返回水印 ID 后,需要调用[CreateLiveWatermarkRule](/document/product/267/32629)接口将水印 ID 绑定到流使用。 /// /// /// public async Task AddLiveWatermark(AddLiveWatermarkRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "AddLiveWatermark"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加水印,成功返回水印 ID 后,需要调用[CreateLiveWatermarkRule](/document/product/267/32629)接口将水印 ID 绑定到流使用。 /// /// /// public AddLiveWatermarkResponse AddLiveWatermarkSync(AddLiveWatermarkRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "AddLiveWatermark"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 域名绑定证书。 /// 注意:需先调用添加证书接口进行证书添加。获取到证书Id后再调用该接口进行绑定。 /// /// /// public async Task BindLiveDomainCert(BindLiveDomainCertRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "BindLiveDomainCert"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 域名绑定证书。 /// 注意:需先调用添加证书接口进行证书添加。获取到证书Id后再调用该接口进行绑定。 /// /// /// public BindLiveDomainCertResponse BindLiveDomainCertSync(BindLiveDomainCertRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "BindLiveDomainCert"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 该接口用来取消混流。用法与 mix_streamv2.cancel_mix_stream 基本一致。 /// /// /// public async Task CancelCommonMixStream(CancelCommonMixStreamRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CancelCommonMixStream"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 该接口用来取消混流。用法与 mix_streamv2.cancel_mix_stream 基本一致。 /// /// /// public CancelCommonMixStreamResponse CancelCommonMixStreamSync(CancelCommonMixStreamRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CancelCommonMixStream"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 该接口用来创建通用混流。用法与旧接口 mix_streamv2.start_mix_stream_advanced 基本一致。 /// 注意:当前最多支持16路混流。 /// /// /// public async Task CreateCommonMixStream(CreateCommonMixStreamRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateCommonMixStream"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 该接口用来创建通用混流。用法与旧接口 mix_streamv2.start_mix_stream_advanced 基本一致。 /// 注意:当前最多支持16路混流。 /// /// /// public CreateCommonMixStreamResponse CreateCommonMixStreamSync(CreateCommonMixStreamRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateCommonMixStream"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建回调规则,需要先调用[CreateLiveCallbackTemplate](/document/product/267/32637)接口创建回调模板,将返回的模板id绑定到域名/路径进行使用。 ///
回调协议相关文档:[事件消息通知](/document/product/267/32744)。 ///
/// /// public async Task CreateLiveCallbackRule(CreateLiveCallbackRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateLiveCallbackRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建回调规则,需要先调用[CreateLiveCallbackTemplate](/document/product/267/32637)接口创建回调模板,将返回的模板id绑定到域名/路径进行使用。 ///
回调协议相关文档:[事件消息通知](/document/product/267/32744)。 ///
/// /// public CreateLiveCallbackRuleResponse CreateLiveCallbackRuleSync(CreateLiveCallbackRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateLiveCallbackRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建回调模板,成功返回模板id后,需要调用[CreateLiveCallbackRule](/document/product/267/32638)接口将模板 ID 绑定到域名/路径使用。 ///
回调协议相关文档:[事件消息通知](/document/product/267/32744)。 ///
/// /// public async Task CreateLiveCallbackTemplate(CreateLiveCallbackTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateLiveCallbackTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建回调模板,成功返回模板id后,需要调用[CreateLiveCallbackRule](/document/product/267/32638)接口将模板 ID 绑定到域名/路径使用。 ///
回调协议相关文档:[事件消息通知](/document/product/267/32744)。 ///
/// /// public CreateLiveCallbackTemplateResponse CreateLiveCallbackTemplateSync(CreateLiveCallbackTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateLiveCallbackTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加证书 /// /// /// public async Task CreateLiveCert(CreateLiveCertRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateLiveCert"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 添加证书 /// /// /// public CreateLiveCertResponse CreateLiveCertSync(CreateLiveCertRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateLiveCert"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// - 使用前提 /// 1. 录制文件存放于点播平台,所以用户如需使用录制功能,需首先自行开通点播服务。 /// 2. 录制文件存放后相关费用(含存储以及下行播放流量)按照点播平台计费方式收取,具体请参考 [对应文档](https://cloud.tencent.com/document/product/266/2838)。 /// /// - 模式说明 /// 该接口支持两种录制模式: /// 1. 定时录制模式【默认模式】。 /// 需要传入开始时间与结束时间,录制任务根据时间自动开始与结束。 /// 2. 实时视频录制模式。 /// 忽略传入的开始时间,在录制任务创建后立即开始录制,录制时长支持最大为30分钟,如果传入的结束时间与当前时间差大于30分钟,则按30分钟计算,实时视频录制主要用于录制精彩视频场景,时长建议控制在5分钟以内。 /// /// - 注意事项 /// 1. 调用接口超时设置应大于3秒,小于3秒重试以及频繁调用都有可能产生重复录制任务。 /// 2. 受限于音视频文件格式(FLV/MP4/HLS)对编码类型的支持,视频编码类型支持 H.264,音频编码类型支持 AAC。 /// 3. 为避免恶意或非主观的频繁 API 请求,对定时录制模式最大创建任务数做了限制:其中,当天可以创建的最大任务数不超过4000(不含已删除的任务);当前时刻并发运行的任务数不超过400。有超出此限制的需要提工单申请。 /// /// /// public async Task CreateLiveRecord(CreateLiveRecordRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateLiveRecord"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// - 使用前提 /// 1. 录制文件存放于点播平台,所以用户如需使用录制功能,需首先自行开通点播服务。 /// 2. 录制文件存放后相关费用(含存储以及下行播放流量)按照点播平台计费方式收取,具体请参考 [对应文档](https://cloud.tencent.com/document/product/266/2838)。 /// /// - 模式说明 /// 该接口支持两种录制模式: /// 1. 定时录制模式【默认模式】。 /// 需要传入开始时间与结束时间,录制任务根据时间自动开始与结束。 /// 2. 实时视频录制模式。 /// 忽略传入的开始时间,在录制任务创建后立即开始录制,录制时长支持最大为30分钟,如果传入的结束时间与当前时间差大于30分钟,则按30分钟计算,实时视频录制主要用于录制精彩视频场景,时长建议控制在5分钟以内。 /// /// - 注意事项 /// 1. 调用接口超时设置应大于3秒,小于3秒重试以及频繁调用都有可能产生重复录制任务。 /// 2. 受限于音视频文件格式(FLV/MP4/HLS)对编码类型的支持,视频编码类型支持 H.264,音频编码类型支持 AAC。 /// 3. 为避免恶意或非主观的频繁 API 请求,对定时录制模式最大创建任务数做了限制:其中,当天可以创建的最大任务数不超过4000(不含已删除的任务);当前时刻并发运行的任务数不超过400。有超出此限制的需要提工单申请。 /// /// /// public CreateLiveRecordResponse CreateLiveRecordSync(CreateLiveRecordRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateLiveRecord"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建录制规则,需要先调用[CreateLiveRecordTemplate](/document/product/267/32614)接口创建录制模板,将返回的模板id绑定到流使用。 ///
录制相关文档:[直播录制](/document/product/267/32739)。 ///
/// /// public async Task CreateLiveRecordRule(CreateLiveRecordRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateLiveRecordRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建录制规则,需要先调用[CreateLiveRecordTemplate](/document/product/267/32614)接口创建录制模板,将返回的模板id绑定到流使用。 ///
录制相关文档:[直播录制](/document/product/267/32739)。 ///
/// /// public CreateLiveRecordRuleResponse CreateLiveRecordRuleSync(CreateLiveRecordRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateLiveRecordRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建录制模板,成功返回模板id后,需要调用[CreateLiveRecordRule](/document/product/267/32615)接口,将模板id绑定到流进行使用。 ///
录制相关文档:[直播录制](/document/product/267/32739)。 ///
/// /// public async Task CreateLiveRecordTemplate(CreateLiveRecordTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateLiveRecordTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建录制模板,成功返回模板id后,需要调用[CreateLiveRecordRule](/document/product/267/32615)接口,将模板id绑定到流进行使用。 ///
录制相关文档:[直播录制](/document/product/267/32739)。 ///
/// /// public CreateLiveRecordTemplateResponse CreateLiveRecordTemplateSync(CreateLiveRecordTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateLiveRecordTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建截图规则,需要先调用[CreateLiveSnapshotTemplate](/document/product/267/32624)接口创建截图模板,然后将返回的模板 ID 绑定到流进行使用。 ///
截图相关文档:[直播截图](/document/product/267/32737)。 /// 注意:单个域名仅支持关联一个截图模板。 ///
/// /// public async Task CreateLiveSnapshotRule(CreateLiveSnapshotRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateLiveSnapshotRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建截图规则,需要先调用[CreateLiveSnapshotTemplate](/document/product/267/32624)接口创建截图模板,然后将返回的模板 ID 绑定到流进行使用。 ///
截图相关文档:[直播截图](/document/product/267/32737)。 /// 注意:单个域名仅支持关联一个截图模板。 ///
/// /// public CreateLiveSnapshotRuleResponse CreateLiveSnapshotRuleSync(CreateLiveSnapshotRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateLiveSnapshotRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建截图模板,成功返回模板id后,需要调用[CreateLiveSnapshotRule](/document/product/267/32625)接口,将模板id绑定到流使用。 ///
截图相关文档:[直播截图](/document/product/267/32737)。 ///
/// /// public async Task CreateLiveSnapshotTemplate(CreateLiveSnapshotTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateLiveSnapshotTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建截图模板,成功返回模板id后,需要调用[CreateLiveSnapshotRule](/document/product/267/32625)接口,将模板id绑定到流使用。 ///
截图相关文档:[直播截图](/document/product/267/32737)。 ///
/// /// public CreateLiveSnapshotTemplateResponse CreateLiveSnapshotTemplateSync(CreateLiveSnapshotTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateLiveSnapshotTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建转码规则,需要先调用[CreateLiveTranscodeTemplate](/document/product/267/32646)接口创建转码模板,将返回的模板id绑定到流使用。 ///
转码相关文档:[直播转封装及转码](/document/product/267/32736)。 ///
/// /// public async Task CreateLiveTranscodeRule(CreateLiveTranscodeRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateLiveTranscodeRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建转码规则,需要先调用[CreateLiveTranscodeTemplate](/document/product/267/32646)接口创建转码模板,将返回的模板id绑定到流使用。 ///
转码相关文档:[直播转封装及转码](/document/product/267/32736)。 ///
/// /// public CreateLiveTranscodeRuleResponse CreateLiveTranscodeRuleSync(CreateLiveTranscodeRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateLiveTranscodeRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建转码模板,成功返回模板id后,需要调用[CreateLiveTranscodeRule](/document/product/267/32647)接口,将返回的模板id绑定到流使用。 ///
转码相关文档:[直播转封装及转码](/document/product/267/32736)。 ///
/// /// public async Task CreateLiveTranscodeTemplate(CreateLiveTranscodeTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateLiveTranscodeTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建转码模板,成功返回模板id后,需要调用[CreateLiveTranscodeRule](/document/product/267/32647)接口,将返回的模板id绑定到流使用。 ///
转码相关文档:[直播转封装及转码](/document/product/267/32736)。 ///
/// /// public CreateLiveTranscodeTemplateResponse CreateLiveTranscodeTemplateSync(CreateLiveTranscodeTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateLiveTranscodeTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建水印规则,需要先调用[AddLiveWatermark](/document/product/267/30154)接口添加水印,将返回的水印id绑定到流使用。 /// /// /// public async Task CreateLiveWatermarkRule(CreateLiveWatermarkRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreateLiveWatermarkRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建水印规则,需要先调用[AddLiveWatermark](/document/product/267/30154)接口添加水印,将返回的水印id绑定到流使用。 /// /// /// public CreateLiveWatermarkRuleResponse CreateLiveWatermarkRuleSync(CreateLiveWatermarkRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreateLiveWatermarkRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建临时拉流转推任务,目前限制添加10条任务。 /// /// 注意:该接口用于创建临时拉流转推任务, /// 拉流源地址即 FromUrl 可以是腾讯或非腾讯数据源, /// 但转推目标地址即 ToUrl 目前限制为已注册的腾讯直播域名。 /// /// /// public async Task CreatePullStreamConfig(CreatePullStreamConfigRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "CreatePullStreamConfig"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 创建临时拉流转推任务,目前限制添加10条任务。 /// /// 注意:该接口用于创建临时拉流转推任务, /// 拉流源地址即 FromUrl 可以是腾讯或非腾讯数据源, /// 但转推目标地址即 ToUrl 目前限制为已注册的腾讯直播域名。 /// /// /// public CreatePullStreamConfigResponse CreatePullStreamConfigSync(CreatePullStreamConfigRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "CreatePullStreamConfig"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除回调规则。 /// /// /// public async Task DeleteLiveCallbackRule(DeleteLiveCallbackRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteLiveCallbackRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除回调规则。 /// /// /// public DeleteLiveCallbackRuleResponse DeleteLiveCallbackRuleSync(DeleteLiveCallbackRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteLiveCallbackRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除回调模板。 /// /// /// public async Task DeleteLiveCallbackTemplate(DeleteLiveCallbackTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteLiveCallbackTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除回调模板。 /// /// /// public DeleteLiveCallbackTemplateResponse DeleteLiveCallbackTemplateSync(DeleteLiveCallbackTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteLiveCallbackTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除域名对应的证书 /// /// /// public async Task DeleteLiveCert(DeleteLiveCertRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteLiveCert"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除域名对应的证书 /// /// /// public DeleteLiveCertResponse DeleteLiveCertSync(DeleteLiveCertRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteLiveCert"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除已添加的直播域名 /// /// /// public async Task DeleteLiveDomain(DeleteLiveDomainRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteLiveDomain"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除已添加的直播域名 /// /// /// public DeleteLiveDomainResponse DeleteLiveDomainSync(DeleteLiveDomainRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteLiveDomain"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 注:DeleteLiveRecord 接口仅用于删除录制任务记录,不具备停止录制的功能,也不能删除正在进行中的录制。如果需要停止录制任务,请使用终止录制[StopLiveRecord](/document/product/267/30146) 接口。 /// /// /// public async Task DeleteLiveRecord(DeleteLiveRecordRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteLiveRecord"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 注:DeleteLiveRecord 接口仅用于删除录制任务记录,不具备停止录制的功能,也不能删除正在进行中的录制。如果需要停止录制任务,请使用终止录制[StopLiveRecord](/document/product/267/30146) 接口。 /// /// /// public DeleteLiveRecordResponse DeleteLiveRecordSync(DeleteLiveRecordRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteLiveRecord"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除录制规则。 /// /// /// public async Task DeleteLiveRecordRule(DeleteLiveRecordRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteLiveRecordRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除录制规则。 /// /// /// public DeleteLiveRecordRuleResponse DeleteLiveRecordRuleSync(DeleteLiveRecordRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteLiveRecordRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除录制模板。 /// /// /// public async Task DeleteLiveRecordTemplate(DeleteLiveRecordTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteLiveRecordTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除录制模板。 /// /// /// public DeleteLiveRecordTemplateResponse DeleteLiveRecordTemplateSync(DeleteLiveRecordTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteLiveRecordTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除截图规则。 /// /// /// public async Task DeleteLiveSnapshotRule(DeleteLiveSnapshotRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteLiveSnapshotRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除截图规则。 /// /// /// public DeleteLiveSnapshotRuleResponse DeleteLiveSnapshotRuleSync(DeleteLiveSnapshotRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteLiveSnapshotRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除截图模板 /// /// /// public async Task DeleteLiveSnapshotTemplate(DeleteLiveSnapshotTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteLiveSnapshotTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除截图模板 /// /// /// public DeleteLiveSnapshotTemplateResponse DeleteLiveSnapshotTemplateSync(DeleteLiveSnapshotTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteLiveSnapshotTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除转码规则 /// /// /// public async Task DeleteLiveTranscodeRule(DeleteLiveTranscodeRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteLiveTranscodeRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除转码规则 /// /// /// public DeleteLiveTranscodeRuleResponse DeleteLiveTranscodeRuleSync(DeleteLiveTranscodeRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteLiveTranscodeRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除转码模板 /// /// /// public async Task DeleteLiveTranscodeTemplate(DeleteLiveTranscodeTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteLiveTranscodeTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除转码模板 /// /// /// public DeleteLiveTranscodeTemplateResponse DeleteLiveTranscodeTemplateSync(DeleteLiveTranscodeTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteLiveTranscodeTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除水印。 /// /// /// public async Task DeleteLiveWatermark(DeleteLiveWatermarkRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteLiveWatermark"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除水印。 /// /// /// public DeleteLiveWatermarkResponse DeleteLiveWatermarkSync(DeleteLiveWatermarkRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteLiveWatermark"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除水印规则 /// /// /// public async Task DeleteLiveWatermarkRule(DeleteLiveWatermarkRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeleteLiveWatermarkRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除水印规则 /// /// /// public DeleteLiveWatermarkRuleResponse DeleteLiveWatermarkRuleSync(DeleteLiveWatermarkRuleRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeleteLiveWatermarkRule"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除直播拉流配置。 /// /// /// public async Task DeletePullStreamConfig(DeletePullStreamConfigRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DeletePullStreamConfig"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 删除直播拉流配置。 /// /// /// public DeletePullStreamConfigResponse DeletePullStreamConfigSync(DeletePullStreamConfigRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DeletePullStreamConfig"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 输入某个时间点(1分钟维度),查询该时间点所有流的下行信息。 /// /// /// public async Task DescribeAllStreamPlayInfoList(DescribeAllStreamPlayInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeAllStreamPlayInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 输入某个时间点(1分钟维度),查询该时间点所有流的下行信息。 /// /// /// public DescribeAllStreamPlayInfoListResponse DescribeAllStreamPlayInfoListSync(DescribeAllStreamPlayInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeAllStreamPlayInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 直播计费带宽和流量数据查询。 /// /// /// public async Task DescribeBillBandwidthAndFluxList(DescribeBillBandwidthAndFluxListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeBillBandwidthAndFluxList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 直播计费带宽和流量数据查询。 /// /// /// public DescribeBillBandwidthAndFluxListResponse DescribeBillBandwidthAndFluxListSync(DescribeBillBandwidthAndFluxListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeBillBandwidthAndFluxList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询并发录制路数,对慢直播和普通直播适用。 /// /// /// public async Task DescribeConcurrentRecordStreamNum(DescribeConcurrentRecordStreamNumRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeConcurrentRecordStreamNum"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询并发录制路数,对慢直播和普通直播适用。 /// /// /// public DescribeConcurrentRecordStreamNumResponse DescribeConcurrentRecordStreamNumSync(DescribeConcurrentRecordStreamNumRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeConcurrentRecordStreamNum"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询按省份和运营商分组的下行播放数据。 /// /// /// public async Task DescribeGroupProIspPlayInfoList(DescribeGroupProIspPlayInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeGroupProIspPlayInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询按省份和运营商分组的下行播放数据。 /// /// /// public DescribeGroupProIspPlayInfoListResponse DescribeGroupProIspPlayInfoListSync(DescribeGroupProIspPlayInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeGroupProIspPlayInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询某段时间内5分钟粒度的各播放http状态码的个数。 /// 备注:数据延迟1小时,如10:00-10:59点的数据12点才能查到。 /// /// /// public async Task DescribeHttpStatusInfoList(DescribeHttpStatusInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeHttpStatusInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询某段时间内5分钟粒度的各播放http状态码的个数。 /// 备注:数据延迟1小时,如10:00-10:59点的数据12点才能查到。 /// /// /// public DescribeHttpStatusInfoListResponse DescribeHttpStatusInfoListSync(DescribeHttpStatusInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeHttpStatusInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取回调规则列表 /// /// /// public async Task DescribeLiveCallbackRules(DescribeLiveCallbackRulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveCallbackRules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取回调规则列表 /// /// /// public DescribeLiveCallbackRulesResponse DescribeLiveCallbackRulesSync(DescribeLiveCallbackRulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveCallbackRules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取单个回调模板。 /// /// /// public async Task DescribeLiveCallbackTemplate(DescribeLiveCallbackTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveCallbackTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取单个回调模板。 /// /// /// public DescribeLiveCallbackTemplateResponse DescribeLiveCallbackTemplateSync(DescribeLiveCallbackTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveCallbackTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取回调模板列表 /// /// /// public async Task DescribeLiveCallbackTemplates(DescribeLiveCallbackTemplatesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveCallbackTemplates"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取回调模板列表 /// /// /// public DescribeLiveCallbackTemplatesResponse DescribeLiveCallbackTemplatesSync(DescribeLiveCallbackTemplatesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveCallbackTemplates"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取证书信息 /// /// /// public async Task DescribeLiveCert(DescribeLiveCertRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveCert"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取证书信息 /// /// /// public DescribeLiveCertResponse DescribeLiveCertSync(DescribeLiveCertRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveCert"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取证书信息列表 /// /// /// public async Task DescribeLiveCerts(DescribeLiveCertsRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveCerts"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取证书信息列表 /// /// /// public DescribeLiveCertsResponse DescribeLiveCertsSync(DescribeLiveCertsRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveCerts"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取直播延播列表。 /// /// /// public async Task DescribeLiveDelayInfoList(DescribeLiveDelayInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveDelayInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取直播延播列表。 /// /// /// public DescribeLiveDelayInfoListResponse DescribeLiveDelayInfoListSync(DescribeLiveDelayInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveDelayInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询直播域名信息。 /// /// /// public async Task DescribeLiveDomain(DescribeLiveDomainRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveDomain"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询直播域名信息。 /// /// /// public DescribeLiveDomainResponse DescribeLiveDomainSync(DescribeLiveDomainRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveDomain"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取域名证书信息 /// /// /// public async Task DescribeLiveDomainCert(DescribeLiveDomainCertRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveDomainCert"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取域名证书信息 /// /// /// public DescribeLiveDomainCertResponse DescribeLiveDomainCertSync(DescribeLiveDomainCertRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveDomainCert"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询实时的域名维度下行播放数据,由于数据处理有耗时,接口默认查询4分钟前的准实时数据。 /// /// /// public async Task DescribeLiveDomainPlayInfoList(DescribeLiveDomainPlayInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveDomainPlayInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询实时的域名维度下行播放数据,由于数据处理有耗时,接口默认查询4分钟前的准实时数据。 /// /// /// public DescribeLiveDomainPlayInfoListResponse DescribeLiveDomainPlayInfoListSync(DescribeLiveDomainPlayInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveDomainPlayInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 根据域名状态、类型等信息查询用户的域名信息。 /// /// /// public async Task DescribeLiveDomains(DescribeLiveDomainsRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveDomains"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 根据域名状态、类型等信息查询用户的域名信息。 /// /// /// public DescribeLiveDomainsResponse DescribeLiveDomainsSync(DescribeLiveDomainsRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveDomains"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取禁推流列表。 /// /// /// public async Task DescribeLiveForbidStreamList(DescribeLiveForbidStreamListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveForbidStreamList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取禁推流列表。 /// /// /// public DescribeLiveForbidStreamListResponse DescribeLiveForbidStreamListSync(DescribeLiveForbidStreamListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveForbidStreamList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询用户套餐包总量、使用量、剩余量、包状态、购买时间和过期时间等。 /// /// /// public async Task DescribeLivePackageInfo(DescribeLivePackageInfoRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLivePackageInfo"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询用户套餐包总量、使用量、剩余量、包状态、购买时间和过期时间等。 /// /// /// public DescribeLivePackageInfoResponse DescribeLivePackageInfoSync(DescribeLivePackageInfoRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLivePackageInfo"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询播放鉴权key。 /// /// /// public async Task DescribeLivePlayAuthKey(DescribeLivePlayAuthKeyRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLivePlayAuthKey"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询播放鉴权key。 /// /// /// public DescribeLivePlayAuthKeyResponse DescribeLivePlayAuthKeySync(DescribeLivePlayAuthKeyRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLivePlayAuthKey"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询直播推流鉴权key /// /// /// public async Task DescribeLivePushAuthKey(DescribeLivePushAuthKeyRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLivePushAuthKey"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询直播推流鉴权key /// /// /// public DescribeLivePushAuthKeyResponse DescribeLivePushAuthKeySync(DescribeLivePushAuthKeyRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLivePushAuthKey"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取录制规则列表 /// /// /// public async Task DescribeLiveRecordRules(DescribeLiveRecordRulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveRecordRules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取录制规则列表 /// /// /// public DescribeLiveRecordRulesResponse DescribeLiveRecordRulesSync(DescribeLiveRecordRulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveRecordRules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取单个录制模板。 /// /// /// public async Task DescribeLiveRecordTemplate(DescribeLiveRecordTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveRecordTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取单个录制模板。 /// /// /// public DescribeLiveRecordTemplateResponse DescribeLiveRecordTemplateSync(DescribeLiveRecordTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveRecordTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取录制模板列表。 /// /// /// public async Task DescribeLiveRecordTemplates(DescribeLiveRecordTemplatesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveRecordTemplates"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取录制模板列表。 /// /// /// public DescribeLiveRecordTemplatesResponse DescribeLiveRecordTemplatesSync(DescribeLiveRecordTemplatesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveRecordTemplates"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取截图规则列表 /// /// /// public async Task DescribeLiveSnapshotRules(DescribeLiveSnapshotRulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveSnapshotRules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取截图规则列表 /// /// /// public DescribeLiveSnapshotRulesResponse DescribeLiveSnapshotRulesSync(DescribeLiveSnapshotRulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveSnapshotRules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取单个截图模板。 /// /// /// public async Task DescribeLiveSnapshotTemplate(DescribeLiveSnapshotTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveSnapshotTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取单个截图模板。 /// /// /// public DescribeLiveSnapshotTemplateResponse DescribeLiveSnapshotTemplateSync(DescribeLiveSnapshotTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveSnapshotTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取截图模板列表。 /// /// /// public async Task DescribeLiveSnapshotTemplates(DescribeLiveSnapshotTemplatesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveSnapshotTemplates"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取截图模板列表。 /// /// /// public DescribeLiveSnapshotTemplatesResponse DescribeLiveSnapshotTemplatesSync(DescribeLiveSnapshotTemplatesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveSnapshotTemplates"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 用于查询推断流事件。
/// /// 注意:该接口可通过使用IsFilter进行过滤,返回推流历史记录。 ///
/// /// public async Task DescribeLiveStreamEventList(DescribeLiveStreamEventListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveStreamEventList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 用于查询推断流事件。
/// /// 注意:该接口可通过使用IsFilter进行过滤,返回推流历史记录。 ///
/// /// public DescribeLiveStreamEventListResponse DescribeLiveStreamEventListSync(DescribeLiveStreamEventListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveStreamEventList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 返回正在直播中的流列表。 /// /// /// public async Task DescribeLiveStreamOnlineList(DescribeLiveStreamOnlineListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveStreamOnlineList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 返回正在直播中的流列表。 /// /// /// public DescribeLiveStreamOnlineListResponse DescribeLiveStreamOnlineListSync(DescribeLiveStreamOnlineListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveStreamOnlineList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 返回已经推过流的流列表。
/// 注意:分页最多支持查询1万条记录,可通过调整查询时间范围来获取更多数据。 ///
/// /// public async Task DescribeLiveStreamPublishedList(DescribeLiveStreamPublishedListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveStreamPublishedList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 返回已经推过流的流列表。
/// 注意:分页最多支持查询1万条记录,可通过调整查询时间范围来获取更多数据。 ///
/// /// public DescribeLiveStreamPublishedListResponse DescribeLiveStreamPublishedListSync(DescribeLiveStreamPublishedListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveStreamPublishedList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询所有实时流的推流信息,包括客户端IP,服务端IP,帧率,码率,域名,开始推流时间。 /// /// /// public async Task DescribeLiveStreamPushInfoList(DescribeLiveStreamPushInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveStreamPushInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询所有实时流的推流信息,包括客户端IP,服务端IP,帧率,码率,域名,开始推流时间。 /// /// /// public DescribeLiveStreamPushInfoListResponse DescribeLiveStreamPushInfoListSync(DescribeLiveStreamPushInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveStreamPushInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 返回直播中、无推流或者禁播等状态 /// /// /// public async Task DescribeLiveStreamState(DescribeLiveStreamStateRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveStreamState"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 返回直播中、无推流或者禁播等状态 /// /// /// public DescribeLiveStreamStateResponse DescribeLiveStreamStateSync(DescribeLiveStreamStateRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveStreamState"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 支持查询某天或某段时间的转码详细信息。 /// /// /// public async Task DescribeLiveTranscodeDetailInfo(DescribeLiveTranscodeDetailInfoRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveTranscodeDetailInfo"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 支持查询某天或某段时间的转码详细信息。 /// /// /// public DescribeLiveTranscodeDetailInfoResponse DescribeLiveTranscodeDetailInfoSync(DescribeLiveTranscodeDetailInfoRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveTranscodeDetailInfo"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取转码规则列表 /// /// /// public async Task DescribeLiveTranscodeRules(DescribeLiveTranscodeRulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveTranscodeRules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取转码规则列表 /// /// /// public DescribeLiveTranscodeRulesResponse DescribeLiveTranscodeRulesSync(DescribeLiveTranscodeRulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveTranscodeRules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取单个转码模板 /// /// /// public async Task DescribeLiveTranscodeTemplate(DescribeLiveTranscodeTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveTranscodeTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取单个转码模板 /// /// /// public DescribeLiveTranscodeTemplateResponse DescribeLiveTranscodeTemplateSync(DescribeLiveTranscodeTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveTranscodeTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取转码模板列表 /// /// /// public async Task DescribeLiveTranscodeTemplates(DescribeLiveTranscodeTemplatesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveTranscodeTemplates"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取转码模板列表 /// /// /// public DescribeLiveTranscodeTemplatesResponse DescribeLiveTranscodeTemplatesSync(DescribeLiveTranscodeTemplatesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveTranscodeTemplates"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取单个水印信息。 /// /// /// public async Task DescribeLiveWatermark(DescribeLiveWatermarkRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveWatermark"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取单个水印信息。 /// /// /// public DescribeLiveWatermarkResponse DescribeLiveWatermarkSync(DescribeLiveWatermarkRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveWatermark"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取水印规则列表。 /// /// /// public async Task DescribeLiveWatermarkRules(DescribeLiveWatermarkRulesRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveWatermarkRules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 获取水印规则列表。 /// /// /// public DescribeLiveWatermarkRulesResponse DescribeLiveWatermarkRulesSync(DescribeLiveWatermarkRulesRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveWatermarkRules"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询水印列表。 /// /// /// public async Task DescribeLiveWatermarks(DescribeLiveWatermarksRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLiveWatermarks"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询水印列表。 /// /// /// public DescribeLiveWatermarksResponse DescribeLiveWatermarksSync(DescribeLiveWatermarksRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLiveWatermarks"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 批量获取日志URL。 /// /// /// public async Task DescribeLogDownloadList(DescribeLogDownloadListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeLogDownloadList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 批量获取日志URL。 /// /// /// public DescribeLogDownloadListResponse DescribeLogDownloadListSync(DescribeLogDownloadListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeLogDownloadList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询下行播放错误码信息,某段时间内1分钟粒度的各http错误码出现的次数,包括4xx,5xx。 /// /// /// /// public async Task DescribePlayErrorCodeDetailInfoList(DescribePlayErrorCodeDetailInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribePlayErrorCodeDetailInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询下行播放错误码信息,某段时间内1分钟粒度的各http错误码出现的次数,包括4xx,5xx。 /// /// /// /// public DescribePlayErrorCodeDetailInfoListResponse DescribePlayErrorCodeDetailInfoListSync(DescribePlayErrorCodeDetailInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribePlayErrorCodeDetailInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询下行播放错误码信息。 /// /// /// public async Task DescribePlayErrorCodeSumInfoList(DescribePlayErrorCodeSumInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribePlayErrorCodeSumInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询下行播放错误码信息。 /// /// /// public DescribePlayErrorCodeSumInfoListResponse DescribePlayErrorCodeSumInfoListSync(DescribePlayErrorCodeSumInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribePlayErrorCodeSumInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询某段时间内每个国家地区每个省份每个运营商的平均每秒流量,总流量,总请求数信息。 /// /// /// public async Task DescribeProIspPlaySumInfoList(DescribeProIspPlaySumInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeProIspPlaySumInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询某段时间内每个国家地区每个省份每个运营商的平均每秒流量,总流量,总请求数信息。 /// /// /// public DescribeProIspPlaySumInfoListResponse DescribeProIspPlaySumInfoListSync(DescribeProIspPlaySumInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeProIspPlaySumInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询某省份某运营商下行播放数据,包括带宽,流量,请求数,并发连接数信息。 /// /// /// public async Task DescribeProvinceIspPlayInfoList(DescribeProvinceIspPlayInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeProvinceIspPlayInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询某省份某运营商下行播放数据,包括带宽,流量,请求数,并发连接数信息。 /// /// /// public DescribeProvinceIspPlayInfoListResponse DescribeProvinceIspPlayInfoListSync(DescribeProvinceIspPlayInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeProvinceIspPlayInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询直播拉流配置。 /// /// /// public async Task DescribePullStreamConfigs(DescribePullStreamConfigsRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribePullStreamConfigs"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询直播拉流配置。 /// /// /// public DescribePullStreamConfigsResponse DescribePullStreamConfigsSync(DescribePullStreamConfigsRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribePullStreamConfigs"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 接口用来查询直播增值业务--截图的张数 /// /// /// public async Task DescribeScreenShotSheetNumList(DescribeScreenShotSheetNumListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeScreenShotSheetNumList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 接口用来查询直播增值业务--截图的张数 /// /// /// public DescribeScreenShotSheetNumListResponse DescribeScreenShotSheetNumListSync(DescribeScreenShotSheetNumListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeScreenShotSheetNumList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询天维度每条流的播放数据,包括总流量等。 /// /// /// public async Task DescribeStreamDayPlayInfoList(DescribeStreamDayPlayInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeStreamDayPlayInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询天维度每条流的播放数据,包括总流量等。 /// /// /// public DescribeStreamDayPlayInfoListResponse DescribeStreamDayPlayInfoListSync(DescribeStreamDayPlayInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeStreamDayPlayInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询播放数据,支持按流名称查询详细播放数据,也可按播放域名查询详细总数据。 /// 注意:按AppName查询,需要联系客服同学提单支持。 /// /// /// public async Task DescribeStreamPlayInfoList(DescribeStreamPlayInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeStreamPlayInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询播放数据,支持按流名称查询详细播放数据,也可按播放域名查询详细总数据。 /// 注意:按AppName查询,需要联系客服同学提单支持。 /// /// /// public DescribeStreamPlayInfoListResponse DescribeStreamPlayInfoListSync(DescribeStreamPlayInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeStreamPlayInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询流id的上行推流质量数据,包括音视频的帧率,码率,流逝时间,编码格式等。 /// /// /// public async Task DescribeStreamPushInfoList(DescribeStreamPushInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeStreamPushInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询流id的上行推流质量数据,包括音视频的帧率,码率,流逝时间,编码格式等。 /// /// /// public DescribeStreamPushInfoListResponse DescribeStreamPushInfoListSync(DescribeStreamPushInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeStreamPushInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询某段时间top n客户端ip汇总信息(暂支持top 1000) /// /// /// public async Task DescribeTopClientIpSumInfoList(DescribeTopClientIpSumInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeTopClientIpSumInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询某段时间top n客户端ip汇总信息(暂支持top 1000) /// /// /// public DescribeTopClientIpSumInfoListResponse DescribeTopClientIpSumInfoListSync(DescribeTopClientIpSumInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeTopClientIpSumInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询某时间段top n的域名或流id信息(暂支持top 1000)。 /// /// /// public async Task DescribeVisitTopSumInfoList(DescribeVisitTopSumInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DescribeVisitTopSumInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 查询某时间段top n的域名或流id信息(暂支持top 1000)。 /// /// /// public DescribeVisitTopSumInfoListResponse DescribeVisitTopSumInfoListSync(DescribeVisitTopSumInfoListRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DescribeVisitTopSumInfoList"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 断开推流连接,但可以重新推流。 /// /// /// public async Task DropLiveStream(DropLiveStreamRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "DropLiveStream"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 断开推流连接,但可以重新推流。 /// /// /// public DropLiveStreamResponse DropLiveStreamSync(DropLiveStreamRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "DropLiveStream"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 启用状态为停用的直播域名。 /// /// /// public async Task EnableLiveDomain(EnableLiveDomainRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "EnableLiveDomain"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 启用状态为停用的直播域名。 /// /// /// public EnableLiveDomainResponse EnableLiveDomainSync(EnableLiveDomainRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "EnableLiveDomain"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 停止使用某个直播域名。 /// /// /// public async Task ForbidLiveDomain(ForbidLiveDomainRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ForbidLiveDomain"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 停止使用某个直播域名。 /// /// /// public ForbidLiveDomainResponse ForbidLiveDomainSync(ForbidLiveDomainRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ForbidLiveDomain"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 禁止某条流的推送,可以预设某个时刻将流恢复。 /// /// /// public async Task ForbidLiveStream(ForbidLiveStreamRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ForbidLiveStream"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 禁止某条流的推送,可以预设某个时刻将流恢复。 /// /// /// public ForbidLiveStreamResponse ForbidLiveStreamSync(ForbidLiveStreamRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ForbidLiveStream"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改回调模板。 /// /// /// public async Task ModifyLiveCallbackTemplate(ModifyLiveCallbackTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyLiveCallbackTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改回调模板。 /// /// /// public ModifyLiveCallbackTemplateResponse ModifyLiveCallbackTemplateSync(ModifyLiveCallbackTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyLiveCallbackTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改证书 /// /// /// public async Task ModifyLiveCert(ModifyLiveCertRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyLiveCert"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改证书 /// /// /// public ModifyLiveCertResponse ModifyLiveCertSync(ModifyLiveCertRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyLiveCert"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改域名和证书绑定信息 /// /// /// public async Task ModifyLiveDomainCert(ModifyLiveDomainCertRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyLiveDomainCert"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改域名和证书绑定信息 /// /// /// public ModifyLiveDomainCertResponse ModifyLiveDomainCertSync(ModifyLiveDomainCertRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyLiveDomainCert"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改播放鉴权key /// /// /// public async Task ModifyLivePlayAuthKey(ModifyLivePlayAuthKeyRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyLivePlayAuthKey"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改播放鉴权key /// /// /// public ModifyLivePlayAuthKeyResponse ModifyLivePlayAuthKeySync(ModifyLivePlayAuthKeyRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyLivePlayAuthKey"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改播放域名信息。 /// /// /// public async Task ModifyLivePlayDomain(ModifyLivePlayDomainRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyLivePlayDomain"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改播放域名信息。 /// /// /// public ModifyLivePlayDomainResponse ModifyLivePlayDomainSync(ModifyLivePlayDomainRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyLivePlayDomain"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改直播推流鉴权key /// /// /// public async Task ModifyLivePushAuthKey(ModifyLivePushAuthKeyRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyLivePushAuthKey"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改直播推流鉴权key /// /// /// public ModifyLivePushAuthKeyResponse ModifyLivePushAuthKeySync(ModifyLivePushAuthKeyRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyLivePushAuthKey"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改录制模板配置。 /// /// /// public async Task ModifyLiveRecordTemplate(ModifyLiveRecordTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyLiveRecordTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改录制模板配置。 /// /// /// public ModifyLiveRecordTemplateResponse ModifyLiveRecordTemplateSync(ModifyLiveRecordTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyLiveRecordTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改截图模板配置。 /// /// /// public async Task ModifyLiveSnapshotTemplate(ModifyLiveSnapshotTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyLiveSnapshotTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改截图模板配置。 /// /// /// public ModifyLiveSnapshotTemplateResponse ModifyLiveSnapshotTemplateSync(ModifyLiveSnapshotTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyLiveSnapshotTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改转码模板配置。 /// /// /// public async Task ModifyLiveTranscodeTemplate(ModifyLiveTranscodeTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyLiveTranscodeTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改转码模板配置。 /// /// /// public ModifyLiveTranscodeTemplateResponse ModifyLiveTranscodeTemplateSync(ModifyLiveTranscodeTemplateRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyLiveTranscodeTemplate"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 更新拉流配置。 /// /// /// public async Task ModifyPullStreamConfig(ModifyPullStreamConfigRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyPullStreamConfig"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 更新拉流配置。 /// /// /// public ModifyPullStreamConfigResponse ModifyPullStreamConfigSync(ModifyPullStreamConfigRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyPullStreamConfig"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改直播拉流配置的状态。 /// /// /// public async Task ModifyPullStreamStatus(ModifyPullStreamStatusRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ModifyPullStreamStatus"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 修改直播拉流配置的状态。 /// /// /// public ModifyPullStreamStatusResponse ModifyPullStreamStatusSync(ModifyPullStreamStatusRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ModifyPullStreamStatus"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 恢复延迟播放设置 /// /// /// public async Task ResumeDelayLiveStream(ResumeDelayLiveStreamRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ResumeDelayLiveStream"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 恢复延迟播放设置 /// /// /// public ResumeDelayLiveStreamResponse ResumeDelayLiveStreamSync(ResumeDelayLiveStreamRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ResumeDelayLiveStream"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 恢复某条流的推流。 /// /// /// public async Task ResumeLiveStream(ResumeLiveStreamRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "ResumeLiveStream"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 恢复某条流的推流。 /// /// /// public ResumeLiveStreamResponse ResumeLiveStreamSync(ResumeLiveStreamRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "ResumeLiveStream"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 说明:录制后的文件存放于点播平台。用户如需使用录制功能,需首先自行开通点播账号并确保账号可用。录制文件存放后,相关费用(含存储以及下行播放流量)按照点播平台计费方式收取,请参考对应文档。 /// /// /// public async Task StopLiveRecord(StopLiveRecordRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "StopLiveRecord"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 说明:录制后的文件存放于点播平台。用户如需使用录制功能,需首先自行开通点播账号并确保账号可用。录制文件存放后,相关费用(含存储以及下行播放流量)按照点播平台计费方式收取,请参考对应文档。 /// /// /// public StopLiveRecordResponse StopLiveRecordSync(StopLiveRecordRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "StopLiveRecord"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 解绑域名证书 /// /// /// public async Task UnBindLiveDomainCert(UnBindLiveDomainCertRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "UnBindLiveDomainCert"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 解绑域名证书 /// /// /// public UnBindLiveDomainCertResponse UnBindLiveDomainCertSync(UnBindLiveDomainCertRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "UnBindLiveDomainCert"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 更新水印。 /// /// /// public async Task UpdateLiveWatermark(UpdateLiveWatermarkRequest req) { JsonResponseModel rsp = null; try { var strResp = await this.InternalRequest(req, "UpdateLiveWatermark"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } /// /// 更新水印。 /// /// /// public UpdateLiveWatermarkResponse UpdateLiveWatermarkSync(UpdateLiveWatermarkRequest req) { JsonResponseModel rsp = null; try { var strResp = this.InternalRequestSync(req, "UpdateLiveWatermark"); rsp = JsonConvert.DeserializeObject>(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return rsp.Response; } } }