Documentation
¶
Index ¶
- Constants
- type AddDelayLiveStreamRequest
- type AddDelayLiveStreamResponse
- type AddLiveWatermarkRequest
- type AddLiveWatermarkResponse
- type Client
- func (c *Client) AddDelayLiveStream(request *AddDelayLiveStreamRequest) (response *AddDelayLiveStreamResponse, err error)
- func (c *Client) AddLiveWatermark(request *AddLiveWatermarkRequest) (response *AddLiveWatermarkResponse, err error)
- func (c *Client) CreateLiveRecord(request *CreateLiveRecordRequest) (response *CreateLiveRecordResponse, err error)
- func (c *Client) CreatePullStreamConfig(request *CreatePullStreamConfigRequest) (response *CreatePullStreamConfigResponse, err error)
- func (c *Client) DeleteLiveRecord(request *DeleteLiveRecordRequest) (response *DeleteLiveRecordResponse, err error)
- func (c *Client) DeleteLiveWatermark(request *DeleteLiveWatermarkRequest) (response *DeleteLiveWatermarkResponse, err error)
- func (c *Client) DeletePullStreamConfig(request *DeletePullStreamConfigRequest) (response *DeletePullStreamConfigResponse, err error)
- func (c *Client) DescribeLivePlayAuthKey(request *DescribeLivePlayAuthKeyRequest) (response *DescribeLivePlayAuthKeyResponse, err error)
- func (c *Client) DescribeLivePushAuthKey(request *DescribeLivePushAuthKeyRequest) (response *DescribeLivePushAuthKeyResponse, err error)
- func (c *Client) DescribeLiveStreamOnlineInfo(request *DescribeLiveStreamOnlineInfoRequest) (response *DescribeLiveStreamOnlineInfoResponse, err error)
- func (c *Client) DescribeLiveStreamOnlineList(request *DescribeLiveStreamOnlineListRequest) (response *DescribeLiveStreamOnlineListResponse, err error)
- func (c *Client) DescribeLiveStreamPublishedList(request *DescribeLiveStreamPublishedListRequest) (response *DescribeLiveStreamPublishedListResponse, err error)
- func (c *Client) DescribeLiveStreamState(request *DescribeLiveStreamStateRequest) (response *DescribeLiveStreamStateResponse, err error)
- func (c *Client) DescribeLiveWatermarks(request *DescribeLiveWatermarksRequest) (response *DescribeLiveWatermarksResponse, err error)
- func (c *Client) DescribePullStreamConfigs(request *DescribePullStreamConfigsRequest) (response *DescribePullStreamConfigsResponse, err error)
- func (c *Client) DropLiveStream(request *DropLiveStreamRequest) (response *DropLiveStreamResponse, err error)
- func (c *Client) ForbidLiveStream(request *ForbidLiveStreamRequest) (response *ForbidLiveStreamResponse, err error)
- func (c *Client) ModifyLivePlayAuthKey(request *ModifyLivePlayAuthKeyRequest) (response *ModifyLivePlayAuthKeyResponse, err error)
- func (c *Client) ModifyLivePushAuthKey(request *ModifyLivePushAuthKeyRequest) (response *ModifyLivePushAuthKeyResponse, err error)
- func (c *Client) ModifyPullStreamConfig(request *ModifyPullStreamConfigRequest) (response *ModifyPullStreamConfigResponse, err error)
- func (c *Client) ModifyPullStreamStatus(request *ModifyPullStreamStatusRequest) (response *ModifyPullStreamStatusResponse, err error)
- func (c *Client) ResumeDelayLiveStream(request *ResumeDelayLiveStreamRequest) (response *ResumeDelayLiveStreamResponse, err error)
- func (c *Client) ResumeLiveStream(request *ResumeLiveStreamRequest) (response *ResumeLiveStreamResponse, err error)
- func (c *Client) SetLiveWatermarkStatus(request *SetLiveWatermarkStatusRequest) (response *SetLiveWatermarkStatusResponse, err error)
- func (c *Client) StopLiveRecord(request *StopLiveRecordRequest) (response *StopLiveRecordResponse, err error)
- func (c *Client) UpdateLiveWatermark(request *UpdateLiveWatermarkRequest) (response *UpdateLiveWatermarkResponse, err error)
- type CreateLiveRecordRequest
- type CreateLiveRecordResponse
- type CreatePullStreamConfigRequest
- type CreatePullStreamConfigResponse
- type DeleteLiveRecordRequest
- type DeleteLiveRecordResponse
- type DeleteLiveWatermarkRequest
- type DeleteLiveWatermarkResponse
- type DeletePullStreamConfigRequest
- type DeletePullStreamConfigResponse
- type DescribeLivePlayAuthKeyRequest
- type DescribeLivePlayAuthKeyResponse
- type DescribeLivePushAuthKeyRequest
- type DescribeLivePushAuthKeyResponse
- type DescribeLiveStreamOnlineInfoRequest
- type DescribeLiveStreamOnlineInfoResponse
- type DescribeLiveStreamOnlineListRequest
- type DescribeLiveStreamOnlineListResponse
- type DescribeLiveStreamPublishedListRequest
- type DescribeLiveStreamPublishedListResponse
- type DescribeLiveStreamStateRequest
- type DescribeLiveStreamStateResponse
- type DescribeLiveWatermarksRequest
- type DescribeLiveWatermarksResponse
- type DescribePullStreamConfigsRequest
- type DescribePullStreamConfigsResponse
- type DropLiveStreamRequest
- type DropLiveStreamResponse
- type ForbidLiveStreamRequest
- type ForbidLiveStreamResponse
- type ModifyLivePlayAuthKeyRequest
- type ModifyLivePlayAuthKeyResponse
- type ModifyLivePushAuthKeyRequest
- type ModifyLivePushAuthKeyResponse
- type ModifyPullStreamConfigRequest
- type ModifyPullStreamConfigResponse
- type ModifyPullStreamStatusRequest
- type ModifyPullStreamStatusResponse
- type PlayAuthKeyInfo
- type PublishTime
- type PullStreamConfig
- type PushAuthKeyInfo
- type ResumeDelayLiveStreamRequest
- type ResumeDelayLiveStreamResponse
- type ResumeLiveStreamRequest
- type ResumeLiveStreamResponse
- type SetLiveWatermarkStatusRequest
- type SetLiveWatermarkStatusResponse
- type StopLiveRecordRequest
- type StopLiveRecordResponse
- type StreamInfo
- type StreamName
- type StreamOnlineInfo
- type UpdateLiveWatermarkRequest
- type UpdateLiveWatermarkResponse
- type WatermarkInfo
Constants ¶
View Source
const APIVersion = "2018-08-01"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddDelayLiveStreamRequest ¶
type AddDelayLiveStreamRequest struct {
*tchttp.BaseRequest
// 应用名称。
AppName *string `json:"AppName" name:"AppName"`
// 您的加速域名。
DomainName *string `json:"DomainName" name:"DomainName"`
// 流名称。
StreamName *string `json:"StreamName" name:"StreamName"`
// 延播时间,单位:秒,上限:600秒。
DelayTime *uint64 `json:"DelayTime" name:"DelayTime"`
// 延播设置的过期时间。UTC 格式,例如:2018-11-29T19:00:00Z。
// 注意:默认7天后过期,且最长支持7天内生效。
ExpireTime *string `json:"ExpireTime" name:"ExpireTime"`
}
func NewAddDelayLiveStreamRequest ¶
func NewAddDelayLiveStreamRequest() (request *AddDelayLiveStreamRequest)
func (*AddDelayLiveStreamRequest) FromJsonString ¶
func (r *AddDelayLiveStreamRequest) FromJsonString(s string) error
func (*AddDelayLiveStreamRequest) ToJsonString ¶
func (r *AddDelayLiveStreamRequest) ToJsonString() string
type AddDelayLiveStreamResponse ¶
type AddDelayLiveStreamResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewAddDelayLiveStreamResponse ¶
func NewAddDelayLiveStreamResponse() (response *AddDelayLiveStreamResponse)
func (*AddDelayLiveStreamResponse) FromJsonString ¶
func (r *AddDelayLiveStreamResponse) FromJsonString(s string) error
func (*AddDelayLiveStreamResponse) ToJsonString ¶
func (r *AddDelayLiveStreamResponse) ToJsonString() string
type AddLiveWatermarkRequest ¶
type AddLiveWatermarkRequest struct {
*tchttp.BaseRequest
// 水印图片url。
PictureUrl *string `json:"PictureUrl" name:"PictureUrl"`
// 水印名称。
WatermarkName *string `json:"WatermarkName" name:"WatermarkName"`
// 显示位置,X轴偏移。
XPosition *int64 `json:"XPosition" name:"XPosition"`
// 显示位置,Y轴偏移。
YPosition *int64 `json:"YPosition" name:"YPosition"`
}
func NewAddLiveWatermarkRequest ¶
func NewAddLiveWatermarkRequest() (request *AddLiveWatermarkRequest)
func (*AddLiveWatermarkRequest) FromJsonString ¶
func (r *AddLiveWatermarkRequest) FromJsonString(s string) error
func (*AddLiveWatermarkRequest) ToJsonString ¶
func (r *AddLiveWatermarkRequest) ToJsonString() string
type AddLiveWatermarkResponse ¶
type AddLiveWatermarkResponse struct {
*tchttp.BaseResponse
Response *struct {
// 水印ID。
WatermarkId *uint64 `json:"WatermarkId" name:"WatermarkId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewAddLiveWatermarkResponse ¶
func NewAddLiveWatermarkResponse() (response *AddLiveWatermarkResponse)
func (*AddLiveWatermarkResponse) FromJsonString ¶
func (r *AddLiveWatermarkResponse) FromJsonString(s string) error
func (*AddLiveWatermarkResponse) ToJsonString ¶
func (r *AddLiveWatermarkResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AddDelayLiveStream ¶
func (c *Client) AddDelayLiveStream(request *AddDelayLiveStreamRequest) (response *AddDelayLiveStreamResponse, err error)
对流设置延播时间 注意:如果在推流前设置延播,需要提前5分钟设置。
func (*Client) AddLiveWatermark ¶
func (c *Client) AddLiveWatermark(request *AddLiveWatermarkRequest) (response *AddLiveWatermarkResponse, err error)
添加水印
func (*Client) CreateLiveRecord ¶
func (c *Client) CreateLiveRecord(request *CreateLiveRecordRequest) (response *CreateLiveRecordResponse, err error)
- 使用前提
- 录制文件存放于点播平台,所以用户如需使用录制功能,需首先自行开通点播服务。
- 录制文件存放后相关费用(含存储以及下行播放流量)按照点播平台计费方式收取,具体请参考 [对应文档](https://cloud.tencent.com/document/product/266/2838)。
- 模式说明 该接口支持两种录制模式: 1. 定时录制模式。 需要传入开始时间与结束时间,录制任务根据时间自动开始与结束。 2. 实时视频录制模式。 忽略传入的开始时间,在录制任务创建后立即开始录制,录制时长支持最大为30分钟,如果传入的结束时间与当前时间差大于30分钟,则按30分钟计算,实时视频录制主要用于录制精彩视频场景,时长建议控制在5分钟以内。
- 注意事项
- 调用接口超时设置应大于3秒,小于3秒重试以及频繁调用都有可能产生重复录制任务。
func (*Client) CreatePullStreamConfig ¶
func (c *Client) CreatePullStreamConfig(request *CreatePullStreamConfigRequest) (response *CreatePullStreamConfigResponse, err error)
添加拉流配置,目前限制添加10条任务。
func (*Client) DeleteLiveRecord ¶
func (c *Client) DeleteLiveRecord(request *DeleteLiveRecordRequest) (response *DeleteLiveRecordResponse, err error)
用于删除录制任务
func (*Client) DeleteLiveWatermark ¶
func (c *Client) DeleteLiveWatermark(request *DeleteLiveWatermarkRequest) (response *DeleteLiveWatermarkResponse, err error)
删除水印
func (*Client) DeletePullStreamConfig ¶
func (c *Client) DeletePullStreamConfig(request *DeletePullStreamConfigRequest) (response *DeletePullStreamConfigResponse, err error)
删除直播拉流配置
func (*Client) DescribeLivePlayAuthKey ¶
func (c *Client) DescribeLivePlayAuthKey(request *DescribeLivePlayAuthKeyRequest) (response *DescribeLivePlayAuthKeyResponse, err error)
查询播放鉴权key
func (*Client) DescribeLivePushAuthKey ¶
func (c *Client) DescribeLivePushAuthKey(request *DescribeLivePushAuthKeyRequest) (response *DescribeLivePushAuthKeyResponse, err error)
查询直播推流鉴权key
func (*Client) DescribeLiveStreamOnlineInfo ¶
func (c *Client) DescribeLiveStreamOnlineInfo(request *DescribeLiveStreamOnlineInfoRequest) (response *DescribeLiveStreamOnlineInfoResponse, err error)
查询在线推流信息列表
func (*Client) DescribeLiveStreamOnlineList ¶
func (c *Client) DescribeLiveStreamOnlineList(request *DescribeLiveStreamOnlineListRequest) (response *DescribeLiveStreamOnlineListResponse, err error)
返回正在直播中的流列表
func (*Client) DescribeLiveStreamPublishedList ¶
func (c *Client) DescribeLiveStreamPublishedList(request *DescribeLiveStreamPublishedListRequest) (response *DescribeLiveStreamPublishedListResponse, err error)
返回已经推过流的流列表
func (*Client) DescribeLiveStreamState ¶
func (c *Client) DescribeLiveStreamState(request *DescribeLiveStreamStateRequest) (response *DescribeLiveStreamStateResponse, err error)
返回直播中、无推流或者禁播等状态
func (*Client) DescribeLiveWatermarks ¶
func (c *Client) DescribeLiveWatermarks(request *DescribeLiveWatermarksRequest) (response *DescribeLiveWatermarksResponse, err error)
查询水印列表
func (*Client) DescribePullStreamConfigs ¶
func (c *Client) DescribePullStreamConfigs(request *DescribePullStreamConfigsRequest) (response *DescribePullStreamConfigsResponse, err error)
查询拉流配置
func (*Client) DropLiveStream ¶
func (c *Client) DropLiveStream(request *DropLiveStreamRequest) (response *DropLiveStreamResponse, err error)
断开推流连接,但可以重新推流
func (*Client) ForbidLiveStream ¶
func (c *Client) ForbidLiveStream(request *ForbidLiveStreamRequest) (response *ForbidLiveStreamResponse, err error)
禁止某条流的推送,可以预设某个时刻将流恢复。
func (*Client) ModifyLivePlayAuthKey ¶
func (c *Client) ModifyLivePlayAuthKey(request *ModifyLivePlayAuthKeyRequest) (response *ModifyLivePlayAuthKeyResponse, err error)
修改播放鉴权key
func (*Client) ModifyLivePushAuthKey ¶
func (c *Client) ModifyLivePushAuthKey(request *ModifyLivePushAuthKeyRequest) (response *ModifyLivePushAuthKeyResponse, err error)
修改直播推流鉴权key
func (*Client) ModifyPullStreamConfig ¶
func (c *Client) ModifyPullStreamConfig(request *ModifyPullStreamConfigRequest) (response *ModifyPullStreamConfigResponse, err error)
更新拉流配置
func (*Client) ModifyPullStreamStatus ¶
func (c *Client) ModifyPullStreamStatus(request *ModifyPullStreamStatusRequest) (response *ModifyPullStreamStatusResponse, err error)
修改直播拉流配置状态
func (*Client) ResumeDelayLiveStream ¶
func (c *Client) ResumeDelayLiveStream(request *ResumeDelayLiveStreamRequest) (response *ResumeDelayLiveStreamResponse, err error)
恢复延迟播放设置
func (*Client) ResumeLiveStream ¶
func (c *Client) ResumeLiveStream(request *ResumeLiveStreamRequest) (response *ResumeLiveStreamResponse, err error)
恢复某条流的推送。
func (*Client) SetLiveWatermarkStatus ¶
func (c *Client) SetLiveWatermarkStatus(request *SetLiveWatermarkStatusRequest) (response *SetLiveWatermarkStatusResponse, err error)
设置水印是否启用
func (*Client) StopLiveRecord ¶
func (c *Client) StopLiveRecord(request *StopLiveRecordRequest) (response *StopLiveRecordResponse, err error)
说明:录制后的文件存放于点播平台。用户如需使用录制功能,需首先自行开通点播账号并确保账号可用。录制文件存放后,相关费用(含存储以及下行播放流量)按照点播平台计费方式收取,请参考对应文档。
func (*Client) UpdateLiveWatermark ¶
func (c *Client) UpdateLiveWatermark(request *UpdateLiveWatermarkRequest) (response *UpdateLiveWatermarkResponse, err error)
更新水印
type CreateLiveRecordRequest ¶
type CreateLiveRecordRequest struct {
*tchttp.BaseRequest
// 流名称。
StreamName *string `json:"StreamName" name:"StreamName"`
// 直播流所属应用名称。
AppName *string `json:"AppName" name:"AppName"`
// 推流域名。多域名推流必须设置。
DomainName *string `json:"DomainName" name:"DomainName"`
// 任务起始时间,中国标准时间,需要URLEncode。如 2017-01-01 10:10:01,编码为:2017-01-01+10%3a10%3a01。录制视频为精彩视频时,忽略此字段。
StartTime *string `json:"StartTime" name:"StartTime"`
// 任务结束时间,中国标准时间,需要URLEncode。如 2017-01-01 10:30:01,编码为:2017-01-01+10%3a30%3a01。若指定精彩视频录制,结束时间不超过当前时间+30分钟,如果超过或小于起始时间,则实际结束时间为当前时间+30分钟。
EndTime *string `json:"EndTime" name:"EndTime"`
// 录制类型。不区分大小写。
// “video” : 音视频录制【默认】。
// “audio” : 纯音频录制。
RecordType *string `json:"RecordType" name:"RecordType"`
// 录制文件格式。不区分大小写。其值为:
// “flv”,“hls”,”mp4”,“aac”,”mp3”,默认“flv”。
FileFormat *string `json:"FileFormat" name:"FileFormat"`
// 精彩视频标志。0:普通视频【默认】;1:精彩视频。
Highlight *int64 `json:"Highlight" name:"Highlight"`
// A+B=C混流标志。0:非A+B=C混流录制【默认】;1:标示为A+B=C混流录制。
MixStream *int64 `json:"MixStream" name:"MixStream"`
// 录制流参数,当前支持以下参数:
// interval 录制分片时长,单位 秒,0 - 7200
// storage_time 录制文件存储时长,单位 秒
// eg. interval=3600&storage_time=7200
// 注:参数需要url encode。
StreamParam *string `json:"StreamParam" name:"StreamParam"`
}
func NewCreateLiveRecordRequest ¶
func NewCreateLiveRecordRequest() (request *CreateLiveRecordRequest)
func (*CreateLiveRecordRequest) FromJsonString ¶
func (r *CreateLiveRecordRequest) FromJsonString(s string) error
func (*CreateLiveRecordRequest) ToJsonString ¶
func (r *CreateLiveRecordRequest) ToJsonString() string
type CreateLiveRecordResponse ¶
type CreateLiveRecordResponse struct {
*tchttp.BaseResponse
Response *struct {
// 任务ID,全局唯一标识录制任务。
TaskId *uint64 `json:"TaskId" name:"TaskId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewCreateLiveRecordResponse ¶
func NewCreateLiveRecordResponse() (response *CreateLiveRecordResponse)
func (*CreateLiveRecordResponse) FromJsonString ¶
func (r *CreateLiveRecordResponse) FromJsonString(s string) error
func (*CreateLiveRecordResponse) ToJsonString ¶
func (r *CreateLiveRecordResponse) ToJsonString() string
type CreatePullStreamConfigRequest ¶
type CreatePullStreamConfigRequest struct {
*tchttp.BaseRequest
// 源Url。
FromUrl *string `json:"FromUrl" name:"FromUrl"`
// 目的Url,目前限制该目标地址为腾讯域名。
ToUrl *string `json:"ToUrl" name:"ToUrl"`
// 区域id,1-深圳,2-上海,3-天津,4-香港。
AreaId *int64 `json:"AreaId" name:"AreaId"`
// 运营商id,1-电信,2-移动,3-联通,4-其他,AreaId为4的时候,IspId只能为其他。
IspId *int64 `json:"IspId" name:"IspId"`
// 开始时间。
StartTime *string `json:"StartTime" name:"StartTime"`
// 结束时间,注意:
// 1. 结束时间必须大于开始时间;
// 2. 结束时间和开始时间必须大于当前时间;
// 3. 结束时间 和 开始时间 间隔必须小于七天。
EndTime *string `json:"EndTime" name:"EndTime"`
}
func NewCreatePullStreamConfigRequest ¶
func NewCreatePullStreamConfigRequest() (request *CreatePullStreamConfigRequest)
func (*CreatePullStreamConfigRequest) FromJsonString ¶
func (r *CreatePullStreamConfigRequest) FromJsonString(s string) error
func (*CreatePullStreamConfigRequest) ToJsonString ¶
func (r *CreatePullStreamConfigRequest) ToJsonString() string
type CreatePullStreamConfigResponse ¶
type CreatePullStreamConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// 配置成功后的id。
ConfigId *string `json:"ConfigId" name:"ConfigId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewCreatePullStreamConfigResponse ¶
func NewCreatePullStreamConfigResponse() (response *CreatePullStreamConfigResponse)
func (*CreatePullStreamConfigResponse) FromJsonString ¶
func (r *CreatePullStreamConfigResponse) FromJsonString(s string) error
func (*CreatePullStreamConfigResponse) ToJsonString ¶
func (r *CreatePullStreamConfigResponse) ToJsonString() string
type DeleteLiveRecordRequest ¶
type DeleteLiveRecordRequest struct {
*tchttp.BaseRequest
// 流名称。
StreamName *string `json:"StreamName" name:"StreamName"`
// 任务ID,全局唯一标识录制任务。
TaskId *int64 `json:"TaskId" name:"TaskId"`
}
func NewDeleteLiveRecordRequest ¶
func NewDeleteLiveRecordRequest() (request *DeleteLiveRecordRequest)
func (*DeleteLiveRecordRequest) FromJsonString ¶
func (r *DeleteLiveRecordRequest) FromJsonString(s string) error
func (*DeleteLiveRecordRequest) ToJsonString ¶
func (r *DeleteLiveRecordRequest) ToJsonString() string
type DeleteLiveRecordResponse ¶
type DeleteLiveRecordResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteLiveRecordResponse ¶
func NewDeleteLiveRecordResponse() (response *DeleteLiveRecordResponse)
func (*DeleteLiveRecordResponse) FromJsonString ¶
func (r *DeleteLiveRecordResponse) FromJsonString(s string) error
func (*DeleteLiveRecordResponse) ToJsonString ¶
func (r *DeleteLiveRecordResponse) ToJsonString() string
type DeleteLiveWatermarkRequest ¶
type DeleteLiveWatermarkRequest struct {
*tchttp.BaseRequest
// 水印ID。
WatermarkId *int64 `json:"WatermarkId" name:"WatermarkId"`
}
func NewDeleteLiveWatermarkRequest ¶
func NewDeleteLiveWatermarkRequest() (request *DeleteLiveWatermarkRequest)
func (*DeleteLiveWatermarkRequest) FromJsonString ¶
func (r *DeleteLiveWatermarkRequest) FromJsonString(s string) error
func (*DeleteLiveWatermarkRequest) ToJsonString ¶
func (r *DeleteLiveWatermarkRequest) ToJsonString() string
type DeleteLiveWatermarkResponse ¶
type DeleteLiveWatermarkResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteLiveWatermarkResponse ¶
func NewDeleteLiveWatermarkResponse() (response *DeleteLiveWatermarkResponse)
func (*DeleteLiveWatermarkResponse) FromJsonString ¶
func (r *DeleteLiveWatermarkResponse) FromJsonString(s string) error
func (*DeleteLiveWatermarkResponse) ToJsonString ¶
func (r *DeleteLiveWatermarkResponse) ToJsonString() string
type DeletePullStreamConfigRequest ¶
type DeletePullStreamConfigRequest struct {
*tchttp.BaseRequest
// 配置id。
ConfigId *string `json:"ConfigId" name:"ConfigId"`
}
func NewDeletePullStreamConfigRequest ¶
func NewDeletePullStreamConfigRequest() (request *DeletePullStreamConfigRequest)
func (*DeletePullStreamConfigRequest) FromJsonString ¶
func (r *DeletePullStreamConfigRequest) FromJsonString(s string) error
func (*DeletePullStreamConfigRequest) ToJsonString ¶
func (r *DeletePullStreamConfigRequest) ToJsonString() string
type DeletePullStreamConfigResponse ¶
type DeletePullStreamConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewDeletePullStreamConfigResponse ¶
func NewDeletePullStreamConfigResponse() (response *DeletePullStreamConfigResponse)
func (*DeletePullStreamConfigResponse) FromJsonString ¶
func (r *DeletePullStreamConfigResponse) FromJsonString(s string) error
func (*DeletePullStreamConfigResponse) ToJsonString ¶
func (r *DeletePullStreamConfigResponse) ToJsonString() string
type DescribeLivePlayAuthKeyRequest ¶
type DescribeLivePlayAuthKeyRequest struct {
*tchttp.BaseRequest
// 域名。
DomainName *string `json:"DomainName" name:"DomainName"`
}
func NewDescribeLivePlayAuthKeyRequest ¶
func NewDescribeLivePlayAuthKeyRequest() (request *DescribeLivePlayAuthKeyRequest)
func (*DescribeLivePlayAuthKeyRequest) FromJsonString ¶
func (r *DescribeLivePlayAuthKeyRequest) FromJsonString(s string) error
func (*DescribeLivePlayAuthKeyRequest) ToJsonString ¶
func (r *DescribeLivePlayAuthKeyRequest) ToJsonString() string
type DescribeLivePlayAuthKeyResponse ¶
type DescribeLivePlayAuthKeyResponse struct {
*tchttp.BaseResponse
Response *struct {
// 播放鉴权key信息。
PlayAuthKeyInfo *PlayAuthKeyInfo `json:"PlayAuthKeyInfo" name:"PlayAuthKeyInfo"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeLivePlayAuthKeyResponse ¶
func NewDescribeLivePlayAuthKeyResponse() (response *DescribeLivePlayAuthKeyResponse)
func (*DescribeLivePlayAuthKeyResponse) FromJsonString ¶
func (r *DescribeLivePlayAuthKeyResponse) FromJsonString(s string) error
func (*DescribeLivePlayAuthKeyResponse) ToJsonString ¶
func (r *DescribeLivePlayAuthKeyResponse) ToJsonString() string
type DescribeLivePushAuthKeyRequest ¶
type DescribeLivePushAuthKeyRequest struct {
*tchttp.BaseRequest
// 推流域名。
DomainName *string `json:"DomainName" name:"DomainName"`
}
func NewDescribeLivePushAuthKeyRequest ¶
func NewDescribeLivePushAuthKeyRequest() (request *DescribeLivePushAuthKeyRequest)
func (*DescribeLivePushAuthKeyRequest) FromJsonString ¶
func (r *DescribeLivePushAuthKeyRequest) FromJsonString(s string) error
func (*DescribeLivePushAuthKeyRequest) ToJsonString ¶
func (r *DescribeLivePushAuthKeyRequest) ToJsonString() string
type DescribeLivePushAuthKeyResponse ¶
type DescribeLivePushAuthKeyResponse struct {
*tchttp.BaseResponse
Response *struct {
// 推流鉴权key信息。
PushAuthKeyInfo *PushAuthKeyInfo `json:"PushAuthKeyInfo" name:"PushAuthKeyInfo"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeLivePushAuthKeyResponse ¶
func NewDescribeLivePushAuthKeyResponse() (response *DescribeLivePushAuthKeyResponse)
func (*DescribeLivePushAuthKeyResponse) FromJsonString ¶
func (r *DescribeLivePushAuthKeyResponse) FromJsonString(s string) error
func (*DescribeLivePushAuthKeyResponse) ToJsonString ¶
func (r *DescribeLivePushAuthKeyResponse) ToJsonString() string
type DescribeLiveStreamOnlineInfoRequest ¶
type DescribeLiveStreamOnlineInfoRequest struct {
*tchttp.BaseRequest
// 取得第几页。
// 默认值:1
PageNum *uint64 `json:"PageNum" name:"PageNum"`
// 分页大小。
// 最大值:100。
// 取值范围:10~100 之前的任意整数。
// 默认值:10
PageSize *uint64 `json:"PageSize" name:"PageSize"`
// 0:未开始推流 1:正在推流 2:服务出错 3:已关闭。
Status *int64 `json:"Status" name:"Status"`
// 流名称。
StreamName *string `json:"StreamName" name:"StreamName"`
}
func NewDescribeLiveStreamOnlineInfoRequest ¶
func NewDescribeLiveStreamOnlineInfoRequest() (request *DescribeLiveStreamOnlineInfoRequest)
func (*DescribeLiveStreamOnlineInfoRequest) FromJsonString ¶
func (r *DescribeLiveStreamOnlineInfoRequest) FromJsonString(s string) error
func (*DescribeLiveStreamOnlineInfoRequest) ToJsonString ¶
func (r *DescribeLiveStreamOnlineInfoRequest) ToJsonString() string
type DescribeLiveStreamOnlineInfoResponse ¶
type DescribeLiveStreamOnlineInfoResponse struct {
*tchttp.BaseResponse
Response *struct {
// 分页的页码。
PageNum *uint64 `json:"PageNum" name:"PageNum"`
// 每页大小
PageSize *uint64 `json:"PageSize" name:"PageSize"`
// 符合条件的总个数。
TotalNum *uint64 `json:"TotalNum" name:"TotalNum"`
// 总页数。
TotalPage *uint64 `json:"TotalPage" name:"TotalPage"`
// 流信息列表
StreamInfoList []*StreamInfo `json:"StreamInfoList" name:"StreamInfoList" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeLiveStreamOnlineInfoResponse ¶
func NewDescribeLiveStreamOnlineInfoResponse() (response *DescribeLiveStreamOnlineInfoResponse)
func (*DescribeLiveStreamOnlineInfoResponse) FromJsonString ¶
func (r *DescribeLiveStreamOnlineInfoResponse) FromJsonString(s string) error
func (*DescribeLiveStreamOnlineInfoResponse) ToJsonString ¶
func (r *DescribeLiveStreamOnlineInfoResponse) ToJsonString() string
type DescribeLiveStreamOnlineListRequest ¶
type DescribeLiveStreamOnlineListRequest struct {
*tchttp.BaseRequest
// 您的加速域名。
DomainName *string `json:"DomainName" name:"DomainName"`
// 应用名称。
AppName *string `json:"AppName" name:"AppName"`
// 取得第几页,默认1。
PageNum *uint64 `json:"PageNum" name:"PageNum"`
// 每页大小,最大100。
// 取值:1~100之前的任意整数。
// 默认值:10
PageSize *uint64 `json:"PageSize" name:"PageSize"`
}
func NewDescribeLiveStreamOnlineListRequest ¶
func NewDescribeLiveStreamOnlineListRequest() (request *DescribeLiveStreamOnlineListRequest)
func (*DescribeLiveStreamOnlineListRequest) FromJsonString ¶
func (r *DescribeLiveStreamOnlineListRequest) FromJsonString(s string) error
func (*DescribeLiveStreamOnlineListRequest) ToJsonString ¶
func (r *DescribeLiveStreamOnlineListRequest) ToJsonString() string
type DescribeLiveStreamOnlineListResponse ¶
type DescribeLiveStreamOnlineListResponse struct {
*tchttp.BaseResponse
Response *struct {
// 符合条件的总个数。
TotalNum *uint64 `json:"TotalNum" name:"TotalNum"`
// 总页数。
TotalPage *uint64 `json:"TotalPage" name:"TotalPage"`
// 分页的页码。
PageNum *uint64 `json:"PageNum" name:"PageNum"`
// 每页显示的条数。
PageSize *uint64 `json:"PageSize" name:"PageSize"`
// 正在推送流的信息列表
OnlineInfo []*StreamOnlineInfo `json:"OnlineInfo" name:"OnlineInfo" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeLiveStreamOnlineListResponse ¶
func NewDescribeLiveStreamOnlineListResponse() (response *DescribeLiveStreamOnlineListResponse)
func (*DescribeLiveStreamOnlineListResponse) FromJsonString ¶
func (r *DescribeLiveStreamOnlineListResponse) FromJsonString(s string) error
func (*DescribeLiveStreamOnlineListResponse) ToJsonString ¶
func (r *DescribeLiveStreamOnlineListResponse) ToJsonString() string
type DescribeLiveStreamPublishedListRequest ¶
type DescribeLiveStreamPublishedListRequest struct {
*tchttp.BaseRequest
// 您的域名。
DomainName *string `json:"DomainName" name:"DomainName"`
// 结束时间。
// UTC 格式,例如:2016-06-30T19:00:00Z。
// 不超过当前时间。
EndTime *string `json:"EndTime" name:"EndTime"`
// 起始时间。
// UTC 格式,例如:2016-06-29T19:00:00Z。
// 和当前时间相隔不超过7天。
StartTime *string `json:"StartTime" name:"StartTime"`
// 直播流所属应用名称。
AppName *string `json:"AppName" name:"AppName"`
// 取得第几页。
// 默认值:1
PageNum *uint64 `json:"PageNum" name:"PageNum"`
// 分页大小。
//
// 最大值:100。
// 取值范围:1~100 之前的任意整数。
// 默认值:10
PageSize *uint64 `json:"PageSize" name:"PageSize"`
}
func NewDescribeLiveStreamPublishedListRequest ¶
func NewDescribeLiveStreamPublishedListRequest() (request *DescribeLiveStreamPublishedListRequest)
func (*DescribeLiveStreamPublishedListRequest) FromJsonString ¶
func (r *DescribeLiveStreamPublishedListRequest) FromJsonString(s string) error
func (*DescribeLiveStreamPublishedListRequest) ToJsonString ¶
func (r *DescribeLiveStreamPublishedListRequest) ToJsonString() string
type DescribeLiveStreamPublishedListResponse ¶
type DescribeLiveStreamPublishedListResponse struct {
*tchttp.BaseResponse
Response *struct {
// 推流记录信息。
PublishInfo []*StreamName `json:"PublishInfo" name:"PublishInfo" list`
// 分页的页码。
PageNum *uint64 `json:"PageNum" name:"PageNum"`
// 每页大小
PageSize *uint64 `json:"PageSize" name:"PageSize"`
// 符合条件的总个数。
TotalNum *uint64 `json:"TotalNum" name:"TotalNum"`
// 总页数。
TotalPage *uint64 `json:"TotalPage" name:"TotalPage"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeLiveStreamPublishedListResponse ¶
func NewDescribeLiveStreamPublishedListResponse() (response *DescribeLiveStreamPublishedListResponse)
func (*DescribeLiveStreamPublishedListResponse) FromJsonString ¶
func (r *DescribeLiveStreamPublishedListResponse) FromJsonString(s string) error
func (*DescribeLiveStreamPublishedListResponse) ToJsonString ¶
func (r *DescribeLiveStreamPublishedListResponse) ToJsonString() string
type DescribeLiveStreamStateRequest ¶
type DescribeLiveStreamStateRequest struct {
*tchttp.BaseRequest
// 应用名称。
AppName *string `json:"AppName" name:"AppName"`
// 您的推流域名。
DomainName *string `json:"DomainName" name:"DomainName"`
// 流名称。
StreamName *string `json:"StreamName" name:"StreamName"`
}
func NewDescribeLiveStreamStateRequest ¶
func NewDescribeLiveStreamStateRequest() (request *DescribeLiveStreamStateRequest)
func (*DescribeLiveStreamStateRequest) FromJsonString ¶
func (r *DescribeLiveStreamStateRequest) FromJsonString(s string) error
func (*DescribeLiveStreamStateRequest) ToJsonString ¶
func (r *DescribeLiveStreamStateRequest) ToJsonString() string
type DescribeLiveStreamStateResponse ¶
type DescribeLiveStreamStateResponse struct {
*tchttp.BaseResponse
Response *struct {
// 流状态,
// active:活跃,
// inactive:非活跃,
// forbid:禁播。
StreamState *string `json:"StreamState" name:"StreamState"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeLiveStreamStateResponse ¶
func NewDescribeLiveStreamStateResponse() (response *DescribeLiveStreamStateResponse)
func (*DescribeLiveStreamStateResponse) FromJsonString ¶
func (r *DescribeLiveStreamStateResponse) FromJsonString(s string) error
func (*DescribeLiveStreamStateResponse) ToJsonString ¶
func (r *DescribeLiveStreamStateResponse) ToJsonString() string
type DescribeLiveWatermarksRequest ¶
type DescribeLiveWatermarksRequest struct {
*tchttp.BaseRequest
}
func NewDescribeLiveWatermarksRequest ¶
func NewDescribeLiveWatermarksRequest() (request *DescribeLiveWatermarksRequest)
func (*DescribeLiveWatermarksRequest) FromJsonString ¶
func (r *DescribeLiveWatermarksRequest) FromJsonString(s string) error
func (*DescribeLiveWatermarksRequest) ToJsonString ¶
func (r *DescribeLiveWatermarksRequest) ToJsonString() string
type DescribeLiveWatermarksResponse ¶
type DescribeLiveWatermarksResponse struct {
*tchttp.BaseResponse
Response *struct {
// 水印总个数。
TotalNum *uint64 `json:"TotalNum" name:"TotalNum"`
// 水印信息列表。
WatermarkList []*WatermarkInfo `json:"WatermarkList" name:"WatermarkList" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewDescribeLiveWatermarksResponse ¶
func NewDescribeLiveWatermarksResponse() (response *DescribeLiveWatermarksResponse)
func (*DescribeLiveWatermarksResponse) FromJsonString ¶
func (r *DescribeLiveWatermarksResponse) FromJsonString(s string) error
func (*DescribeLiveWatermarksResponse) ToJsonString ¶
func (r *DescribeLiveWatermarksResponse) ToJsonString() string
type DescribePullStreamConfigsRequest ¶
type DescribePullStreamConfigsRequest struct {
*tchttp.BaseRequest
// 配置id。
ConfigId *string `json:"ConfigId" name:"ConfigId"`
}
func NewDescribePullStreamConfigsRequest ¶
func NewDescribePullStreamConfigsRequest() (request *DescribePullStreamConfigsRequest)
func (*DescribePullStreamConfigsRequest) FromJsonString ¶
func (r *DescribePullStreamConfigsRequest) FromJsonString(s string) error
func (*DescribePullStreamConfigsRequest) ToJsonString ¶
func (r *DescribePullStreamConfigsRequest) ToJsonString() string
type DescribePullStreamConfigsResponse ¶
type DescribePullStreamConfigsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 拉流配置。
PullStreamConfigs []*PullStreamConfig `json:"PullStreamConfigs" name:"PullStreamConfigs" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewDescribePullStreamConfigsResponse ¶
func NewDescribePullStreamConfigsResponse() (response *DescribePullStreamConfigsResponse)
func (*DescribePullStreamConfigsResponse) FromJsonString ¶
func (r *DescribePullStreamConfigsResponse) FromJsonString(s string) error
func (*DescribePullStreamConfigsResponse) ToJsonString ¶
func (r *DescribePullStreamConfigsResponse) ToJsonString() string
type DropLiveStreamRequest ¶
type DropLiveStreamRequest struct {
*tchttp.BaseRequest
// 流名称。
StreamName *string `json:"StreamName" name:"StreamName"`
// 您的加速域名。
DomainName *string `json:"DomainName" name:"DomainName"`
// 应用名称。
AppName *string `json:"AppName" name:"AppName"`
}
func NewDropLiveStreamRequest ¶
func NewDropLiveStreamRequest() (request *DropLiveStreamRequest)
func (*DropLiveStreamRequest) FromJsonString ¶
func (r *DropLiveStreamRequest) FromJsonString(s string) error
func (*DropLiveStreamRequest) ToJsonString ¶
func (r *DropLiveStreamRequest) ToJsonString() string
type DropLiveStreamResponse ¶
type DropLiveStreamResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewDropLiveStreamResponse ¶
func NewDropLiveStreamResponse() (response *DropLiveStreamResponse)
func (*DropLiveStreamResponse) FromJsonString ¶
func (r *DropLiveStreamResponse) FromJsonString(s string) error
func (*DropLiveStreamResponse) ToJsonString ¶
func (r *DropLiveStreamResponse) ToJsonString() string
type ForbidLiveStreamRequest ¶
type ForbidLiveStreamRequest struct {
*tchttp.BaseRequest
// 应用名称。
AppName *string `json:"AppName" name:"AppName"`
// 您的加速域名。
DomainName *string `json:"DomainName" name:"DomainName"`
// 流名称。
StreamName *string `json:"StreamName" name:"StreamName"`
// 恢复流的时间。UTC 格式,例如:2018-11-29T19:00:00Z。
// 注意:默认禁播90天,且最长支持禁播90天。
ResumeTime *string `json:"ResumeTime" name:"ResumeTime"`
}
func NewForbidLiveStreamRequest ¶
func NewForbidLiveStreamRequest() (request *ForbidLiveStreamRequest)
func (*ForbidLiveStreamRequest) FromJsonString ¶
func (r *ForbidLiveStreamRequest) FromJsonString(s string) error
func (*ForbidLiveStreamRequest) ToJsonString ¶
func (r *ForbidLiveStreamRequest) ToJsonString() string
type ForbidLiveStreamResponse ¶
type ForbidLiveStreamResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewForbidLiveStreamResponse ¶
func NewForbidLiveStreamResponse() (response *ForbidLiveStreamResponse)
func (*ForbidLiveStreamResponse) FromJsonString ¶
func (r *ForbidLiveStreamResponse) FromJsonString(s string) error
func (*ForbidLiveStreamResponse) ToJsonString ¶
func (r *ForbidLiveStreamResponse) ToJsonString() string
type ModifyLivePlayAuthKeyRequest ¶
type ModifyLivePlayAuthKeyRequest struct {
*tchttp.BaseRequest
// 域名。
DomainName *string `json:"DomainName" name:"DomainName"`
// 是否启用,0:关闭,1:启用。
Enable *int64 `json:"Enable" name:"Enable"`
// 鉴权key。
AuthKey *string `json:"AuthKey" name:"AuthKey"`
// 有效时间,单位:秒。
AuthDelta *uint64 `json:"AuthDelta" name:"AuthDelta"`
// 鉴权backkey。
AuthBackKey *string `json:"AuthBackKey" name:"AuthBackKey"`
}
func NewModifyLivePlayAuthKeyRequest ¶
func NewModifyLivePlayAuthKeyRequest() (request *ModifyLivePlayAuthKeyRequest)
func (*ModifyLivePlayAuthKeyRequest) FromJsonString ¶
func (r *ModifyLivePlayAuthKeyRequest) FromJsonString(s string) error
func (*ModifyLivePlayAuthKeyRequest) ToJsonString ¶
func (r *ModifyLivePlayAuthKeyRequest) ToJsonString() string
type ModifyLivePlayAuthKeyResponse ¶
type ModifyLivePlayAuthKeyResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewModifyLivePlayAuthKeyResponse ¶
func NewModifyLivePlayAuthKeyResponse() (response *ModifyLivePlayAuthKeyResponse)
func (*ModifyLivePlayAuthKeyResponse) FromJsonString ¶
func (r *ModifyLivePlayAuthKeyResponse) FromJsonString(s string) error
func (*ModifyLivePlayAuthKeyResponse) ToJsonString ¶
func (r *ModifyLivePlayAuthKeyResponse) ToJsonString() string
type ModifyLivePushAuthKeyRequest ¶
type ModifyLivePushAuthKeyRequest struct {
*tchttp.BaseRequest
// 推流域名。
DomainName *string `json:"DomainName" name:"DomainName"`
// 是否启用,0:关闭,1:启用。
Enable *int64 `json:"Enable" name:"Enable"`
// 主鉴权key。
MasterAuthKey *string `json:"MasterAuthKey" name:"MasterAuthKey"`
// 备鉴权key。
BackupAuthKey *string `json:"BackupAuthKey" name:"BackupAuthKey"`
// 有效时间,单位:秒。
AuthDelta *uint64 `json:"AuthDelta" name:"AuthDelta"`
}
func NewModifyLivePushAuthKeyRequest ¶
func NewModifyLivePushAuthKeyRequest() (request *ModifyLivePushAuthKeyRequest)
func (*ModifyLivePushAuthKeyRequest) FromJsonString ¶
func (r *ModifyLivePushAuthKeyRequest) FromJsonString(s string) error
func (*ModifyLivePushAuthKeyRequest) ToJsonString ¶
func (r *ModifyLivePushAuthKeyRequest) ToJsonString() string
type ModifyLivePushAuthKeyResponse ¶
type ModifyLivePushAuthKeyResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewModifyLivePushAuthKeyResponse ¶
func NewModifyLivePushAuthKeyResponse() (response *ModifyLivePushAuthKeyResponse)
func (*ModifyLivePushAuthKeyResponse) FromJsonString ¶
func (r *ModifyLivePushAuthKeyResponse) FromJsonString(s string) error
func (*ModifyLivePushAuthKeyResponse) ToJsonString ¶
func (r *ModifyLivePushAuthKeyResponse) ToJsonString() string
type ModifyPullStreamConfigRequest ¶
type ModifyPullStreamConfigRequest struct {
*tchttp.BaseRequest
// 配置id。
ConfigId *string `json:"ConfigId" name:"ConfigId"`
// 源Url。
FromUrl *string `json:"FromUrl" name:"FromUrl"`
// 目的Url。
ToUrl *string `json:"ToUrl" name:"ToUrl"`
// 区域id,1-深圳,2-上海,3-天津,4-香港。如有改动,需同时传入IspId。
AreaId *int64 `json:"AreaId" name:"AreaId"`
// 运营商id,1-电信,2-移动,3-联通,4-其他,AreaId为4的时候,IspId只能为其他。如有改动,需同时传入AreaId。
IspId *int64 `json:"IspId" name:"IspId"`
// 开始时间。
StartTime *string `json:"StartTime" name:"StartTime"`
// 结束时间,注意:
// 1. 结束时间必须大于开始时间;
// 2. 结束时间和开始时间必须大于当前时间;
// 3. 结束时间 和 开始时间 间隔必须小于七天。
EndTime *string `json:"EndTime" name:"EndTime"`
}
func NewModifyPullStreamConfigRequest ¶
func NewModifyPullStreamConfigRequest() (request *ModifyPullStreamConfigRequest)
func (*ModifyPullStreamConfigRequest) FromJsonString ¶
func (r *ModifyPullStreamConfigRequest) FromJsonString(s string) error
func (*ModifyPullStreamConfigRequest) ToJsonString ¶
func (r *ModifyPullStreamConfigRequest) ToJsonString() string
type ModifyPullStreamConfigResponse ¶
type ModifyPullStreamConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewModifyPullStreamConfigResponse ¶
func NewModifyPullStreamConfigResponse() (response *ModifyPullStreamConfigResponse)
func (*ModifyPullStreamConfigResponse) FromJsonString ¶
func (r *ModifyPullStreamConfigResponse) FromJsonString(s string) error
func (*ModifyPullStreamConfigResponse) ToJsonString ¶
func (r *ModifyPullStreamConfigResponse) ToJsonString() string
type ModifyPullStreamStatusRequest ¶
type ModifyPullStreamStatusRequest struct {
*tchttp.BaseRequest
// 配置id列表。
ConfigIds []*string `json:"ConfigIds" name:"ConfigIds" list`
// 目标状态。0无效,2正在运行,4暂停。
Status *string `json:"Status" name:"Status"`
}
func NewModifyPullStreamStatusRequest ¶
func NewModifyPullStreamStatusRequest() (request *ModifyPullStreamStatusRequest)
func (*ModifyPullStreamStatusRequest) FromJsonString ¶
func (r *ModifyPullStreamStatusRequest) FromJsonString(s string) error
func (*ModifyPullStreamStatusRequest) ToJsonString ¶
func (r *ModifyPullStreamStatusRequest) ToJsonString() string
type ModifyPullStreamStatusResponse ¶
type ModifyPullStreamStatusResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewModifyPullStreamStatusResponse ¶
func NewModifyPullStreamStatusResponse() (response *ModifyPullStreamStatusResponse)
func (*ModifyPullStreamStatusResponse) FromJsonString ¶
func (r *ModifyPullStreamStatusResponse) FromJsonString(s string) error
func (*ModifyPullStreamStatusResponse) ToJsonString ¶
func (r *ModifyPullStreamStatusResponse) ToJsonString() string
type PlayAuthKeyInfo ¶
type PlayAuthKeyInfo struct {
// 域名。
DomainName *string `json:"DomainName" name:"DomainName"`
// 是否启用,0:关闭,1:启用。
Enable *int64 `json:"Enable" name:"Enable"`
// 鉴权key。
AuthKey *string `json:"AuthKey" name:"AuthKey"`
// 有效时间,单位:秒。
AuthDelta *uint64 `json:"AuthDelta" name:"AuthDelta"`
// 鉴权BackKey。
AuthBackKey *string `json:"AuthBackKey" name:"AuthBackKey"`
}
type PublishTime ¶
type PublishTime struct {
// 推流时间
// UTC 格式,例如:2018-06-29T19:00:00Z。
PublishTime *string `json:"PublishTime" name:"PublishTime"`
}
type PullStreamConfig ¶
type PullStreamConfig struct {
// 拉流配置Id。
ConfigId *string `json:"ConfigId" name:"ConfigId"`
// 源Url。
FromUrl *string `json:"FromUrl" name:"FromUrl"`
// 目的Url。
ToUrl *string `json:"ToUrl" name:"ToUrl"`
// 区域名。
AreaName *string `json:"AreaName" name:"AreaName"`
// 运营商名。
IspName *string `json:"IspName" name:"IspName"`
// 开始时间。
StartTime *string `json:"StartTime" name:"StartTime"`
// 结束时间。
EndTime *string `json:"EndTime" name:"EndTime"`
// 0无效,1初始状态,2正在运行,3拉起失败,4暂停。
Status *string `json:"Status" name:"Status"`
}
type PushAuthKeyInfo ¶
type PushAuthKeyInfo struct {
// 域名。
DomainName *string `json:"DomainName" name:"DomainName"`
// 是否启用,0:关闭,1:启用。
Enable *int64 `json:"Enable" name:"Enable"`
// 主鉴权key。
MasterAuthKey *string `json:"MasterAuthKey" name:"MasterAuthKey"`
// 备鉴权key。
BackupAuthKey *string `json:"BackupAuthKey" name:"BackupAuthKey"`
// 有效时间,单位:秒。
AuthDelta *uint64 `json:"AuthDelta" name:"AuthDelta"`
}
type ResumeDelayLiveStreamRequest ¶
type ResumeDelayLiveStreamRequest struct {
*tchttp.BaseRequest
// 应用名称。
AppName *string `json:"AppName" name:"AppName"`
// 您的加速域名。
DomainName *string `json:"DomainName" name:"DomainName"`
// 流名称。
StreamName *string `json:"StreamName" name:"StreamName"`
}
func NewResumeDelayLiveStreamRequest ¶
func NewResumeDelayLiveStreamRequest() (request *ResumeDelayLiveStreamRequest)
func (*ResumeDelayLiveStreamRequest) FromJsonString ¶
func (r *ResumeDelayLiveStreamRequest) FromJsonString(s string) error
func (*ResumeDelayLiveStreamRequest) ToJsonString ¶
func (r *ResumeDelayLiveStreamRequest) ToJsonString() string
type ResumeDelayLiveStreamResponse ¶
type ResumeDelayLiveStreamResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewResumeDelayLiveStreamResponse ¶
func NewResumeDelayLiveStreamResponse() (response *ResumeDelayLiveStreamResponse)
func (*ResumeDelayLiveStreamResponse) FromJsonString ¶
func (r *ResumeDelayLiveStreamResponse) FromJsonString(s string) error
func (*ResumeDelayLiveStreamResponse) ToJsonString ¶
func (r *ResumeDelayLiveStreamResponse) ToJsonString() string
type ResumeLiveStreamRequest ¶
type ResumeLiveStreamRequest struct {
*tchttp.BaseRequest
// 应用名称。
AppName *string `json:"AppName" name:"AppName"`
// 您的加速域名。
DomainName *string `json:"DomainName" name:"DomainName"`
// 流名称。
StreamName *string `json:"StreamName" name:"StreamName"`
}
func NewResumeLiveStreamRequest ¶
func NewResumeLiveStreamRequest() (request *ResumeLiveStreamRequest)
func (*ResumeLiveStreamRequest) FromJsonString ¶
func (r *ResumeLiveStreamRequest) FromJsonString(s string) error
func (*ResumeLiveStreamRequest) ToJsonString ¶
func (r *ResumeLiveStreamRequest) ToJsonString() string
type ResumeLiveStreamResponse ¶
type ResumeLiveStreamResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewResumeLiveStreamResponse ¶
func NewResumeLiveStreamResponse() (response *ResumeLiveStreamResponse)
func (*ResumeLiveStreamResponse) FromJsonString ¶
func (r *ResumeLiveStreamResponse) FromJsonString(s string) error
func (*ResumeLiveStreamResponse) ToJsonString ¶
func (r *ResumeLiveStreamResponse) ToJsonString() string
type SetLiveWatermarkStatusRequest ¶
type SetLiveWatermarkStatusRequest struct {
*tchttp.BaseRequest
// 水印ID。
WatermarkId *int64 `json:"WatermarkId" name:"WatermarkId"`
// 状态。0:停用,1:启用
Status *int64 `json:"Status" name:"Status"`
}
func NewSetLiveWatermarkStatusRequest ¶
func NewSetLiveWatermarkStatusRequest() (request *SetLiveWatermarkStatusRequest)
func (*SetLiveWatermarkStatusRequest) FromJsonString ¶
func (r *SetLiveWatermarkStatusRequest) FromJsonString(s string) error
func (*SetLiveWatermarkStatusRequest) ToJsonString ¶
func (r *SetLiveWatermarkStatusRequest) ToJsonString() string
type SetLiveWatermarkStatusResponse ¶
type SetLiveWatermarkStatusResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewSetLiveWatermarkStatusResponse ¶
func NewSetLiveWatermarkStatusResponse() (response *SetLiveWatermarkStatusResponse)
func (*SetLiveWatermarkStatusResponse) FromJsonString ¶
func (r *SetLiveWatermarkStatusResponse) FromJsonString(s string) error
func (*SetLiveWatermarkStatusResponse) ToJsonString ¶
func (r *SetLiveWatermarkStatusResponse) ToJsonString() string
type StopLiveRecordRequest ¶
type StopLiveRecordRequest struct {
*tchttp.BaseRequest
// 流名称。
StreamName *string `json:"StreamName" name:"StreamName"`
// 任务ID,全局唯一标识录制任务。
TaskId *int64 `json:"TaskId" name:"TaskId"`
}
func NewStopLiveRecordRequest ¶
func NewStopLiveRecordRequest() (request *StopLiveRecordRequest)
func (*StopLiveRecordRequest) FromJsonString ¶
func (r *StopLiveRecordRequest) FromJsonString(s string) error
func (*StopLiveRecordRequest) ToJsonString ¶
func (r *StopLiveRecordRequest) ToJsonString() string
type StopLiveRecordResponse ¶
type StopLiveRecordResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewStopLiveRecordResponse ¶
func NewStopLiveRecordResponse() (response *StopLiveRecordResponse)
func (*StopLiveRecordResponse) FromJsonString ¶
func (r *StopLiveRecordResponse) FromJsonString(s string) error
func (*StopLiveRecordResponse) ToJsonString ¶
func (r *StopLiveRecordResponse) ToJsonString() string
type StreamInfo ¶
type StreamInfo struct {
// 直播流所属应用名称
AppName *string `json:"AppName" name:"AppName"`
// 创建模式
CreateMode *string `json:"CreateMode" name:"CreateMode"`
// 创建时间,如: 2018-07-13 14:48:23
CreateTime *string `json:"CreateTime" name:"CreateTime"`
// 流状态
Status *int64 `json:"Status" name:"Status"`
// 流id
StreamId *string `json:"StreamId" name:"StreamId"`
// 流名称
StreamName *string `json:"StreamName" name:"StreamName"`
// 水印id
WaterMarkId *string `json:"WaterMarkId" name:"WaterMarkId"`
}
type StreamName ¶
type StreamName struct {
// 流名称。
StreamName *string `json:"StreamName" name:"StreamName"`
}
type StreamOnlineInfo ¶
type StreamOnlineInfo struct {
// 流名称。
StreamName *string `json:"StreamName" name:"StreamName"`
// 推流时间列表
PublishTimeList []*PublishTime `json:"PublishTimeList" name:"PublishTimeList" list`
}
type UpdateLiveWatermarkRequest ¶
type UpdateLiveWatermarkRequest struct {
*tchttp.BaseRequest
// 水印ID。
WatermarkId *int64 `json:"WatermarkId" name:"WatermarkId"`
// 水印图片url。
PictureUrl *string `json:"PictureUrl" name:"PictureUrl"`
// 显示位置,X轴偏移。
XPosition *int64 `json:"XPosition" name:"XPosition"`
// 显示位置,Y轴偏移。
YPosition *int64 `json:"YPosition" name:"YPosition"`
// 水印名称。
WatermarkName *string `json:"WatermarkName" name:"WatermarkName"`
}
func NewUpdateLiveWatermarkRequest ¶
func NewUpdateLiveWatermarkRequest() (request *UpdateLiveWatermarkRequest)
func (*UpdateLiveWatermarkRequest) FromJsonString ¶
func (r *UpdateLiveWatermarkRequest) FromJsonString(s string) error
func (*UpdateLiveWatermarkRequest) ToJsonString ¶
func (r *UpdateLiveWatermarkRequest) ToJsonString() string
type UpdateLiveWatermarkResponse ¶
type UpdateLiveWatermarkResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId" name:"RequestId"`
} `json:"Response"`
}
func NewUpdateLiveWatermarkResponse ¶
func NewUpdateLiveWatermarkResponse() (response *UpdateLiveWatermarkResponse)
func (*UpdateLiveWatermarkResponse) FromJsonString ¶
func (r *UpdateLiveWatermarkResponse) FromJsonString(s string) error
func (*UpdateLiveWatermarkResponse) ToJsonString ¶
func (r *UpdateLiveWatermarkResponse) ToJsonString() string
type WatermarkInfo ¶
type WatermarkInfo struct {
// 水印ID。
WatermarkId *int64 `json:"WatermarkId" name:"WatermarkId"`
// 水印图片url。
PictureUrl *string `json:"PictureUrl" name:"PictureUrl"`
// 显示位置,X轴偏移。
XPosition *int64 `json:"XPosition" name:"XPosition"`
// 显示位置,Y轴偏移。
YPosition *int64 `json:"YPosition" name:"YPosition"`
// 水印名称。
WatermarkName *string `json:"WatermarkName" name:"WatermarkName"`
// 当前状态。0:未使用,1:使用中。
Status *int64 `json:"Status" name:"Status"`
// 添加时间。
CreateTime *string `json:"CreateTime" name:"CreateTime"`
}
Click to show internal directories.
Click to hide internal directories.