All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.live.v20180801.LiveClient Maven / Gradle / Ivy

/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.live.v20180801;

import java.lang.reflect.Type;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.common.AbstractClient;
import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.JsonResponseModel;
import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.live.v20180801.models.*;

public class LiveClient extends AbstractClient{
    private static String endpoint = "live.tencentcloudapi.com";
    private static String version = "2018-08-01";

    public LiveClient(Credential credential, String region) {
        this(credential, region, new ClientProfile());
    }

    public LiveClient(Credential credential, String region, ClientProfile profile) {
        super(LiveClient.endpoint, LiveClient.version, credential, region, profile);
    }

    /**
     *对流设置延播时间
注意:如果在推流前设置延播,需要提前5分钟设置。
目前该接口只支持流粒度的,域名及应用粒度功能支持当前开发中。

     * @param req AddDelayLiveStreamRequest
     * @return AddDelayLiveStreamResponse
     * @throws TencentCloudSDKException
     */
    public AddDelayLiveStreamResponse AddDelayLiveStream(AddDelayLiveStreamRequest req) throws TencentCloudSDKException{
        JsonResponseModel rsp = null;
        try {
                Type type = new TypeToken>() {
                }.getType();
                rsp  = gson.fromJson(this.internalRequest(req, "AddDelayLiveStream"), type);
        } catch (JsonSyntaxException e) {
            throw new TencentCloudSDKException(e.getMessage());
        }
        return rsp.response;
    }

    /**
     *添加域名,一次只能提交一个域名。域名必须已备案。
     * @param req AddLiveDomainRequest
     * @return AddLiveDomainResponse
     * @throws TencentCloudSDKException
     */
    public AddLiveDomainResponse AddLiveDomain(AddLiveDomainRequest req) throws TencentCloudSDKException{
        JsonResponseModel rsp = null;
        try {
                Type type = new TypeToken>() {
                }.getType();
                rsp  = gson.fromJson(this.internalRequest(req, "AddLiveDomain"), type);
        } catch (JsonSyntaxException e) {
            throw new TencentCloudSDKException(e.getMessage());
        }
        return rsp.response;
    }

    /**
     *添加水印,成功返回水印id后,需要调用[CreateLiveWatermarkRule](/document/product/267/32629)接口将水印id绑定到流使用。
     * @param req AddLiveWatermarkRequest
     * @return AddLiveWatermarkResponse
     * @throws TencentCloudSDKException
     */
    public AddLiveWatermarkResponse AddLiveWatermark(AddLiveWatermarkRequest req) throws TencentCloudSDKException{
        JsonResponseModel rsp = null;
        try {
                Type type = new TypeToken>() {
                }.getType();
                rsp  = gson.fromJson(this.internalRequest(req, "AddLiveWatermark"), type);
        } catch (JsonSyntaxException e) {
            throw new TencentCloudSDKException(e.getMessage());
        }
        return rsp.response;
    }

    /**
     *域名绑定证书。
注意:需先调用添加证书接口进行证书添加。获取到证书Id后再调用该接口进行绑定。
     * @param req BindLiveDomainCertRequest
     * @return BindLiveDomainCertResponse
     * @throws TencentCloudSDKException
     */
    public BindLiveDomainCertResponse BindLiveDomainCert(BindLiveDomainCertRequest req) throws TencentCloudSDKException{
        JsonResponseModel rsp = null;
        try {
                Type type = new TypeToken>() {
                }.getType();
                rsp  = gson.fromJson(this.internalRequest(req, "BindLiveDomainCert"), type);
        } catch (JsonSyntaxException e) {
            throw new TencentCloudSDKException(e.getMessage());
        }
        return rsp.response;
    }

    /**
     *创建回调规则,需要先调用[CreateLiveCallbackTemplate](/document/product/267/32637)接口创建回调模板,将返回的模板id绑定到域名/路径进行使用。

回调协议相关文档:[事件消息通知](/document/product/267/32744)。 * @param req CreateLiveCallbackRuleRequest * @return CreateLiveCallbackRuleResponse * @throws TencentCloudSDKException */ public CreateLiveCallbackRuleResponse CreateLiveCallbackRule(CreateLiveCallbackRuleRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "CreateLiveCallbackRule"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *创建回调模板,成功返回模板id后,需要调用[CreateLiveCallbackRule](/document/product/267/32638)接口将模板id绑定到域名/路径使用。
回调协议相关文档:[事件消息通知](/document/product/267/32744)。 * @param req CreateLiveCallbackTemplateRequest * @return CreateLiveCallbackTemplateResponse * @throws TencentCloudSDKException */ public CreateLiveCallbackTemplateResponse CreateLiveCallbackTemplate(CreateLiveCallbackTemplateRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "CreateLiveCallbackTemplate"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *添加证书 * @param req CreateLiveCertRequest * @return CreateLiveCertResponse * @throws TencentCloudSDKException */ public CreateLiveCertResponse CreateLiveCert(CreateLiveCertRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "CreateLiveCert"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } 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。有超出此限制的需要提工单申请。 * @param req CreateLiveRecordRequest * @return CreateLiveRecordResponse * @throws TencentCloudSDKException */ public CreateLiveRecordResponse CreateLiveRecord(CreateLiveRecordRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "CreateLiveRecord"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *创建录制规则,需要先调用[CreateLiveRecordTemplate](/document/product/267/32614)接口创建录制模板,将返回的模板id绑定到流使用。
录制相关文档:[直播录制](/document/product/267/32739)。 * @param req CreateLiveRecordRuleRequest * @return CreateLiveRecordRuleResponse * @throws TencentCloudSDKException */ public CreateLiveRecordRuleResponse CreateLiveRecordRule(CreateLiveRecordRuleRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "CreateLiveRecordRule"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *创建录制模板,成功返回模板id后,需要调用[CreateLiveRecordRule](/document/product/267/32615)接口,将模板id绑定到流进行使用。
录制相关文档:[直播录制](/document/product/267/32739)。 * @param req CreateLiveRecordTemplateRequest * @return CreateLiveRecordTemplateResponse * @throws TencentCloudSDKException */ public CreateLiveRecordTemplateResponse CreateLiveRecordTemplate(CreateLiveRecordTemplateRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "CreateLiveRecordTemplate"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *创建截图规则,需要先调用[CreateLiveSnapshotTemplate](/document/product/267/32624)接口创建截图模板,然后将返回的模板id绑定到流进行使用。
截图相关文档:[直播截图](/document/product/267/32737)。 * @param req CreateLiveSnapshotRuleRequest * @return CreateLiveSnapshotRuleResponse * @throws TencentCloudSDKException */ public CreateLiveSnapshotRuleResponse CreateLiveSnapshotRule(CreateLiveSnapshotRuleRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "CreateLiveSnapshotRule"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *创建截图模板,成功返回模板id后,需要调用[CreateLiveSnapshotRule](/document/product/267/32625)接口,将模板id绑定到流使用。
截图相关文档:[直播截图](/document/product/267/32737)。 * @param req CreateLiveSnapshotTemplateRequest * @return CreateLiveSnapshotTemplateResponse * @throws TencentCloudSDKException */ public CreateLiveSnapshotTemplateResponse CreateLiveSnapshotTemplate(CreateLiveSnapshotTemplateRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "CreateLiveSnapshotTemplate"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *创建转码规则,需要先调用[CreateLiveTranscodeTemplate](/document/product/267/32646)接口创建转码模板,将返回的模板id绑定到流使用。
转码相关文档:[直播转封装及转码](/document/product/267/32736)。 * @param req CreateLiveTranscodeRuleRequest * @return CreateLiveTranscodeRuleResponse * @throws TencentCloudSDKException */ public CreateLiveTranscodeRuleResponse CreateLiveTranscodeRule(CreateLiveTranscodeRuleRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "CreateLiveTranscodeRule"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *创建转码模板,成功返回模板id后,需要调用[CreateLiveTranscodeRule](/document/product/267/32647)接口,将返回的模板id绑定到流使用。
转码相关文档:[直播转封装及转码](/document/product/267/32736)。 * @param req CreateLiveTranscodeTemplateRequest * @return CreateLiveTranscodeTemplateResponse * @throws TencentCloudSDKException */ public CreateLiveTranscodeTemplateResponse CreateLiveTranscodeTemplate(CreateLiveTranscodeTemplateRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "CreateLiveTranscodeTemplate"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *创建水印规则,需要先调用[AddLiveWatermark](/document/product/267/30154)接口添加水印,将返回的水印id绑定到流使用。 * @param req CreateLiveWatermarkRuleRequest * @return CreateLiveWatermarkRuleResponse * @throws TencentCloudSDKException */ public CreateLiveWatermarkRuleResponse CreateLiveWatermarkRule(CreateLiveWatermarkRuleRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "CreateLiveWatermarkRule"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *创建临时拉流转推任务,目前限制添加10条任务。 注意:该接口用于创建临时拉流转推任务, 拉流源地址即FromUrl 可以是腾讯或非腾讯数据源, 但转推目标地址即ToUrl 目前限制为已注册的腾讯直播域名。 * @param req CreatePullStreamConfigRequest * @return CreatePullStreamConfigResponse * @throws TencentCloudSDKException */ public CreatePullStreamConfigResponse CreatePullStreamConfig(CreatePullStreamConfigRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "CreatePullStreamConfig"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *删除回调规则 * @param req DeleteLiveCallbackRuleRequest * @return DeleteLiveCallbackRuleResponse * @throws TencentCloudSDKException */ public DeleteLiveCallbackRuleResponse DeleteLiveCallbackRule(DeleteLiveCallbackRuleRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DeleteLiveCallbackRule"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *删除回调模板 * @param req DeleteLiveCallbackTemplateRequest * @return DeleteLiveCallbackTemplateResponse * @throws TencentCloudSDKException */ public DeleteLiveCallbackTemplateResponse DeleteLiveCallbackTemplate(DeleteLiveCallbackTemplateRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DeleteLiveCallbackTemplate"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *删除域名对应的证书 * @param req DeleteLiveCertRequest * @return DeleteLiveCertResponse * @throws TencentCloudSDKException */ public DeleteLiveCertResponse DeleteLiveCert(DeleteLiveCertRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DeleteLiveCert"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *删除已添加的直播域名 * @param req DeleteLiveDomainRequest * @return DeleteLiveDomainResponse * @throws TencentCloudSDKException */ public DeleteLiveDomainResponse DeleteLiveDomain(DeleteLiveDomainRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DeleteLiveDomain"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *注:DeleteLiveRecord 接口仅用于删除录制任务记录,不具备停止录制的功能,也不能删除正在进行中的录制。如果需要停止录制任务,请使用终止录制[StopLiveRecord](/document/product/267/30146) 接口。 * @param req DeleteLiveRecordRequest * @return DeleteLiveRecordResponse * @throws TencentCloudSDKException */ public DeleteLiveRecordResponse DeleteLiveRecord(DeleteLiveRecordRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DeleteLiveRecord"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *删除录制规则 * @param req DeleteLiveRecordRuleRequest * @return DeleteLiveRecordRuleResponse * @throws TencentCloudSDKException */ public DeleteLiveRecordRuleResponse DeleteLiveRecordRule(DeleteLiveRecordRuleRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DeleteLiveRecordRule"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *删除录制模板 * @param req DeleteLiveRecordTemplateRequest * @return DeleteLiveRecordTemplateResponse * @throws TencentCloudSDKException */ public DeleteLiveRecordTemplateResponse DeleteLiveRecordTemplate(DeleteLiveRecordTemplateRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DeleteLiveRecordTemplate"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *删除截图规则 * @param req DeleteLiveSnapshotRuleRequest * @return DeleteLiveSnapshotRuleResponse * @throws TencentCloudSDKException */ public DeleteLiveSnapshotRuleResponse DeleteLiveSnapshotRule(DeleteLiveSnapshotRuleRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DeleteLiveSnapshotRule"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *删除截图模板 * @param req DeleteLiveSnapshotTemplateRequest * @return DeleteLiveSnapshotTemplateResponse * @throws TencentCloudSDKException */ public DeleteLiveSnapshotTemplateResponse DeleteLiveSnapshotTemplate(DeleteLiveSnapshotTemplateRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DeleteLiveSnapshotTemplate"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *删除转码规则 * @param req DeleteLiveTranscodeRuleRequest * @return DeleteLiveTranscodeRuleResponse * @throws TencentCloudSDKException */ public DeleteLiveTranscodeRuleResponse DeleteLiveTranscodeRule(DeleteLiveTranscodeRuleRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DeleteLiveTranscodeRule"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *删除转码模板 * @param req DeleteLiveTranscodeTemplateRequest * @return DeleteLiveTranscodeTemplateResponse * @throws TencentCloudSDKException */ public DeleteLiveTranscodeTemplateResponse DeleteLiveTranscodeTemplate(DeleteLiveTranscodeTemplateRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DeleteLiveTranscodeTemplate"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *删除水印 * @param req DeleteLiveWatermarkRequest * @return DeleteLiveWatermarkResponse * @throws TencentCloudSDKException */ public DeleteLiveWatermarkResponse DeleteLiveWatermark(DeleteLiveWatermarkRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DeleteLiveWatermark"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *删除水印规则 * @param req DeleteLiveWatermarkRuleRequest * @return DeleteLiveWatermarkRuleResponse * @throws TencentCloudSDKException */ public DeleteLiveWatermarkRuleResponse DeleteLiveWatermarkRule(DeleteLiveWatermarkRuleRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DeleteLiveWatermarkRule"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *删除直播拉流配置 * @param req DeletePullStreamConfigRequest * @return DeletePullStreamConfigResponse * @throws TencentCloudSDKException */ public DeletePullStreamConfigResponse DeletePullStreamConfig(DeletePullStreamConfigRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DeletePullStreamConfig"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *直播计费带宽和流量数据查询。 * @param req DescribeBillBandwidthAndFluxListRequest * @return DescribeBillBandwidthAndFluxListResponse * @throws TencentCloudSDKException */ public DescribeBillBandwidthAndFluxListResponse DescribeBillBandwidthAndFluxList(DescribeBillBandwidthAndFluxListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeBillBandwidthAndFluxList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询并发录制路数,对慢直播和普通直播适用。 * @param req DescribeConcurrentRecordStreamNumRequest * @return DescribeConcurrentRecordStreamNumResponse * @throws TencentCloudSDKException */ public DescribeConcurrentRecordStreamNumResponse DescribeConcurrentRecordStreamNum(DescribeConcurrentRecordStreamNumRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeConcurrentRecordStreamNum"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询按省份和运营商分组的下行播放数据。 * @param req DescribeGroupProIspPlayInfoListRequest * @return DescribeGroupProIspPlayInfoListResponse * @throws TencentCloudSDKException */ public DescribeGroupProIspPlayInfoListResponse DescribeGroupProIspPlayInfoList(DescribeGroupProIspPlayInfoListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeGroupProIspPlayInfoList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询某段时间内5分钟粒度的各播放http状态码的个数。 备注:数据延迟1小时,如10:00-10:59点的数据12点才能查到。 * @param req DescribeHttpStatusInfoListRequest * @return DescribeHttpStatusInfoListResponse * @throws TencentCloudSDKException */ public DescribeHttpStatusInfoListResponse DescribeHttpStatusInfoList(DescribeHttpStatusInfoListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeHttpStatusInfoList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *获取回调规则列表 * @param req DescribeLiveCallbackRulesRequest * @return DescribeLiveCallbackRulesResponse * @throws TencentCloudSDKException */ public DescribeLiveCallbackRulesResponse DescribeLiveCallbackRules(DescribeLiveCallbackRulesRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveCallbackRules"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *获取单个回调模板 * @param req DescribeLiveCallbackTemplateRequest * @return DescribeLiveCallbackTemplateResponse * @throws TencentCloudSDKException */ public DescribeLiveCallbackTemplateResponse DescribeLiveCallbackTemplate(DescribeLiveCallbackTemplateRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveCallbackTemplate"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *获取回调模板列表 * @param req DescribeLiveCallbackTemplatesRequest * @return DescribeLiveCallbackTemplatesResponse * @throws TencentCloudSDKException */ public DescribeLiveCallbackTemplatesResponse DescribeLiveCallbackTemplates(DescribeLiveCallbackTemplatesRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveCallbackTemplates"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *获取证书信息 * @param req DescribeLiveCertRequest * @return DescribeLiveCertResponse * @throws TencentCloudSDKException */ public DescribeLiveCertResponse DescribeLiveCert(DescribeLiveCertRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveCert"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *获取证书信息列表 * @param req DescribeLiveCertsRequest * @return DescribeLiveCertsResponse * @throws TencentCloudSDKException */ public DescribeLiveCertsResponse DescribeLiveCerts(DescribeLiveCertsRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveCerts"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *获取直播延播列表。 * @param req DescribeLiveDelayInfoListRequest * @return DescribeLiveDelayInfoListResponse * @throws TencentCloudSDKException */ public DescribeLiveDelayInfoListResponse DescribeLiveDelayInfoList(DescribeLiveDelayInfoListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveDelayInfoList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询直播域名信息。 * @param req DescribeLiveDomainRequest * @return DescribeLiveDomainResponse * @throws TencentCloudSDKException */ public DescribeLiveDomainResponse DescribeLiveDomain(DescribeLiveDomainRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveDomain"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *获取域名证书信息 * @param req DescribeLiveDomainCertRequest * @return DescribeLiveDomainCertResponse * @throws TencentCloudSDKException */ public DescribeLiveDomainCertResponse DescribeLiveDomainCert(DescribeLiveDomainCertRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveDomainCert"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询实时的域名维度下行播放数据,由于数据处理有耗时,接口默认查询4分钟前的准实时数据。 * @param req DescribeLiveDomainPlayInfoListRequest * @return DescribeLiveDomainPlayInfoListResponse * @throws TencentCloudSDKException */ public DescribeLiveDomainPlayInfoListResponse DescribeLiveDomainPlayInfoList(DescribeLiveDomainPlayInfoListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveDomainPlayInfoList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *根据域名状态、类型等信息查询用户的域名信息。 * @param req DescribeLiveDomainsRequest * @return DescribeLiveDomainsResponse * @throws TencentCloudSDKException */ public DescribeLiveDomainsResponse DescribeLiveDomains(DescribeLiveDomainsRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveDomains"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *获取禁推流列表 * @param req DescribeLiveForbidStreamListRequest * @return DescribeLiveForbidStreamListResponse * @throws TencentCloudSDKException */ public DescribeLiveForbidStreamListResponse DescribeLiveForbidStreamList(DescribeLiveForbidStreamListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveForbidStreamList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询用户套餐包总量、使用量、剩余量、包状态、购买时间和过期时间等。 * @param req DescribeLivePackageInfoRequest * @return DescribeLivePackageInfoResponse * @throws TencentCloudSDKException */ public DescribeLivePackageInfoResponse DescribeLivePackageInfo(DescribeLivePackageInfoRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLivePackageInfo"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询播放鉴权key。 * @param req DescribeLivePlayAuthKeyRequest * @return DescribeLivePlayAuthKeyResponse * @throws TencentCloudSDKException */ public DescribeLivePlayAuthKeyResponse DescribeLivePlayAuthKey(DescribeLivePlayAuthKeyRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLivePlayAuthKey"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询直播推流鉴权key * @param req DescribeLivePushAuthKeyRequest * @return DescribeLivePushAuthKeyResponse * @throws TencentCloudSDKException */ public DescribeLivePushAuthKeyResponse DescribeLivePushAuthKey(DescribeLivePushAuthKeyRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLivePushAuthKey"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *获取录制规则列表 * @param req DescribeLiveRecordRulesRequest * @return DescribeLiveRecordRulesResponse * @throws TencentCloudSDKException */ public DescribeLiveRecordRulesResponse DescribeLiveRecordRules(DescribeLiveRecordRulesRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveRecordRules"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *获取单个录制模板 * @param req DescribeLiveRecordTemplateRequest * @return DescribeLiveRecordTemplateResponse * @throws TencentCloudSDKException */ public DescribeLiveRecordTemplateResponse DescribeLiveRecordTemplate(DescribeLiveRecordTemplateRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveRecordTemplate"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *获取录制模板列表 * @param req DescribeLiveRecordTemplatesRequest * @return DescribeLiveRecordTemplatesResponse * @throws TencentCloudSDKException */ public DescribeLiveRecordTemplatesResponse DescribeLiveRecordTemplates(DescribeLiveRecordTemplatesRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveRecordTemplates"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *获取截图规则列表 * @param req DescribeLiveSnapshotRulesRequest * @return DescribeLiveSnapshotRulesResponse * @throws TencentCloudSDKException */ public DescribeLiveSnapshotRulesResponse DescribeLiveSnapshotRules(DescribeLiveSnapshotRulesRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveSnapshotRules"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *获取单个截图模板 * @param req DescribeLiveSnapshotTemplateRequest * @return DescribeLiveSnapshotTemplateResponse * @throws TencentCloudSDKException */ public DescribeLiveSnapshotTemplateResponse DescribeLiveSnapshotTemplate(DescribeLiveSnapshotTemplateRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveSnapshotTemplate"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *获取截图模板列表 * @param req DescribeLiveSnapshotTemplatesRequest * @return DescribeLiveSnapshotTemplatesResponse * @throws TencentCloudSDKException */ public DescribeLiveSnapshotTemplatesResponse DescribeLiveSnapshotTemplates(DescribeLiveSnapshotTemplatesRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveSnapshotTemplates"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *用于查询推断流事件。
注意:该接口可通过使用IsFilter进行过滤,返回推流历史记录。 * @param req DescribeLiveStreamEventListRequest * @return DescribeLiveStreamEventListResponse * @throws TencentCloudSDKException */ public DescribeLiveStreamEventListResponse DescribeLiveStreamEventList(DescribeLiveStreamEventListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveStreamEventList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *返回正在直播中的流列表 * @param req DescribeLiveStreamOnlineListRequest * @return DescribeLiveStreamOnlineListResponse * @throws TencentCloudSDKException */ public DescribeLiveStreamOnlineListResponse DescribeLiveStreamOnlineList(DescribeLiveStreamOnlineListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveStreamOnlineList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *返回已经推过流的流列表。
注意:分页最多支持查询1万条记录,可通过调整查询时间范围来获取更多数据。 * @param req DescribeLiveStreamPublishedListRequest * @return DescribeLiveStreamPublishedListResponse * @throws TencentCloudSDKException */ public DescribeLiveStreamPublishedListResponse DescribeLiveStreamPublishedList(DescribeLiveStreamPublishedListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveStreamPublishedList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询所有实时流的推流信息,包括客户端IP,服务端IP,帧率,码率,域名,开始推流时间。 * @param req DescribeLiveStreamPushInfoListRequest * @return DescribeLiveStreamPushInfoListResponse * @throws TencentCloudSDKException */ public DescribeLiveStreamPushInfoListResponse DescribeLiveStreamPushInfoList(DescribeLiveStreamPushInfoListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveStreamPushInfoList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *返回直播中、无推流或者禁播等状态 * @param req DescribeLiveStreamStateRequest * @return DescribeLiveStreamStateResponse * @throws TencentCloudSDKException */ public DescribeLiveStreamStateResponse DescribeLiveStreamState(DescribeLiveStreamStateRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveStreamState"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *支持查询某天或某段时间的转码详细信息。 * @param req DescribeLiveTranscodeDetailInfoRequest * @return DescribeLiveTranscodeDetailInfoResponse * @throws TencentCloudSDKException */ public DescribeLiveTranscodeDetailInfoResponse DescribeLiveTranscodeDetailInfo(DescribeLiveTranscodeDetailInfoRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveTranscodeDetailInfo"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *获取转码规则列表 * @param req DescribeLiveTranscodeRulesRequest * @return DescribeLiveTranscodeRulesResponse * @throws TencentCloudSDKException */ public DescribeLiveTranscodeRulesResponse DescribeLiveTranscodeRules(DescribeLiveTranscodeRulesRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveTranscodeRules"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *获取单个转码模板 * @param req DescribeLiveTranscodeTemplateRequest * @return DescribeLiveTranscodeTemplateResponse * @throws TencentCloudSDKException */ public DescribeLiveTranscodeTemplateResponse DescribeLiveTranscodeTemplate(DescribeLiveTranscodeTemplateRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveTranscodeTemplate"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *获取转码模板列表 * @param req DescribeLiveTranscodeTemplatesRequest * @return DescribeLiveTranscodeTemplatesResponse * @throws TencentCloudSDKException */ public DescribeLiveTranscodeTemplatesResponse DescribeLiveTranscodeTemplates(DescribeLiveTranscodeTemplatesRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveTranscodeTemplates"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *获取单个水印信息 * @param req DescribeLiveWatermarkRequest * @return DescribeLiveWatermarkResponse * @throws TencentCloudSDKException */ public DescribeLiveWatermarkResponse DescribeLiveWatermark(DescribeLiveWatermarkRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveWatermark"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *获取水印规则列表 * @param req DescribeLiveWatermarkRulesRequest * @return DescribeLiveWatermarkRulesResponse * @throws TencentCloudSDKException */ public DescribeLiveWatermarkRulesResponse DescribeLiveWatermarkRules(DescribeLiveWatermarkRulesRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveWatermarkRules"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询水印列表 * @param req DescribeLiveWatermarksRequest * @return DescribeLiveWatermarksResponse * @throws TencentCloudSDKException */ public DescribeLiveWatermarksResponse DescribeLiveWatermarks(DescribeLiveWatermarksRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLiveWatermarks"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *批量获取日志URL。 * @param req DescribeLogDownloadListRequest * @return DescribeLogDownloadListResponse * @throws TencentCloudSDKException */ public DescribeLogDownloadListResponse DescribeLogDownloadList(DescribeLogDownloadListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeLogDownloadList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询下行播放错误码信息,某段时间内1分钟粒度的各http错误码出现的次数,包括4xx,5xx。 * @param req DescribePlayErrorCodeDetailInfoListRequest * @return DescribePlayErrorCodeDetailInfoListResponse * @throws TencentCloudSDKException */ public DescribePlayErrorCodeDetailInfoListResponse DescribePlayErrorCodeDetailInfoList(DescribePlayErrorCodeDetailInfoListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribePlayErrorCodeDetailInfoList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询下行播放错误码信息。 * @param req DescribePlayErrorCodeSumInfoListRequest * @return DescribePlayErrorCodeSumInfoListResponse * @throws TencentCloudSDKException */ public DescribePlayErrorCodeSumInfoListResponse DescribePlayErrorCodeSumInfoList(DescribePlayErrorCodeSumInfoListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribePlayErrorCodeSumInfoList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询某段时间内每个国家地区每个省份每个运营商的平均每秒流量,总流量,总请求数信息。 * @param req DescribeProIspPlaySumInfoListRequest * @return DescribeProIspPlaySumInfoListResponse * @throws TencentCloudSDKException */ public DescribeProIspPlaySumInfoListResponse DescribeProIspPlaySumInfoList(DescribeProIspPlaySumInfoListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeProIspPlaySumInfoList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询某省份某运营商下行播放数据,包括带宽,流量,请求数,并发连接数信息。 * @param req DescribeProvinceIspPlayInfoListRequest * @return DescribeProvinceIspPlayInfoListResponse * @throws TencentCloudSDKException */ public DescribeProvinceIspPlayInfoListResponse DescribeProvinceIspPlayInfoList(DescribeProvinceIspPlayInfoListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeProvinceIspPlayInfoList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询直播拉流配置。 * @param req DescribePullStreamConfigsRequest * @return DescribePullStreamConfigsResponse * @throws TencentCloudSDKException */ public DescribePullStreamConfigsResponse DescribePullStreamConfigs(DescribePullStreamConfigsRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribePullStreamConfigs"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *接口用来查询直播增值业务--截图的张数 * @param req DescribeScreenShotSheetNumListRequest * @return DescribeScreenShotSheetNumListResponse * @throws TencentCloudSDKException */ public DescribeScreenShotSheetNumListResponse DescribeScreenShotSheetNumList(DescribeScreenShotSheetNumListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeScreenShotSheetNumList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询天维度每条流的播放数据,包括总流量等。 * @param req DescribeStreamDayPlayInfoListRequest * @return DescribeStreamDayPlayInfoListResponse * @throws TencentCloudSDKException */ public DescribeStreamDayPlayInfoListResponse DescribeStreamDayPlayInfoList(DescribeStreamDayPlayInfoListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeStreamDayPlayInfoList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询播放数据,支持按流名称查询详细播放数据,也可按播放域名查询详细总数据。 注意:按AppName查询,需要联系客服同学提单支持。 * @param req DescribeStreamPlayInfoListRequest * @return DescribeStreamPlayInfoListResponse * @throws TencentCloudSDKException */ public DescribeStreamPlayInfoListResponse DescribeStreamPlayInfoList(DescribeStreamPlayInfoListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeStreamPlayInfoList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询流id的上行推流质量数据,包括音视频的帧率,码率,流逝时间,编码格式等。 * @param req DescribeStreamPushInfoListRequest * @return DescribeStreamPushInfoListResponse * @throws TencentCloudSDKException */ public DescribeStreamPushInfoListResponse DescribeStreamPushInfoList(DescribeStreamPushInfoListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeStreamPushInfoList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询某段时间top n客户端ip汇总信息(暂支持top 1000) * @param req DescribeTopClientIpSumInfoListRequest * @return DescribeTopClientIpSumInfoListResponse * @throws TencentCloudSDKException */ public DescribeTopClientIpSumInfoListResponse DescribeTopClientIpSumInfoList(DescribeTopClientIpSumInfoListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeTopClientIpSumInfoList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *查询某时间段top n的域名或流id信息(暂支持top 1000)。 * @param req DescribeVisitTopSumInfoListRequest * @return DescribeVisitTopSumInfoListResponse * @throws TencentCloudSDKException */ public DescribeVisitTopSumInfoListResponse DescribeVisitTopSumInfoList(DescribeVisitTopSumInfoListRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DescribeVisitTopSumInfoList"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *断开推流连接,但可以重新推流。 * @param req DropLiveStreamRequest * @return DropLiveStreamResponse * @throws TencentCloudSDKException */ public DropLiveStreamResponse DropLiveStream(DropLiveStreamRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "DropLiveStream"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *启用状态为停用的直播域名 * @param req EnableLiveDomainRequest * @return EnableLiveDomainResponse * @throws TencentCloudSDKException */ public EnableLiveDomainResponse EnableLiveDomain(EnableLiveDomainRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "EnableLiveDomain"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *停止使用某个直播域名。 * @param req ForbidLiveDomainRequest * @return ForbidLiveDomainResponse * @throws TencentCloudSDKException */ public ForbidLiveDomainResponse ForbidLiveDomain(ForbidLiveDomainRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "ForbidLiveDomain"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *禁止某条流的推送,可以预设某个时刻将流恢复。 * @param req ForbidLiveStreamRequest * @return ForbidLiveStreamResponse * @throws TencentCloudSDKException */ public ForbidLiveStreamResponse ForbidLiveStream(ForbidLiveStreamRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "ForbidLiveStream"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *修改回调模板。 * @param req ModifyLiveCallbackTemplateRequest * @return ModifyLiveCallbackTemplateResponse * @throws TencentCloudSDKException */ public ModifyLiveCallbackTemplateResponse ModifyLiveCallbackTemplate(ModifyLiveCallbackTemplateRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "ModifyLiveCallbackTemplate"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *修改证书 * @param req ModifyLiveCertRequest * @return ModifyLiveCertResponse * @throws TencentCloudSDKException */ public ModifyLiveCertResponse ModifyLiveCert(ModifyLiveCertRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "ModifyLiveCert"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *修改域名和证书绑定信息 * @param req ModifyLiveDomainCertRequest * @return ModifyLiveDomainCertResponse * @throws TencentCloudSDKException */ public ModifyLiveDomainCertResponse ModifyLiveDomainCert(ModifyLiveDomainCertRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "ModifyLiveDomainCert"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *修改播放鉴权key * @param req ModifyLivePlayAuthKeyRequest * @return ModifyLivePlayAuthKeyResponse * @throws TencentCloudSDKException */ public ModifyLivePlayAuthKeyResponse ModifyLivePlayAuthKey(ModifyLivePlayAuthKeyRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "ModifyLivePlayAuthKey"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *修改播放域名信息。 * @param req ModifyLivePlayDomainRequest * @return ModifyLivePlayDomainResponse * @throws TencentCloudSDKException */ public ModifyLivePlayDomainResponse ModifyLivePlayDomain(ModifyLivePlayDomainRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "ModifyLivePlayDomain"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *修改直播推流鉴权key * @param req ModifyLivePushAuthKeyRequest * @return ModifyLivePushAuthKeyResponse * @throws TencentCloudSDKException */ public ModifyLivePushAuthKeyResponse ModifyLivePushAuthKey(ModifyLivePushAuthKeyRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "ModifyLivePushAuthKey"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *修改录制模板配置 * @param req ModifyLiveRecordTemplateRequest * @return ModifyLiveRecordTemplateResponse * @throws TencentCloudSDKException */ public ModifyLiveRecordTemplateResponse ModifyLiveRecordTemplate(ModifyLiveRecordTemplateRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "ModifyLiveRecordTemplate"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *修改截图模板配置 * @param req ModifyLiveSnapshotTemplateRequest * @return ModifyLiveSnapshotTemplateResponse * @throws TencentCloudSDKException */ public ModifyLiveSnapshotTemplateResponse ModifyLiveSnapshotTemplate(ModifyLiveSnapshotTemplateRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "ModifyLiveSnapshotTemplate"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *修改转码模板配置 * @param req ModifyLiveTranscodeTemplateRequest * @return ModifyLiveTranscodeTemplateResponse * @throws TencentCloudSDKException */ public ModifyLiveTranscodeTemplateResponse ModifyLiveTranscodeTemplate(ModifyLiveTranscodeTemplateRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "ModifyLiveTranscodeTemplate"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *更新拉流配置。 * @param req ModifyPullStreamConfigRequest * @return ModifyPullStreamConfigResponse * @throws TencentCloudSDKException */ public ModifyPullStreamConfigResponse ModifyPullStreamConfig(ModifyPullStreamConfigRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "ModifyPullStreamConfig"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *修改直播拉流配置的状态。 * @param req ModifyPullStreamStatusRequest * @return ModifyPullStreamStatusResponse * @throws TencentCloudSDKException */ public ModifyPullStreamStatusResponse ModifyPullStreamStatus(ModifyPullStreamStatusRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "ModifyPullStreamStatus"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *恢复延迟播放设置 * @param req ResumeDelayLiveStreamRequest * @return ResumeDelayLiveStreamResponse * @throws TencentCloudSDKException */ public ResumeDelayLiveStreamResponse ResumeDelayLiveStream(ResumeDelayLiveStreamRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "ResumeDelayLiveStream"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *恢复某条流的推流。 * @param req ResumeLiveStreamRequest * @return ResumeLiveStreamResponse * @throws TencentCloudSDKException */ public ResumeLiveStreamResponse ResumeLiveStream(ResumeLiveStreamRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "ResumeLiveStream"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *说明:录制后的文件存放于点播平台。用户如需使用录制功能,需首先自行开通点播账号并确保账号可用。录制文件存放后,相关费用(含存储以及下行播放流量)按照点播平台计费方式收取,请参考对应文档。 * @param req StopLiveRecordRequest * @return StopLiveRecordResponse * @throws TencentCloudSDKException */ public StopLiveRecordResponse StopLiveRecord(StopLiveRecordRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "StopLiveRecord"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *解绑域名证书 * @param req UnBindLiveDomainCertRequest * @return UnBindLiveDomainCertResponse * @throws TencentCloudSDKException */ public UnBindLiveDomainCertResponse UnBindLiveDomainCert(UnBindLiveDomainCertRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "UnBindLiveDomainCert"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } /** *更新水印 * @param req UpdateLiveWatermarkRequest * @return UpdateLiveWatermarkResponse * @throws TencentCloudSDKException */ public UpdateLiveWatermarkResponse UpdateLiveWatermark(UpdateLiveWatermarkRequest req) throws TencentCloudSDKException{ JsonResponseModel rsp = null; try { Type type = new TypeToken>() { }.getType(); rsp = gson.fromJson(this.internalRequest(req, "UpdateLiveWatermark"), type); } catch (JsonSyntaxException e) { throw new TencentCloudSDKException(e.getMessage()); } return rsp.response; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy