Documentation ¶
Index ¶
- Constants
- type AVTemplate
- type AttachedInput
- type AudioPidSelectionInfo
- type AudioPipelineInputStatistics
- type AudioSelectorInfo
- type AudioTemplateInfo
- type ChannelAlertInfos
- type ChannelInputStatistics
- type ChannelOutputsStatistics
- type ChannelPipelineAlerts
- type Client
- func (c *Client) CreateStreamLiveChannel(request *CreateStreamLiveChannelRequest) (response *CreateStreamLiveChannelResponse, err error)
- func (c *Client) CreateStreamLiveInput(request *CreateStreamLiveInputRequest) (response *CreateStreamLiveInputResponse, err error)
- func (c *Client) CreateStreamLiveInputSecurityGroup(request *CreateStreamLiveInputSecurityGroupRequest) (response *CreateStreamLiveInputSecurityGroupResponse, err error)
- func (c *Client) CreateStreamLivePlan(request *CreateStreamLivePlanRequest) (response *CreateStreamLivePlanResponse, err error)
- func (c *Client) DeleteStreamLiveChannel(request *DeleteStreamLiveChannelRequest) (response *DeleteStreamLiveChannelResponse, err error)
- func (c *Client) DeleteStreamLiveInput(request *DeleteStreamLiveInputRequest) (response *DeleteStreamLiveInputResponse, err error)
- func (c *Client) DeleteStreamLiveInputSecurityGroup(request *DeleteStreamLiveInputSecurityGroupRequest) (response *DeleteStreamLiveInputSecurityGroupResponse, err error)
- func (c *Client) DescribeStreamLiveChannel(request *DescribeStreamLiveChannelRequest) (response *DescribeStreamLiveChannelResponse, err error)
- func (c *Client) DescribeStreamLiveChannelAlerts(request *DescribeStreamLiveChannelAlertsRequest) (response *DescribeStreamLiveChannelAlertsResponse, err error)
- func (c *Client) DescribeStreamLiveChannelInputStatistics(request *DescribeStreamLiveChannelInputStatisticsRequest) (response *DescribeStreamLiveChannelInputStatisticsResponse, err error)
- func (c *Client) DescribeStreamLiveChannelLogs(request *DescribeStreamLiveChannelLogsRequest) (response *DescribeStreamLiveChannelLogsResponse, err error)
- func (c *Client) DescribeStreamLiveChannelOutputStatistics(request *DescribeStreamLiveChannelOutputStatisticsRequest) (response *DescribeStreamLiveChannelOutputStatisticsResponse, err error)
- func (c *Client) DescribeStreamLiveChannels(request *DescribeStreamLiveChannelsRequest) (response *DescribeStreamLiveChannelsResponse, err error)
- func (c *Client) DescribeStreamLiveInput(request *DescribeStreamLiveInputRequest) (response *DescribeStreamLiveInputResponse, err error)
- func (c *Client) DescribeStreamLiveInputSecurityGroup(request *DescribeStreamLiveInputSecurityGroupRequest) (response *DescribeStreamLiveInputSecurityGroupResponse, err error)
- func (c *Client) DescribeStreamLiveInputSecurityGroups(request *DescribeStreamLiveInputSecurityGroupsRequest) (response *DescribeStreamLiveInputSecurityGroupsResponse, err error)
- func (c *Client) DescribeStreamLiveInputs(request *DescribeStreamLiveInputsRequest) (response *DescribeStreamLiveInputsResponse, err error)
- func (c *Client) DescribeStreamLivePlans(request *DescribeStreamLivePlansRequest) (response *DescribeStreamLivePlansResponse, err error)
- func (c *Client) DescribeStreamLiveRegions(request *DescribeStreamLiveRegionsRequest) (response *DescribeStreamLiveRegionsResponse, err error)
- func (c *Client) ModifyStreamLiveChannel(request *ModifyStreamLiveChannelRequest) (response *ModifyStreamLiveChannelResponse, err error)
- func (c *Client) ModifyStreamLiveInput(request *ModifyStreamLiveInputRequest) (response *ModifyStreamLiveInputResponse, err error)
- func (c *Client) ModifyStreamLiveInputSecurityGroup(request *ModifyStreamLiveInputSecurityGroupRequest) (response *ModifyStreamLiveInputSecurityGroupResponse, err error)
- func (c *Client) StartStreamLiveChannel(request *StartStreamLiveChannelRequest) (response *StartStreamLiveChannelResponse, err error)
- func (c *Client) StopStreamLiveChannel(request *StopStreamLiveChannelRequest) (response *StopStreamLiveChannelResponse, err error)
- type CreateStreamLiveChannelRequest
- type CreateStreamLiveChannelResponse
- type CreateStreamLiveInputRequest
- type CreateStreamLiveInputResponse
- type CreateStreamLiveInputSecurityGroupRequest
- type CreateStreamLiveInputSecurityGroupResponse
- type CreateStreamLivePlanRequest
- type CreateStreamLivePlanResponse
- type DashRemuxSettingsInfo
- type DeleteStreamLiveChannelRequest
- type DeleteStreamLiveChannelResponse
- type DeleteStreamLiveInputRequest
- type DeleteStreamLiveInputResponse
- type DeleteStreamLiveInputSecurityGroupRequest
- type DeleteStreamLiveInputSecurityGroupResponse
- type DescribeStreamLiveChannelAlertsRequest
- type DescribeStreamLiveChannelAlertsResponse
- type DescribeStreamLiveChannelInputStatisticsRequest
- type DescribeStreamLiveChannelInputStatisticsResponse
- type DescribeStreamLiveChannelLogsRequest
- type DescribeStreamLiveChannelLogsResponse
- type DescribeStreamLiveChannelOutputStatisticsRequest
- type DescribeStreamLiveChannelOutputStatisticsResponse
- type DescribeStreamLiveChannelRequest
- type DescribeStreamLiveChannelResponse
- type DescribeStreamLiveChannelsRequest
- type DescribeStreamLiveChannelsResponse
- type DescribeStreamLiveInputRequest
- type DescribeStreamLiveInputResponse
- type DescribeStreamLiveInputSecurityGroupRequest
- type DescribeStreamLiveInputSecurityGroupResponse
- type DescribeStreamLiveInputSecurityGroupsRequest
- type DescribeStreamLiveInputSecurityGroupsResponse
- type DescribeStreamLiveInputsRequest
- type DescribeStreamLiveInputsResponse
- type DescribeStreamLivePlansRequest
- type DescribeStreamLivePlansResponse
- type DescribeStreamLiveRegionsRequest
- type DescribeStreamLiveRegionsResponse
- type DestinationInfo
- type DrmKey
- type DrmSettingsInfo
- type EventSettingsDestinationReq
- type EventSettingsDestinationResp
- type EventSettingsReq
- type EventSettingsResp
- type FailOverSettings
- type HlsRemuxSettingsInfo
- type InputInfo
- type InputSecurityGroupInfo
- type InputSettingInfo
- type InputStatistics
- type LogInfo
- type LogMessageInfo
- type ModifyStreamLiveChannelRequest
- type ModifyStreamLiveChannelResponse
- type ModifyStreamLiveInputRequest
- type ModifyStreamLiveInputResponse
- type ModifyStreamLiveInputSecurityGroupRequest
- type ModifyStreamLiveInputSecurityGroupResponse
- type OutputInfo
- type OutputsStatistics
- type PipelineInputStatistics
- type PipelineLogInfo
- type PipelineOutputStatistics
- type PlanReq
- type PlanResp
- type RegionInfo
- type SDMCSettingsInfo
- type Scte35SettingsInfo
- type StartStreamLiveChannelRequest
- type StartStreamLiveChannelResponse
- type StopStreamLiveChannelRequest
- type StopStreamLiveChannelResponse
- type StreamAudioInfo
- type StreamInfo
- type StreamLiveChannelInfo
- type StreamLiveOutputGroupsInfo
- type StreamLiveRegionInfo
- type StreamPackageSettingsInfo
- type StreamScte35Info
- type StreamVideoInfo
- type TimeShiftSettingsInfo
- type TimingSettingsReq
- type TimingSettingsResp
- type VideoPipelineInputStatistics
- type VideoTemplateInfo
Constants ¶
const ( // Internal error. INTERNALERROR = "InternalError" // Invalid parameter. INVALIDPARAMETER = "InvalidParameter" // Audio/Video transcoding template error INVALIDPARAMETER_AVTEMPLATES = "InvalidParameter.AVTemplates" // `Channel` already associated. INVALIDPARAMETER_ALREADYASSOCIATEDCHANNEL = "InvalidParameter.AlreadyAssociatedChannel" // `Input` already associated. INVALIDPARAMETER_ALREADYASSOCIATEDINPUT = "InvalidParameter.AlreadyAssociatedInput" // Invalid `AttachedInputs`. INVALIDPARAMETER_ATTACHEDINPUTS = "InvalidParameter.AttachedInputs" // Incorrect audio transcoding template. INVALIDPARAMETER_AUDIOTEMPLATES = "InvalidParameter.AudioTemplates" // Invalid `EndTime`. INVALIDPARAMETER_ENDTIME = "InvalidParameter.EndTime" // The quantity exceeds the limit. INVALIDPARAMETER_EXCEEDEDQUANTITYLIMIT = "InvalidParameter.ExceededQuantityLimit" // Invalid `Id`. INVALIDPARAMETER_ID = "InvalidParameter.Id" // Invalid `InputSettings`. INVALIDPARAMETER_INPUTSETTINGS = "InvalidParameter.InputSettings" // Invalid `Name`. INVALIDPARAMETER_NAME = "InvalidParameter.Name" // Not found. INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound" // Invalid `OutputGroups`. INVALIDPARAMETER_OUTPUTGROUPS = "InvalidParameter.OutputGroups" // Invalid `Plan` parameter INVALIDPARAMETER_PLAN = "InvalidParameter.Plan" // Invalid `SecurityGroups`. INVALIDPARAMETER_SECURITYGROUPS = "InvalidParameter.SecurityGroups" // Invalid `StartTime`. INVALIDPARAMETER_STARTTIME = "InvalidParameter.StartTime" // Exceptional status. INVALIDPARAMETER_STATE = "InvalidParameter.State" // Incorrect status. INVALIDPARAMETER_STATEERROR = "InvalidParameter.StateError" // Invalid `Type`. INVALIDPARAMETER_TYPE = "InvalidParameter.Type" // Incorrect video transcoding template. INVALIDPARAMETER_VIDEOTEMPLATES = "InvalidParameter.VideoTemplates" // Invalid `Whitelist`. INVALIDPARAMETER_WHITELIST = "InvalidParameter.Whitelist" )
const APIVersion = "2020-03-26"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AVTemplate ¶
type AVTemplate struct { // Name of an audio/video transcoding template, which can contain 1-20 case-sensitive letters and digits Name *string `json:"Name,omitempty" name:"Name"` // Whether video is needed. `0`: not needed; `1`: needed NeedVideo *uint64 `json:"NeedVideo,omitempty" name:"NeedVideo"` // Video codec. Valid values: `H264`, `H265`. If this parameter is left empty, the original video codec will be used. Vcodec *string `json:"Vcodec,omitempty" name:"Vcodec"` // Video width. Value range: (0, 3000]. The value must be an integer multiple of 4. If this parameter is left empty, the original video width will be used. Width *uint64 `json:"Width,omitempty" name:"Width"` // Video height. Value range: (0, 3000]. The value must be an integer multiple of 4. If this parameter is left empty, the original video height will be used. Height *uint64 `json:"Height,omitempty" name:"Height"` // Video frame rate. Value range: [1, 240]. If this parameter is left empty, the original frame rate will be used. Fps *uint64 `json:"Fps,omitempty" name:"Fps"` // Whether to enable top speed codec transcoding. Valid values: `CLOSE` (disable), `OPEN` (enable). Default value: `CLOSE` TopSpeed *string `json:"TopSpeed,omitempty" name:"TopSpeed"` // Compression ratio for top speed codec transcoding. Value range: [0, 50]. The lower the compression ratio, the higher the image quality. BitrateCompressionRatio *uint64 `json:"BitrateCompressionRatio,omitempty" name:"BitrateCompressionRatio"` // Whether audio is needed. `0`: not needed; `1`: needed NeedAudio *int64 `json:"NeedAudio,omitempty" name:"NeedAudio"` // Audio codec. Valid value: `AAC` (default) Acodec *string `json:"Acodec,omitempty" name:"Acodec"` // Audio bitrate. If this parameter is left empty, the original bitrate will be used. // Valid values: `6000`, `7000`, `8000`, `10000`, `12000`, `14000`, `16000`, `20000`, `24000`, `28000`, `32000`, `40000`, `48000`, `56000`, `64000`, `80000`, `96000`, `112000`, `128000`, `160000`, `192000`, `224000`, `256000`, `288000`, `320000`, `384000`, `448000`, `512000`, `576000`, `640000`, `768000`, `896000`, `1024000` AudioBitrate *uint64 `json:"AudioBitrate,omitempty" name:"AudioBitrate"` // Video bitrate. Value range: [50000, 40000000]. The value must be an integer multiple of 1000. If this parameter is left empty, the original bitrate will be used. VideoBitrate *uint64 `json:"VideoBitrate,omitempty" name:"VideoBitrate"` // Bitrate control mode. Valid values: `CBR`, `ABR` (default) RateControlMode *string `json:"RateControlMode,omitempty" name:"RateControlMode"` }
type AttachedInput ¶
type AttachedInput struct { // Input ID Id *string `json:"Id,omitempty" name:"Id"` // Audio selector for the input. There can be 0 to 20 audio selectors. // Note: this field may return `null`, indicating that no valid value was found. AudioSelectors []*AudioSelectorInfo `json:"AudioSelectors,omitempty" name:"AudioSelectors"` // Pull mode. If the input type is `HLS_PULL` or `MP4_PULL`, you can set this parameter to `LOOP` or `ONCE`. `LOOP` is the default value. // Note: this field may return `null`, indicating that no valid value was found. PullBehavior *string `json:"PullBehavior,omitempty" name:"PullBehavior"` // Input failover configuration // Note: this field may return `null`, indicating that no valid value was found. FailOverSettings *FailOverSettings `json:"FailOverSettings,omitempty" name:"FailOverSettings"` }
type AudioPidSelectionInfo ¶
type AudioPidSelectionInfo struct { // Audio `Pid`. Default value: 0. Pid *uint64 `json:"Pid,omitempty" name:"Pid"` }
type AudioSelectorInfo ¶
type AudioSelectorInfo struct { // Audio name, which can contain 1-32 letters, digits, and underscores. Name *string `json:"Name,omitempty" name:"Name"` // Audio `Pid` selection. AudioPidSelection *AudioPidSelectionInfo `json:"AudioPidSelection,omitempty" name:"AudioPidSelection"` }
type AudioTemplateInfo ¶
type AudioTemplateInfo struct { // Only `AttachedInputs.AudioSelectors.Name` can be selected. This parameter is required for RTP_PUSH and UDP_PUSH. AudioSelectorName *string `json:"AudioSelectorName,omitempty" name:"AudioSelectorName"` // Audio transcoding template name, which can contain 1-20 letters and digits. Name *string `json:"Name,omitempty" name:"Name"` // Audio codec. Valid value: AAC. Default value: AAC. Acodec *string `json:"Acodec,omitempty" name:"Acodec"` // Audio bitrate. If this parameter is left empty, the original value will be used. // Valid values: 6000, 7000, 8000, 10000, 12000, 14000, 16000, 20000, 24000, 28000, 32000, 40000, 48000, 56000, 64000, 80000, 96000, 112000, 128000, 160000, 192000, 224000, 256000, 288000, 320000, 384000, 448000, 512000, 576000, 640000, 768000, 896000, 1024000 AudioBitrate *uint64 `json:"AudioBitrate,omitempty" name:"AudioBitrate"` // Audio language code, whose length is always 3 characters. LanguageCode *string `json:"LanguageCode,omitempty" name:"LanguageCode"` }
type ChannelAlertInfos ¶
type ChannelAlertInfos struct { // Alarm details of pipeline 0 under this channel. Pipeline0 []*ChannelPipelineAlerts `json:"Pipeline0,omitempty" name:"Pipeline0"` // Alarm details of pipeline 1 under this channel. Pipeline1 []*ChannelPipelineAlerts `json:"Pipeline1,omitempty" name:"Pipeline1"` }
type ChannelInputStatistics ¶
type ChannelInputStatistics struct { // Input ID. InputId *string `json:"InputId,omitempty" name:"InputId"` // Input statistics. Statistics *InputStatistics `json:"Statistics,omitempty" name:"Statistics"` }
type ChannelOutputsStatistics ¶
type ChannelOutputsStatistics struct { // Output group name. OutputGroupName *string `json:"OutputGroupName,omitempty" name:"OutputGroupName"` // Output group statistics. Statistics *OutputsStatistics `json:"Statistics,omitempty" name:"Statistics"` }
type ChannelPipelineAlerts ¶
type ChannelPipelineAlerts struct { // Alarm start time in UTC time. SetTime *string `json:"SetTime,omitempty" name:"SetTime"` // Alarm end time in UTC time. // This time is available only after the alarm ends. ClearTime *string `json:"ClearTime,omitempty" name:"ClearTime"` // Alarm type. Type *string `json:"Type,omitempty" name:"Type"` // Alarm details. Message *string `json:"Message,omitempty" name:"Message"` }
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) CreateStreamLiveChannel ¶
func (c *Client) CreateStreamLiveChannel(request *CreateStreamLiveChannelRequest) (response *CreateStreamLiveChannelResponse, err error)
CreateStreamLiveChannel This API is used to create a StreamLive channel.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_AVTEMPLATES = "InvalidParameter.AVTemplates" INVALIDPARAMETER_ALREADYASSOCIATEDCHANNEL = "InvalidParameter.AlreadyAssociatedChannel" INVALIDPARAMETER_ATTACHEDINPUTS = "InvalidParameter.AttachedInputs" INVALIDPARAMETER_AUDIOTEMPLATES = "InvalidParameter.AudioTemplates" INVALIDPARAMETER_EXCEEDEDQUANTITYLIMIT = "InvalidParameter.ExceededQuantityLimit" INVALIDPARAMETER_ID = "InvalidParameter.Id" INVALIDPARAMETER_NAME = "InvalidParameter.Name" INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound" INVALIDPARAMETER_OUTPUTGROUPS = "InvalidParameter.OutputGroups" INVALIDPARAMETER_VIDEOTEMPLATES = "InvalidParameter.VideoTemplates"
func (*Client) CreateStreamLiveInput ¶
func (c *Client) CreateStreamLiveInput(request *CreateStreamLiveInputRequest) (response *CreateStreamLiveInputResponse, err error)
CreateStreamLiveInput This API is used to create a StreamLive input.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EXCEEDEDQUANTITYLIMIT = "InvalidParameter.ExceededQuantityLimit" INVALIDPARAMETER_INPUTSETTINGS = "InvalidParameter.InputSettings" INVALIDPARAMETER_NAME = "InvalidParameter.Name" INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound" INVALIDPARAMETER_SECURITYGROUPS = "InvalidParameter.SecurityGroups" INVALIDPARAMETER_TYPE = "InvalidParameter.Type"
func (*Client) CreateStreamLiveInputSecurityGroup ¶
func (c *Client) CreateStreamLiveInputSecurityGroup(request *CreateStreamLiveInputSecurityGroupRequest) (response *CreateStreamLiveInputSecurityGroupResponse, err error)
CreateStreamLiveInputSecurityGroup This API is used to create an input security group. Up to 5 security groups are allowed.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_EXCEEDEDQUANTITYLIMIT = "InvalidParameter.ExceededQuantityLimit" INVALIDPARAMETER_NAME = "InvalidParameter.Name" INVALIDPARAMETER_WHITELIST = "InvalidParameter.Whitelist"
func (*Client) CreateStreamLivePlan ¶
func (c *Client) CreateStreamLivePlan(request *CreateStreamLivePlanRequest) (response *CreateStreamLivePlanResponse, err error)
CreateStreamLivePlan This API is used to create an event in the plan.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound" INVALIDPARAMETER_PLAN = "InvalidParameter.Plan"
func (*Client) DeleteStreamLiveChannel ¶
func (c *Client) DeleteStreamLiveChannel(request *DeleteStreamLiveChannelRequest) (response *DeleteStreamLiveChannelResponse, err error)
DeleteStreamLiveChannel This API is used to delete a StreamLive channel.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ID = "InvalidParameter.Id" INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound" INVALIDPARAMETER_STATE = "InvalidParameter.State" INVALIDPARAMETER_STATEERROR = "InvalidParameter.StateError"
func (*Client) DeleteStreamLiveInput ¶
func (c *Client) DeleteStreamLiveInput(request *DeleteStreamLiveInputRequest) (response *DeleteStreamLiveInputResponse, err error)
DeleteStreamLiveInput This API is used to delete a StreamLive input.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ALREADYASSOCIATEDCHANNEL = "InvalidParameter.AlreadyAssociatedChannel" INVALIDPARAMETER_ID = "InvalidParameter.Id" INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound"
func (*Client) DeleteStreamLiveInputSecurityGroup ¶
func (c *Client) DeleteStreamLiveInputSecurityGroup(request *DeleteStreamLiveInputSecurityGroupRequest) (response *DeleteStreamLiveInputSecurityGroupResponse, err error)
DeleteStreamLiveInputSecurityGroup This API is used to delete an input security group.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ALREADYASSOCIATEDINPUT = "InvalidParameter.AlreadyAssociatedInput" INVALIDPARAMETER_ID = "InvalidParameter.Id" INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound"
func (*Client) DescribeStreamLiveChannel ¶
func (c *Client) DescribeStreamLiveChannel(request *DescribeStreamLiveChannelRequest) (response *DescribeStreamLiveChannelResponse, err error)
DescribeStreamLiveChannel This API is used to query a StreamLive channel.
error code that may be returned:
INVALIDPARAMETER_ID = "InvalidParameter.Id" INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound"
func (*Client) DescribeStreamLiveChannelAlerts ¶
func (c *Client) DescribeStreamLiveChannelAlerts(request *DescribeStreamLiveChannelAlertsRequest) (response *DescribeStreamLiveChannelAlertsResponse, err error)
DescribeStreamLiveChannelAlerts This API is used to query the alarm information of a StreamLive channel.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound"
func (*Client) DescribeStreamLiveChannelInputStatistics ¶
func (c *Client) DescribeStreamLiveChannelInputStatistics(request *DescribeStreamLiveChannelInputStatisticsRequest) (response *DescribeStreamLiveChannelInputStatisticsResponse, err error)
DescribeStreamLiveChannelInputStatistics This API is used to query input statistics.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ID = "InvalidParameter.Id" INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound" INVALIDPARAMETER_STARTTIME = "InvalidParameter.StartTime"
func (*Client) DescribeStreamLiveChannelLogs ¶
func (c *Client) DescribeStreamLiveChannelLogs(request *DescribeStreamLiveChannelLogsRequest) (response *DescribeStreamLiveChannelLogsResponse, err error)
DescribeStreamLiveChannelLogs This API is used to query StreamLive channel logs, such as push event logs.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ENDTIME = "InvalidParameter.EndTime" INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound" INVALIDPARAMETER_STARTTIME = "InvalidParameter.StartTime"
func (*Client) DescribeStreamLiveChannelOutputStatistics ¶
func (c *Client) DescribeStreamLiveChannelOutputStatistics(request *DescribeStreamLiveChannelOutputStatisticsRequest) (response *DescribeStreamLiveChannelOutputStatisticsResponse, err error)
DescribeStreamLiveChannelOutputStatistics This API is used to query the output statistics of a StreamLive channel.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_ENDTIME = "InvalidParameter.EndTime" INVALIDPARAMETER_ID = "InvalidParameter.Id" INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound" INVALIDPARAMETER_STARTTIME = "InvalidParameter.StartTime"
func (*Client) DescribeStreamLiveChannels ¶
func (c *Client) DescribeStreamLiveChannels(request *DescribeStreamLiveChannelsRequest) (response *DescribeStreamLiveChannelsResponse, err error)
DescribeStreamLiveChannels This API is used to query StreamLive channels in batches.
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) DescribeStreamLiveInput ¶
func (c *Client) DescribeStreamLiveInput(request *DescribeStreamLiveInputRequest) (response *DescribeStreamLiveInputResponse, err error)
DescribeStreamLiveInput This API is used to query a StreamLive input.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ID = "InvalidParameter.Id" INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound"
func (*Client) DescribeStreamLiveInputSecurityGroup ¶
func (c *Client) DescribeStreamLiveInputSecurityGroup(request *DescribeStreamLiveInputSecurityGroupRequest) (response *DescribeStreamLiveInputSecurityGroupResponse, err error)
DescribeStreamLiveInputSecurityGroup This API is used to query an input security group.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ID = "InvalidParameter.Id" INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound"
func (*Client) DescribeStreamLiveInputSecurityGroups ¶
func (c *Client) DescribeStreamLiveInputSecurityGroups(request *DescribeStreamLiveInputSecurityGroupsRequest) (response *DescribeStreamLiveInputSecurityGroupsResponse, err error)
DescribeStreamLiveInputSecurityGroups This API is used to query input security groups in batches.
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) DescribeStreamLiveInputs ¶
func (c *Client) DescribeStreamLiveInputs(request *DescribeStreamLiveInputsRequest) (response *DescribeStreamLiveInputsResponse, err error)
DescribeStreamLiveInputs This API is used to query StreamLive inputs in batches.
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) DescribeStreamLivePlans ¶
func (c *Client) DescribeStreamLivePlans(request *DescribeStreamLivePlansRequest) (response *DescribeStreamLivePlansResponse, err error)
DescribeStreamLivePlans This API is used to query the events in the plan in batches.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound"
func (*Client) DescribeStreamLiveRegions ¶
func (c *Client) DescribeStreamLiveRegions(request *DescribeStreamLiveRegionsRequest) (response *DescribeStreamLiveRegionsResponse, err error)
DescribeStreamLiveRegions This API is used to query all StreamLive regions.
error code that may be returned:
INTERNALERROR = "InternalError"
func (*Client) ModifyStreamLiveChannel ¶
func (c *Client) ModifyStreamLiveChannel(request *ModifyStreamLiveChannelRequest) (response *ModifyStreamLiveChannelResponse, err error)
ModifyStreamLiveChannel This API is used to modify a StreamLive channel.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_AVTEMPLATES = "InvalidParameter.AVTemplates" INVALIDPARAMETER_ALREADYASSOCIATEDCHANNEL = "InvalidParameter.AlreadyAssociatedChannel" INVALIDPARAMETER_ATTACHEDINPUTS = "InvalidParameter.AttachedInputs" INVALIDPARAMETER_AUDIOTEMPLATES = "InvalidParameter.AudioTemplates" INVALIDPARAMETER_ID = "InvalidParameter.Id" INVALIDPARAMETER_NAME = "InvalidParameter.Name" INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound" INVALIDPARAMETER_OUTPUTGROUPS = "InvalidParameter.OutputGroups" INVALIDPARAMETER_VIDEOTEMPLATES = "InvalidParameter.VideoTemplates"
func (*Client) ModifyStreamLiveInput ¶
func (c *Client) ModifyStreamLiveInput(request *ModifyStreamLiveInputRequest) (response *ModifyStreamLiveInputResponse, err error)
ModifyStreamLiveInput This API is used to modify a StreamLive input.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ID = "InvalidParameter.Id" INVALIDPARAMETER_INPUTSETTINGS = "InvalidParameter.InputSettings" INVALIDPARAMETER_NAME = "InvalidParameter.Name" INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound" INVALIDPARAMETER_SECURITYGROUPS = "InvalidParameter.SecurityGroups" INVALIDPARAMETER_STATEERROR = "InvalidParameter.StateError"
func (*Client) ModifyStreamLiveInputSecurityGroup ¶
func (c *Client) ModifyStreamLiveInputSecurityGroup(request *ModifyStreamLiveInputSecurityGroupRequest) (response *ModifyStreamLiveInputSecurityGroupResponse, err error)
ModifyStreamLiveInputSecurityGroup This API is used to modify an input security group.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ID = "InvalidParameter.Id" INVALIDPARAMETER_NAME = "InvalidParameter.Name" INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound" INVALIDPARAMETER_WHITELIST = "InvalidParameter.Whitelist"
func (*Client) StartStreamLiveChannel ¶
func (c *Client) StartStreamLiveChannel(request *StartStreamLiveChannelRequest) (response *StartStreamLiveChannelResponse, err error)
StartStreamLiveChannel This API is used to start a StreamLive channel.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ID = "InvalidParameter.Id" INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound" INVALIDPARAMETER_STATEERROR = "InvalidParameter.StateError"
func (*Client) StopStreamLiveChannel ¶
func (c *Client) StopStreamLiveChannel(request *StopStreamLiveChannelRequest) (response *StopStreamLiveChannelResponse, err error)
StopStreamLiveChannel This API is used to stop a StreamLive channel.
error code that may be returned:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_ID = "InvalidParameter.Id" INVALIDPARAMETER_NOTFOUND = "InvalidParameter.NotFound" INVALIDPARAMETER_STATEERROR = "InvalidParameter.StateError"
type CreateStreamLiveChannelRequest ¶
type CreateStreamLiveChannelRequest struct { *tchttp.BaseRequest // Channel name, which can contain 1-32 case-sensitive letters, digits, and underscores and must be unique at the region level Name *string `json:"Name,omitempty" name:"Name"` // Inputs to attach. You can attach 1 to 5 inputs. AttachedInputs []*AttachedInput `json:"AttachedInputs,omitempty" name:"AttachedInputs"` // Configuration information of the channel’s output groups. Quantity: [1, 10] OutputGroups []*StreamLiveOutputGroupsInfo `json:"OutputGroups,omitempty" name:"OutputGroups"` // Audio transcoding templates. Quantity: [1, 20] AudioTemplates []*AudioTemplateInfo `json:"AudioTemplates,omitempty" name:"AudioTemplates"` // Video transcoding templates. Quantity: [1, 10] VideoTemplates []*VideoTemplateInfo `json:"VideoTemplates,omitempty" name:"VideoTemplates"` // Audio/Video transcoding templates. Quantity: [1, 10] AVTemplates []*AVTemplate `json:"AVTemplates,omitempty" name:"AVTemplates"` }
func NewCreateStreamLiveChannelRequest ¶
func NewCreateStreamLiveChannelRequest() (request *CreateStreamLiveChannelRequest)
func (*CreateStreamLiveChannelRequest) FromJsonString ¶
func (r *CreateStreamLiveChannelRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateStreamLiveChannelRequest) ToJsonString ¶
func (r *CreateStreamLiveChannelRequest) ToJsonString() string
type CreateStreamLiveChannelResponse ¶
type CreateStreamLiveChannelResponse struct { *tchttp.BaseResponse Response *struct { // Channel ID Id *string `json:"Id,omitempty" name:"Id"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateStreamLiveChannelResponse ¶
func NewCreateStreamLiveChannelResponse() (response *CreateStreamLiveChannelResponse)
func (*CreateStreamLiveChannelResponse) FromJsonString ¶
func (r *CreateStreamLiveChannelResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateStreamLiveChannelResponse) ToJsonString ¶
func (r *CreateStreamLiveChannelResponse) ToJsonString() string
type CreateStreamLiveInputRequest ¶
type CreateStreamLiveInputRequest struct { *tchttp.BaseRequest // Input name, which can contain 1-32 case-sensitive letters, digits, and underscores and must be unique at the region level Name *string `json:"Name,omitempty" name:"Name"` // Input type // Valid values: `RTMP_PUSH`, `RTP_PUSH`, `UDP_PUSH`, `RTMP_PULL`, `HLS_PULL`, `MP4_PULL` Type *string `json:"Type,omitempty" name:"Type"` // ID of the input security group to attach // You can attach only one security group to an input. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // Input settings. For the type `RTMP_PUSH`, `RTMP_PULL`, `HLS_PULL`, or `MP4_PULL`, 1 or 2 inputs of the corresponding type can be configured. InputSettings []*InputSettingInfo `json:"InputSettings,omitempty" name:"InputSettings"` }
func NewCreateStreamLiveInputRequest ¶
func NewCreateStreamLiveInputRequest() (request *CreateStreamLiveInputRequest)
func (*CreateStreamLiveInputRequest) FromJsonString ¶
func (r *CreateStreamLiveInputRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateStreamLiveInputRequest) ToJsonString ¶
func (r *CreateStreamLiveInputRequest) ToJsonString() string
type CreateStreamLiveInputResponse ¶
type CreateStreamLiveInputResponse struct { *tchttp.BaseResponse Response *struct { // Input ID Id *string `json:"Id,omitempty" name:"Id"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateStreamLiveInputResponse ¶
func NewCreateStreamLiveInputResponse() (response *CreateStreamLiveInputResponse)
func (*CreateStreamLiveInputResponse) FromJsonString ¶
func (r *CreateStreamLiveInputResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateStreamLiveInputResponse) ToJsonString ¶
func (r *CreateStreamLiveInputResponse) ToJsonString() string
type CreateStreamLiveInputSecurityGroupRequest ¶
type CreateStreamLiveInputSecurityGroupRequest struct { *tchttp.BaseRequest // Input security group name, which can contain case-sensitive letters, digits, and underscores and must be unique at the region level Name *string `json:"Name,omitempty" name:"Name"` // Allowlist entries. Quantity: [1, 10] Whitelist []*string `json:"Whitelist,omitempty" name:"Whitelist"` }
func NewCreateStreamLiveInputSecurityGroupRequest ¶
func NewCreateStreamLiveInputSecurityGroupRequest() (request *CreateStreamLiveInputSecurityGroupRequest)
func (*CreateStreamLiveInputSecurityGroupRequest) FromJsonString ¶
func (r *CreateStreamLiveInputSecurityGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateStreamLiveInputSecurityGroupRequest) ToJsonString ¶
func (r *CreateStreamLiveInputSecurityGroupRequest) ToJsonString() string
type CreateStreamLiveInputSecurityGroupResponse ¶
type CreateStreamLiveInputSecurityGroupResponse struct { *tchttp.BaseResponse Response *struct { // Security group ID Id *string `json:"Id,omitempty" name:"Id"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateStreamLiveInputSecurityGroupResponse ¶
func NewCreateStreamLiveInputSecurityGroupResponse() (response *CreateStreamLiveInputSecurityGroupResponse)
func (*CreateStreamLiveInputSecurityGroupResponse) FromJsonString ¶
func (r *CreateStreamLiveInputSecurityGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateStreamLiveInputSecurityGroupResponse) ToJsonString ¶
func (r *CreateStreamLiveInputSecurityGroupResponse) ToJsonString() string
type CreateStreamLivePlanRequest ¶
type CreateStreamLivePlanRequest struct { *tchttp.BaseRequest // ID of the channel for which you want to configure an event ChannelId *string `json:"ChannelId,omitempty" name:"ChannelId"` // Event configuration Plan *PlanReq `json:"Plan,omitempty" name:"Plan"` }
func NewCreateStreamLivePlanRequest ¶
func NewCreateStreamLivePlanRequest() (request *CreateStreamLivePlanRequest)
func (*CreateStreamLivePlanRequest) FromJsonString ¶
func (r *CreateStreamLivePlanRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateStreamLivePlanRequest) ToJsonString ¶
func (r *CreateStreamLivePlanRequest) ToJsonString() string
type CreateStreamLivePlanResponse ¶
type CreateStreamLivePlanResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateStreamLivePlanResponse ¶
func NewCreateStreamLivePlanResponse() (response *CreateStreamLivePlanResponse)
func (*CreateStreamLivePlanResponse) FromJsonString ¶
func (r *CreateStreamLivePlanResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateStreamLivePlanResponse) ToJsonString ¶
func (r *CreateStreamLivePlanResponse) ToJsonString() string
type DashRemuxSettingsInfo ¶
type DashRemuxSettingsInfo struct { // Segment duration in ms. Value range: [1000,30000]. Default value: 4000. The value can only be a multiple of 1,000. SegmentDuration *uint64 `json:"SegmentDuration,omitempty" name:"SegmentDuration"` // Number of segments. Value range: [1,30]. Default value: 5. SegmentNumber *uint64 `json:"SegmentNumber,omitempty" name:"SegmentNumber"` // Whether to enable multi-period. Valid values: CLOSE/OPEN. Default value: CLOSE. PeriodTriggers *string `json:"PeriodTriggers,omitempty" name:"PeriodTriggers"` }
type DeleteStreamLiveChannelRequest ¶
type DeleteStreamLiveChannelRequest struct { *tchttp.BaseRequest // Channel ID Id *string `json:"Id,omitempty" name:"Id"` }
func NewDeleteStreamLiveChannelRequest ¶
func NewDeleteStreamLiveChannelRequest() (request *DeleteStreamLiveChannelRequest)
func (*DeleteStreamLiveChannelRequest) FromJsonString ¶
func (r *DeleteStreamLiveChannelRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteStreamLiveChannelRequest) ToJsonString ¶
func (r *DeleteStreamLiveChannelRequest) ToJsonString() string
type DeleteStreamLiveChannelResponse ¶
type DeleteStreamLiveChannelResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteStreamLiveChannelResponse ¶
func NewDeleteStreamLiveChannelResponse() (response *DeleteStreamLiveChannelResponse)
func (*DeleteStreamLiveChannelResponse) FromJsonString ¶
func (r *DeleteStreamLiveChannelResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteStreamLiveChannelResponse) ToJsonString ¶
func (r *DeleteStreamLiveChannelResponse) ToJsonString() string
type DeleteStreamLiveInputRequest ¶
type DeleteStreamLiveInputRequest struct { *tchttp.BaseRequest // Input ID Id *string `json:"Id,omitempty" name:"Id"` }
func NewDeleteStreamLiveInputRequest ¶
func NewDeleteStreamLiveInputRequest() (request *DeleteStreamLiveInputRequest)
func (*DeleteStreamLiveInputRequest) FromJsonString ¶
func (r *DeleteStreamLiveInputRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteStreamLiveInputRequest) ToJsonString ¶
func (r *DeleteStreamLiveInputRequest) ToJsonString() string
type DeleteStreamLiveInputResponse ¶
type DeleteStreamLiveInputResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteStreamLiveInputResponse ¶
func NewDeleteStreamLiveInputResponse() (response *DeleteStreamLiveInputResponse)
func (*DeleteStreamLiveInputResponse) FromJsonString ¶
func (r *DeleteStreamLiveInputResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteStreamLiveInputResponse) ToJsonString ¶
func (r *DeleteStreamLiveInputResponse) ToJsonString() string
type DeleteStreamLiveInputSecurityGroupRequest ¶
type DeleteStreamLiveInputSecurityGroupRequest struct { *tchttp.BaseRequest // Input security group ID Id *string `json:"Id,omitempty" name:"Id"` }
func NewDeleteStreamLiveInputSecurityGroupRequest ¶
func NewDeleteStreamLiveInputSecurityGroupRequest() (request *DeleteStreamLiveInputSecurityGroupRequest)
func (*DeleteStreamLiveInputSecurityGroupRequest) FromJsonString ¶
func (r *DeleteStreamLiveInputSecurityGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteStreamLiveInputSecurityGroupRequest) ToJsonString ¶
func (r *DeleteStreamLiveInputSecurityGroupRequest) ToJsonString() string
type DeleteStreamLiveInputSecurityGroupResponse ¶
type DeleteStreamLiveInputSecurityGroupResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteStreamLiveInputSecurityGroupResponse ¶
func NewDeleteStreamLiveInputSecurityGroupResponse() (response *DeleteStreamLiveInputSecurityGroupResponse)
func (*DeleteStreamLiveInputSecurityGroupResponse) FromJsonString ¶
func (r *DeleteStreamLiveInputSecurityGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteStreamLiveInputSecurityGroupResponse) ToJsonString ¶
func (r *DeleteStreamLiveInputSecurityGroupResponse) ToJsonString() string
type DescribeStreamLiveChannelAlertsRequest ¶
type DescribeStreamLiveChannelAlertsRequest struct { *tchttp.BaseRequest // Channel ID ChannelId *string `json:"ChannelId,omitempty" name:"ChannelId"` }
func NewDescribeStreamLiveChannelAlertsRequest ¶
func NewDescribeStreamLiveChannelAlertsRequest() (request *DescribeStreamLiveChannelAlertsRequest)
func (*DescribeStreamLiveChannelAlertsRequest) FromJsonString ¶
func (r *DescribeStreamLiveChannelAlertsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveChannelAlertsRequest) ToJsonString ¶
func (r *DescribeStreamLiveChannelAlertsRequest) ToJsonString() string
type DescribeStreamLiveChannelAlertsResponse ¶
type DescribeStreamLiveChannelAlertsResponse struct { *tchttp.BaseResponse Response *struct { // Alarm information of the channel’s two pipelines Infos *ChannelAlertInfos `json:"Infos,omitempty" name:"Infos"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeStreamLiveChannelAlertsResponse ¶
func NewDescribeStreamLiveChannelAlertsResponse() (response *DescribeStreamLiveChannelAlertsResponse)
func (*DescribeStreamLiveChannelAlertsResponse) FromJsonString ¶
func (r *DescribeStreamLiveChannelAlertsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveChannelAlertsResponse) ToJsonString ¶
func (r *DescribeStreamLiveChannelAlertsResponse) ToJsonString() string
type DescribeStreamLiveChannelInputStatisticsRequest ¶
type DescribeStreamLiveChannelInputStatisticsRequest struct { *tchttp.BaseRequest // Channel ID ChannelId *string `json:"ChannelId,omitempty" name:"ChannelId"` // Start time for query, which is 1 hour ago by default. You can query statistics in the last 7 days. // UTC time, such as `2020-01-01T12:00:00Z` StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time for query, which is 1 hour after `StartTime` by default // UTC time, such as `2020-01-01T12:00:00Z` EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Data collection interval. Valid values: `5s`, `1min` (default), `5min`, `15min` Period *string `json:"Period,omitempty" name:"Period"` }
func NewDescribeStreamLiveChannelInputStatisticsRequest ¶
func NewDescribeStreamLiveChannelInputStatisticsRequest() (request *DescribeStreamLiveChannelInputStatisticsRequest)
func (*DescribeStreamLiveChannelInputStatisticsRequest) FromJsonString ¶
func (r *DescribeStreamLiveChannelInputStatisticsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveChannelInputStatisticsRequest) ToJsonString ¶
func (r *DescribeStreamLiveChannelInputStatisticsRequest) ToJsonString() string
type DescribeStreamLiveChannelInputStatisticsResponse ¶
type DescribeStreamLiveChannelInputStatisticsResponse struct { *tchttp.BaseResponse Response *struct { // Channel input statistics Infos []*ChannelInputStatistics `json:"Infos,omitempty" name:"Infos"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeStreamLiveChannelInputStatisticsResponse ¶
func NewDescribeStreamLiveChannelInputStatisticsResponse() (response *DescribeStreamLiveChannelInputStatisticsResponse)
func (*DescribeStreamLiveChannelInputStatisticsResponse) FromJsonString ¶
func (r *DescribeStreamLiveChannelInputStatisticsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveChannelInputStatisticsResponse) ToJsonString ¶
func (r *DescribeStreamLiveChannelInputStatisticsResponse) ToJsonString() string
type DescribeStreamLiveChannelLogsRequest ¶
type DescribeStreamLiveChannelLogsRequest struct { *tchttp.BaseRequest // Channel ID ChannelId *string `json:"ChannelId,omitempty" name:"ChannelId"` // Start time for query, which is 1 hour ago by default. You can query logs in the last 7 days. // UTC time, such as `2020-01-01T12:00:00Z` StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time for query, which is 1 hour after `StartTime` by default // UTC time, such as `2020-01-01T12:00:00Z` EndTime *string `json:"EndTime,omitempty" name:"EndTime"` }
func NewDescribeStreamLiveChannelLogsRequest ¶
func NewDescribeStreamLiveChannelLogsRequest() (request *DescribeStreamLiveChannelLogsRequest)
func (*DescribeStreamLiveChannelLogsRequest) FromJsonString ¶
func (r *DescribeStreamLiveChannelLogsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveChannelLogsRequest) ToJsonString ¶
func (r *DescribeStreamLiveChannelLogsRequest) ToJsonString() string
type DescribeStreamLiveChannelLogsResponse ¶
type DescribeStreamLiveChannelLogsResponse struct { *tchttp.BaseResponse Response *struct { // Pipeline push information Infos *PipelineLogInfo `json:"Infos,omitempty" name:"Infos"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeStreamLiveChannelLogsResponse ¶
func NewDescribeStreamLiveChannelLogsResponse() (response *DescribeStreamLiveChannelLogsResponse)
func (*DescribeStreamLiveChannelLogsResponse) FromJsonString ¶
func (r *DescribeStreamLiveChannelLogsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveChannelLogsResponse) ToJsonString ¶
func (r *DescribeStreamLiveChannelLogsResponse) ToJsonString() string
type DescribeStreamLiveChannelOutputStatisticsRequest ¶
type DescribeStreamLiveChannelOutputStatisticsRequest struct { *tchttp.BaseRequest // Channel ID ChannelId *string `json:"ChannelId,omitempty" name:"ChannelId"` // Start time for query, which is 1 hour ago by default. You can query statistics in the last 7 days. // UTC time, such as `2020-01-01T12:00:00Z` StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // End time for query, which is 1 hour after `StartTime` by default // UTC time, such as `2020-01-01T12:00:00Z` EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // Data collection interval. Valid values: `5s`, `1min` (default), `5min`, `15min` Period *string `json:"Period,omitempty" name:"Period"` }
func NewDescribeStreamLiveChannelOutputStatisticsRequest ¶
func NewDescribeStreamLiveChannelOutputStatisticsRequest() (request *DescribeStreamLiveChannelOutputStatisticsRequest)
func (*DescribeStreamLiveChannelOutputStatisticsRequest) FromJsonString ¶
func (r *DescribeStreamLiveChannelOutputStatisticsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveChannelOutputStatisticsRequest) ToJsonString ¶
func (r *DescribeStreamLiveChannelOutputStatisticsRequest) ToJsonString() string
type DescribeStreamLiveChannelOutputStatisticsResponse ¶
type DescribeStreamLiveChannelOutputStatisticsResponse struct { *tchttp.BaseResponse Response *struct { // Channel output information Infos []*ChannelOutputsStatistics `json:"Infos,omitempty" name:"Infos"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeStreamLiveChannelOutputStatisticsResponse ¶
func NewDescribeStreamLiveChannelOutputStatisticsResponse() (response *DescribeStreamLiveChannelOutputStatisticsResponse)
func (*DescribeStreamLiveChannelOutputStatisticsResponse) FromJsonString ¶
func (r *DescribeStreamLiveChannelOutputStatisticsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveChannelOutputStatisticsResponse) ToJsonString ¶
func (r *DescribeStreamLiveChannelOutputStatisticsResponse) ToJsonString() string
type DescribeStreamLiveChannelRequest ¶
type DescribeStreamLiveChannelRequest struct { *tchttp.BaseRequest // Channel ID Id *string `json:"Id,omitempty" name:"Id"` }
func NewDescribeStreamLiveChannelRequest ¶
func NewDescribeStreamLiveChannelRequest() (request *DescribeStreamLiveChannelRequest)
func (*DescribeStreamLiveChannelRequest) FromJsonString ¶
func (r *DescribeStreamLiveChannelRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveChannelRequest) ToJsonString ¶
func (r *DescribeStreamLiveChannelRequest) ToJsonString() string
type DescribeStreamLiveChannelResponse ¶
type DescribeStreamLiveChannelResponse struct { *tchttp.BaseResponse Response *struct { // Channel information Info *StreamLiveChannelInfo `json:"Info,omitempty" name:"Info"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeStreamLiveChannelResponse ¶
func NewDescribeStreamLiveChannelResponse() (response *DescribeStreamLiveChannelResponse)
func (*DescribeStreamLiveChannelResponse) FromJsonString ¶
func (r *DescribeStreamLiveChannelResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveChannelResponse) ToJsonString ¶
func (r *DescribeStreamLiveChannelResponse) ToJsonString() string
type DescribeStreamLiveChannelsRequest ¶
type DescribeStreamLiveChannelsRequest struct {
*tchttp.BaseRequest
}
func NewDescribeStreamLiveChannelsRequest ¶
func NewDescribeStreamLiveChannelsRequest() (request *DescribeStreamLiveChannelsRequest)
func (*DescribeStreamLiveChannelsRequest) FromJsonString ¶
func (r *DescribeStreamLiveChannelsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveChannelsRequest) ToJsonString ¶
func (r *DescribeStreamLiveChannelsRequest) ToJsonString() string
type DescribeStreamLiveChannelsResponse ¶
type DescribeStreamLiveChannelsResponse struct { *tchttp.BaseResponse Response *struct { // List of channel information // Note: this field may return `null`, indicating that no valid value was found. Infos []*StreamLiveChannelInfo `json:"Infos,omitempty" name:"Infos"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeStreamLiveChannelsResponse ¶
func NewDescribeStreamLiveChannelsResponse() (response *DescribeStreamLiveChannelsResponse)
func (*DescribeStreamLiveChannelsResponse) FromJsonString ¶
func (r *DescribeStreamLiveChannelsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveChannelsResponse) ToJsonString ¶
func (r *DescribeStreamLiveChannelsResponse) ToJsonString() string
type DescribeStreamLiveInputRequest ¶
type DescribeStreamLiveInputRequest struct { *tchttp.BaseRequest // Input ID Id *string `json:"Id,omitempty" name:"Id"` }
func NewDescribeStreamLiveInputRequest ¶
func NewDescribeStreamLiveInputRequest() (request *DescribeStreamLiveInputRequest)
func (*DescribeStreamLiveInputRequest) FromJsonString ¶
func (r *DescribeStreamLiveInputRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveInputRequest) ToJsonString ¶
func (r *DescribeStreamLiveInputRequest) ToJsonString() string
type DescribeStreamLiveInputResponse ¶
type DescribeStreamLiveInputResponse struct { *tchttp.BaseResponse Response *struct { // Input information Info *InputInfo `json:"Info,omitempty" name:"Info"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeStreamLiveInputResponse ¶
func NewDescribeStreamLiveInputResponse() (response *DescribeStreamLiveInputResponse)
func (*DescribeStreamLiveInputResponse) FromJsonString ¶
func (r *DescribeStreamLiveInputResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveInputResponse) ToJsonString ¶
func (r *DescribeStreamLiveInputResponse) ToJsonString() string
type DescribeStreamLiveInputSecurityGroupRequest ¶
type DescribeStreamLiveInputSecurityGroupRequest struct { *tchttp.BaseRequest // Input security group ID Id *string `json:"Id,omitempty" name:"Id"` }
func NewDescribeStreamLiveInputSecurityGroupRequest ¶
func NewDescribeStreamLiveInputSecurityGroupRequest() (request *DescribeStreamLiveInputSecurityGroupRequest)
func (*DescribeStreamLiveInputSecurityGroupRequest) FromJsonString ¶
func (r *DescribeStreamLiveInputSecurityGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveInputSecurityGroupRequest) ToJsonString ¶
func (r *DescribeStreamLiveInputSecurityGroupRequest) ToJsonString() string
type DescribeStreamLiveInputSecurityGroupResponse ¶
type DescribeStreamLiveInputSecurityGroupResponse struct { *tchttp.BaseResponse Response *struct { // Input security group information Info *InputSecurityGroupInfo `json:"Info,omitempty" name:"Info"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeStreamLiveInputSecurityGroupResponse ¶
func NewDescribeStreamLiveInputSecurityGroupResponse() (response *DescribeStreamLiveInputSecurityGroupResponse)
func (*DescribeStreamLiveInputSecurityGroupResponse) FromJsonString ¶
func (r *DescribeStreamLiveInputSecurityGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveInputSecurityGroupResponse) ToJsonString ¶
func (r *DescribeStreamLiveInputSecurityGroupResponse) ToJsonString() string
type DescribeStreamLiveInputSecurityGroupsRequest ¶
type DescribeStreamLiveInputSecurityGroupsRequest struct {
*tchttp.BaseRequest
}
func NewDescribeStreamLiveInputSecurityGroupsRequest ¶
func NewDescribeStreamLiveInputSecurityGroupsRequest() (request *DescribeStreamLiveInputSecurityGroupsRequest)
func (*DescribeStreamLiveInputSecurityGroupsRequest) FromJsonString ¶
func (r *DescribeStreamLiveInputSecurityGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveInputSecurityGroupsRequest) ToJsonString ¶
func (r *DescribeStreamLiveInputSecurityGroupsRequest) ToJsonString() string
type DescribeStreamLiveInputSecurityGroupsResponse ¶
type DescribeStreamLiveInputSecurityGroupsResponse struct { *tchttp.BaseResponse Response *struct { // List of input security group information Infos []*InputSecurityGroupInfo `json:"Infos,omitempty" name:"Infos"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeStreamLiveInputSecurityGroupsResponse ¶
func NewDescribeStreamLiveInputSecurityGroupsResponse() (response *DescribeStreamLiveInputSecurityGroupsResponse)
func (*DescribeStreamLiveInputSecurityGroupsResponse) FromJsonString ¶
func (r *DescribeStreamLiveInputSecurityGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveInputSecurityGroupsResponse) ToJsonString ¶
func (r *DescribeStreamLiveInputSecurityGroupsResponse) ToJsonString() string
type DescribeStreamLiveInputsRequest ¶
type DescribeStreamLiveInputsRequest struct {
*tchttp.BaseRequest
}
func NewDescribeStreamLiveInputsRequest ¶
func NewDescribeStreamLiveInputsRequest() (request *DescribeStreamLiveInputsRequest)
func (*DescribeStreamLiveInputsRequest) FromJsonString ¶
func (r *DescribeStreamLiveInputsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveInputsRequest) ToJsonString ¶
func (r *DescribeStreamLiveInputsRequest) ToJsonString() string
type DescribeStreamLiveInputsResponse ¶
type DescribeStreamLiveInputsResponse struct { *tchttp.BaseResponse Response *struct { // List of input information // Note: this field may return `null`, indicating that no valid value was found. Infos []*InputInfo `json:"Infos,omitempty" name:"Infos"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeStreamLiveInputsResponse ¶
func NewDescribeStreamLiveInputsResponse() (response *DescribeStreamLiveInputsResponse)
func (*DescribeStreamLiveInputsResponse) FromJsonString ¶
func (r *DescribeStreamLiveInputsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveInputsResponse) ToJsonString ¶
func (r *DescribeStreamLiveInputsResponse) ToJsonString() string
type DescribeStreamLivePlansRequest ¶
type DescribeStreamLivePlansRequest struct { *tchttp.BaseRequest // ID of the channel whose events you want to query ChannelId *string `json:"ChannelId,omitempty" name:"ChannelId"` }
func NewDescribeStreamLivePlansRequest ¶
func NewDescribeStreamLivePlansRequest() (request *DescribeStreamLivePlansRequest)
func (*DescribeStreamLivePlansRequest) FromJsonString ¶
func (r *DescribeStreamLivePlansRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLivePlansRequest) ToJsonString ¶
func (r *DescribeStreamLivePlansRequest) ToJsonString() string
type DescribeStreamLivePlansResponse ¶
type DescribeStreamLivePlansResponse struct { *tchttp.BaseResponse Response *struct { // List of event information // Note: this field may return `null`, indicating that no valid value was found. Infos []*PlanResp `json:"Infos,omitempty" name:"Infos"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeStreamLivePlansResponse ¶
func NewDescribeStreamLivePlansResponse() (response *DescribeStreamLivePlansResponse)
func (*DescribeStreamLivePlansResponse) FromJsonString ¶
func (r *DescribeStreamLivePlansResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLivePlansResponse) ToJsonString ¶
func (r *DescribeStreamLivePlansResponse) ToJsonString() string
type DescribeStreamLiveRegionsRequest ¶
type DescribeStreamLiveRegionsRequest struct {
*tchttp.BaseRequest
}
func NewDescribeStreamLiveRegionsRequest ¶
func NewDescribeStreamLiveRegionsRequest() (request *DescribeStreamLiveRegionsRequest)
func (*DescribeStreamLiveRegionsRequest) FromJsonString ¶
func (r *DescribeStreamLiveRegionsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveRegionsRequest) ToJsonString ¶
func (r *DescribeStreamLiveRegionsRequest) ToJsonString() string
type DescribeStreamLiveRegionsResponse ¶
type DescribeStreamLiveRegionsResponse struct { *tchttp.BaseResponse Response *struct { // StreamLive region information Info *StreamLiveRegionInfo `json:"Info,omitempty" name:"Info"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeStreamLiveRegionsResponse ¶
func NewDescribeStreamLiveRegionsResponse() (response *DescribeStreamLiveRegionsResponse)
func (*DescribeStreamLiveRegionsResponse) FromJsonString ¶
func (r *DescribeStreamLiveRegionsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStreamLiveRegionsResponse) ToJsonString ¶
func (r *DescribeStreamLiveRegionsResponse) ToJsonString() string
type DestinationInfo ¶
type DestinationInfo struct { // Relay destination address. Length limit: [1,512]. OutputUrl *string `json:"OutputUrl,omitempty" name:"OutputUrl"` // Authentication key. Length limit: [1,128]. // Note: this field may return null, indicating that no valid values can be obtained. AuthKey *string `json:"AuthKey,omitempty" name:"AuthKey"` // Authentication username. Length limit: [1,128]. // Note: this field may return null, indicating that no valid values can be obtained. Username *string `json:"Username,omitempty" name:"Username"` // Authentication password. Length limit: [1,128]. // Note: this field may return null, indicating that no valid values can be obtained. Password *string `json:"Password,omitempty" name:"Password"` }
type DrmKey ¶
type DrmKey struct { // DRM key, which is a 32-bit hexadecimal string. // Note: uppercase letters in the string will be automatically converted to lowercase ones. Key *string `json:"Key,omitempty" name:"Key"` // Required for Widevine encryption. Valid values: SD, HD, UHD1, UHD2, AUDIO, ALL. // ALL refers to all tracks. If this parameter is set to ALL, no other tracks can be added. // Note: this field may return null, indicating that no valid values can be obtained. Track *string `json:"Track,omitempty" name:"Track"` // Required for Widevine encryption. It is a 32-bit hexadecimal string. // Note: uppercase letters in the string will be automatically converted to lowercase ones. // Note: this field may return null, indicating that no valid values can be obtained. KeyId *string `json:"KeyId,omitempty" name:"KeyId"` // Required when FairPlay uses the AES encryption method. It is a 32-bit hexadecimal string. // For more information about this parameter, please see: // https://tools.ietf.org/html/rfc3826 // Note: uppercase letters in the string will be automatically converted to lowercase ones. // Note: this field may return null, indicating that no valid values can be obtained. Iv *string `json:"Iv,omitempty" name:"Iv"` }
type DrmSettingsInfo ¶
type DrmSettingsInfo struct { // Whether to enable DRM encryption. Valid values: `CLOSE` (disable), `OPEN` (enable). Default value: `CLOSE` // DRM encryption is supported only for HLS, DASH, HLS_ARCHIVE, DASH_ARCHIVE, HLS_MEDIAPACKAGE, and DASH_MEDIAPACKAGE outputs. State *string `json:"State,omitempty" name:"State"` // Valid values: `CustomDRMKeys` (default value), `SDMCDRM` // `CustomDRMKeys` means encryption keys customized by users. // `SDMCDRM` means the DRM key management system of SDMC. Scheme *string `json:"Scheme,omitempty" name:"Scheme"` // If `Scheme` is set to `CustomDRMKeys`, this parameter is required. // If `Scheme` is set to `SDMCDRM`, this parameter is optional. It supports digits, letters, hyphens, and underscores and must contain 1 to 36 characters. If it is not specified, the value of `ChannelId` will be used. ContentId *string `json:"ContentId,omitempty" name:"ContentId"` // The key customized by the content user, which is required when `Scheme` is set to CustomDRMKeys. // Note: this field may return null, indicating that no valid values can be obtained. Keys []*DrmKey `json:"Keys,omitempty" name:"Keys"` // SDMC key configuration. This parameter is used when `Scheme` is set to `SDMCDRM`. // Note: This field may return `null`, indicating that no valid value was found. SDMCSettings *SDMCSettingsInfo `json:"SDMCSettings,omitempty" name:"SDMCSettings"` }
type EventSettingsDestinationReq ¶
type EventSettingsDestinationReq struct { // URL of the COS bucket to save recording files Url *string `json:"Url,omitempty" name:"Url"` }
type EventSettingsDestinationResp ¶
type EventSettingsDestinationResp struct { // URL of the COS bucket where recording files are saved Url *string `json:"Url,omitempty" name:"Url"` }
type EventSettingsReq ¶
type EventSettingsReq struct { // Valid values: `INPUT_SWITCH`, `TIMED_RECORD`. If it is not specified, `INPUT_SWITCH` will be used. EventType *string `json:"EventType,omitempty" name:"EventType"` // ID of the input to attach, which is required if `EventType` is `INPUT_SWITCH` InputAttachment *string `json:"InputAttachment,omitempty" name:"InputAttachment"` // Name of the output group to attach. This parameter is required if `EventType` is `TIMED_RECORD`. OutputGroupName *string `json:"OutputGroupName,omitempty" name:"OutputGroupName"` // Name of the manifest file for timed recording, which must end with `.m3u8` for HLS and `.mpd` for DASH. This parameter is required if `EventType` is `TIMED_RECORD`. ManifestName *string `json:"ManifestName,omitempty" name:"ManifestName"` // URL of the COS bucket to save recording files. This parameter is required if `EventType` is `TIMED_RECORD`. It may contain 1 or 2 URLs. The first URL corresponds to pipeline 0 and the second pipeline 1. Destinations []*EventSettingsDestinationReq `json:"Destinations,omitempty" name:"Destinations"` }
type EventSettingsResp ¶
type EventSettingsResp struct { // Only `INPUT_SWITCH` is supported currently. EventType *string `json:"EventType,omitempty" name:"EventType"` // ID of the input attached, which is not empty if `EventType` is `INPUT_SWITCH` InputAttachment *string `json:"InputAttachment,omitempty" name:"InputAttachment"` // Name of the output group attached. This parameter is not empty if `EventType` is `TIMED_RECORD`. OutputGroupName *string `json:"OutputGroupName,omitempty" name:"OutputGroupName"` // Name of the manifest file for timed recording, which ends with `.m3u8` for HLS and `.mpd` for DASH. This parameter is not empty if `EventType` is `TIMED_RECORD`. ManifestName *string `json:"ManifestName,omitempty" name:"ManifestName"` // URL of the COS bucket where recording files are saved. This parameter is not empty if `EventType` is `TIMED_RECORD`. It may contain 1 or 2 URLs. The first URL corresponds to pipeline 0 and the second pipeline 1. Destinations []*EventSettingsDestinationResp `json:"Destinations,omitempty" name:"Destinations"` }
type FailOverSettings ¶
type FailOverSettings struct { // ID of the backup input // Note: this field may return `null`, indicating that no valid value was found. SecondaryInputId *string `json:"SecondaryInputId,omitempty" name:"SecondaryInputId"` // The wait time (ms) for triggering failover after the primary input becomes unavailable. Value range: [1000, 86400000]. Default value: `3000` LossThreshold *int64 `json:"LossThreshold,omitempty" name:"LossThreshold"` // Failover policy. Valid values: `CURRENT_PREFERRED` (default), `PRIMARY_PREFERRED` RecoverBehavior *string `json:"RecoverBehavior,omitempty" name:"RecoverBehavior"` }
type HlsRemuxSettingsInfo ¶
type HlsRemuxSettingsInfo struct { // Segment duration in ms. Value range: [1000,30000]. Default value: 4000. The value can only be a multiple of 1,000. SegmentDuration *uint64 `json:"SegmentDuration,omitempty" name:"SegmentDuration"` // Number of segments. Value range: [1,30]. Default value: 5. SegmentNumber *uint64 `json:"SegmentNumber,omitempty" name:"SegmentNumber"` // Whether to enable PDT insertion. Valid values: CLOSE/OPEN. Default value: CLOSE. PdtInsertion *string `json:"PdtInsertion,omitempty" name:"PdtInsertion"` // PDT duration in seconds. Value range: (0,3000]. Default value: 600. PdtDuration *uint64 `json:"PdtDuration,omitempty" name:"PdtDuration"` // Audio/Video packaging scheme. Valid values: `SEPARATE`, `MERGE` Scheme *string `json:"Scheme,omitempty" name:"Scheme"` }
type InputInfo ¶
type InputInfo struct { // Input region. Region *string `json:"Region,omitempty" name:"Region"` // Input ID. Id *string `json:"Id,omitempty" name:"Id"` // Input name. Name *string `json:"Name,omitempty" name:"Name"` // Input type. Type *string `json:"Type,omitempty" name:"Type"` // Array of security groups associated with input. SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // Array of channels associated with input. // Note: this field may return null, indicating that no valid values can be obtained. AttachedChannels []*string `json:"AttachedChannels,omitempty" name:"AttachedChannels"` // Input configuration array. InputSettings []*InputSettingInfo `json:"InputSettings,omitempty" name:"InputSettings"` }
type InputSecurityGroupInfo ¶
type InputSecurityGroupInfo struct { // Input security group ID. Id *string `json:"Id,omitempty" name:"Id"` // Input security group name. Name *string `json:"Name,omitempty" name:"Name"` // List of allowlist entries. Whitelist []*string `json:"Whitelist,omitempty" name:"Whitelist"` // List of bound input streams. // Note: this field may return null, indicating that no valid values can be obtained. OccupiedInputs []*string `json:"OccupiedInputs,omitempty" name:"OccupiedInputs"` // Input security group address. Region *string `json:"Region,omitempty" name:"Region"` }
type InputSettingInfo ¶
type InputSettingInfo struct { // Application name, which is used for RTMP_PUSH and can contain 1-32 letters and digits. // Note: this field may return null, indicating that no valid values can be obtained. AppName *string `json:"AppName,omitempty" name:"AppName"` // Stream name, which is used for RTMP_PUSH and can contain 1-32 letters and digits. // Note: this field may return null, indicating that no valid values can be obtained. StreamName *string `json:"StreamName,omitempty" name:"StreamName"` // Origin-pull URL, which is used for RTMP_PULL/HLS_PULL/MP4_PULL. Length limit: [1,512]. // Note: this field may return null, indicating that no valid values can be obtained. SourceUrl *string `json:"SourceUrl,omitempty" name:"SourceUrl"` // RTP/UDP input address, which does not need to be entered for the input parameter. // Note: this field may return null, indicating that no valid values can be obtained. InputAddress *string `json:"InputAddress,omitempty" name:"InputAddress"` // Source type for stream pulling and relaying. To pull content from private-read COS buckets under the current account, set this parameter to `TencentCOS`; otherwise, leave it empty. // Note: this field may return `null`, indicating that no valid value was found. SourceType *string `json:"SourceType,omitempty" name:"SourceType"` }
type InputStatistics ¶
type InputStatistics struct { // Input statistics of pipeline 0. Pipeline0 []*PipelineInputStatistics `json:"Pipeline0,omitempty" name:"Pipeline0"` // Input statistics of pipeline 1. Pipeline1 []*PipelineInputStatistics `json:"Pipeline1,omitempty" name:"Pipeline1"` }
type LogInfo ¶
type LogInfo struct { // Log type. // It contains the value of `StreamStart` which refers to the push information. Type *string `json:"Type,omitempty" name:"Type"` // Time when the log is printed. Time *string `json:"Time,omitempty" name:"Time"` // Log details. Message *LogMessageInfo `json:"Message,omitempty" name:"Message"` }
type LogMessageInfo ¶
type LogMessageInfo struct { // Push information. // Note: this field may return null, indicating that no valid values can be obtained. StreamInfo *StreamInfo `json:"StreamInfo,omitempty" name:"StreamInfo"` }
type ModifyStreamLiveChannelRequest ¶
type ModifyStreamLiveChannelRequest struct { *tchttp.BaseRequest // Channel ID Id *string `json:"Id,omitempty" name:"Id"` // Channel name, which can contain 1-32 case-sensitive letters, digits, and underscores and must be unique at the region level Name *string `json:"Name,omitempty" name:"Name"` // Inputs to attach. You can attach 1 to 5 inputs. AttachedInputs []*AttachedInput `json:"AttachedInputs,omitempty" name:"AttachedInputs"` // Configuration information of the channel’s output groups. Quantity: [1, 10] OutputGroups []*StreamLiveOutputGroupsInfo `json:"OutputGroups,omitempty" name:"OutputGroups"` // Audio transcoding templates. Quantity: [1, 20] AudioTemplates []*AudioTemplateInfo `json:"AudioTemplates,omitempty" name:"AudioTemplates"` // Video transcoding templates. Quantity: [1, 10] VideoTemplates []*VideoTemplateInfo `json:"VideoTemplates,omitempty" name:"VideoTemplates"` // Audio/Video transcoding templates. Quantity: [1, 10] AVTemplates []*AVTemplate `json:"AVTemplates,omitempty" name:"AVTemplates"` }
func NewModifyStreamLiveChannelRequest ¶
func NewModifyStreamLiveChannelRequest() (request *ModifyStreamLiveChannelRequest)
func (*ModifyStreamLiveChannelRequest) FromJsonString ¶
func (r *ModifyStreamLiveChannelRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyStreamLiveChannelRequest) ToJsonString ¶
func (r *ModifyStreamLiveChannelRequest) ToJsonString() string
type ModifyStreamLiveChannelResponse ¶
type ModifyStreamLiveChannelResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyStreamLiveChannelResponse ¶
func NewModifyStreamLiveChannelResponse() (response *ModifyStreamLiveChannelResponse)
func (*ModifyStreamLiveChannelResponse) FromJsonString ¶
func (r *ModifyStreamLiveChannelResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyStreamLiveChannelResponse) ToJsonString ¶
func (r *ModifyStreamLiveChannelResponse) ToJsonString() string
type ModifyStreamLiveInputRequest ¶
type ModifyStreamLiveInputRequest struct { *tchttp.BaseRequest // Input ID Id *string `json:"Id,omitempty" name:"Id"` // Input name, which can contain 1-32 case-sensitive letters, digits, and underscores and must be unique at the region level Name *string `json:"Name,omitempty" name:"Name"` // List of the IDs of the security groups to attach SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` // Input settings // For the type `RTMP_PUSH`, `RTMP_PULL`, `HLS_PULL`, or `MP4_PULL`, 1 or 2 inputs of the corresponding type can be configured. // This parameter can be left empty for RTP_PUSH and UDP_PUSH inputs. // Note: If this parameter is not specified or empty, the original input settings will be used. InputSettings []*InputSettingInfo `json:"InputSettings,omitempty" name:"InputSettings"` }
func NewModifyStreamLiveInputRequest ¶
func NewModifyStreamLiveInputRequest() (request *ModifyStreamLiveInputRequest)
func (*ModifyStreamLiveInputRequest) FromJsonString ¶
func (r *ModifyStreamLiveInputRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyStreamLiveInputRequest) ToJsonString ¶
func (r *ModifyStreamLiveInputRequest) ToJsonString() string
type ModifyStreamLiveInputResponse ¶
type ModifyStreamLiveInputResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyStreamLiveInputResponse ¶
func NewModifyStreamLiveInputResponse() (response *ModifyStreamLiveInputResponse)
func (*ModifyStreamLiveInputResponse) FromJsonString ¶
func (r *ModifyStreamLiveInputResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyStreamLiveInputResponse) ToJsonString ¶
func (r *ModifyStreamLiveInputResponse) ToJsonString() string
type ModifyStreamLiveInputSecurityGroupRequest ¶
type ModifyStreamLiveInputSecurityGroupRequest struct { *tchttp.BaseRequest // Input security group ID Id *string `json:"Id,omitempty" name:"Id"` // Input security group name, which can contain 1-32 case-sensitive letters, digits, and underscores and must be unique at the region level Name *string `json:"Name,omitempty" name:"Name"` // Allowlist entries (max: 10) Whitelist []*string `json:"Whitelist,omitempty" name:"Whitelist"` }
func NewModifyStreamLiveInputSecurityGroupRequest ¶
func NewModifyStreamLiveInputSecurityGroupRequest() (request *ModifyStreamLiveInputSecurityGroupRequest)
func (*ModifyStreamLiveInputSecurityGroupRequest) FromJsonString ¶
func (r *ModifyStreamLiveInputSecurityGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyStreamLiveInputSecurityGroupRequest) ToJsonString ¶
func (r *ModifyStreamLiveInputSecurityGroupRequest) ToJsonString() string
type ModifyStreamLiveInputSecurityGroupResponse ¶
type ModifyStreamLiveInputSecurityGroupResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyStreamLiveInputSecurityGroupResponse ¶
func NewModifyStreamLiveInputSecurityGroupResponse() (response *ModifyStreamLiveInputSecurityGroupResponse)
func (*ModifyStreamLiveInputSecurityGroupResponse) FromJsonString ¶
func (r *ModifyStreamLiveInputSecurityGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyStreamLiveInputSecurityGroupResponse) ToJsonString ¶
func (r *ModifyStreamLiveInputSecurityGroupResponse) ToJsonString() string
type OutputInfo ¶
type OutputInfo struct { // Output name. Name *string `json:"Name,omitempty" name:"Name"` // Audio transcoding template name array. // Quantity limit: [0,1] for RTMP; [0,20] for others. // Note: this field may return null, indicating that no valid values can be obtained. AudioTemplateNames []*string `json:"AudioTemplateNames,omitempty" name:"AudioTemplateNames"` // Video transcoding template name array. Quantity limit: [0,1]. // Note: this field may return null, indicating that no valid values can be obtained. VideoTemplateNames []*string `json:"VideoTemplateNames,omitempty" name:"VideoTemplateNames"` // SCTE-35 information configuration. Scte35Settings *Scte35SettingsInfo `json:"Scte35Settings,omitempty" name:"Scte35Settings"` // Audio/Video transcoding template name. If `HlsRemuxSettings.Scheme` is `MERGE`, there is 1 audio/video transcoding template. Otherwise, this parameter is empty. // Note: this field may return `null`, indicating that no valid value was found. AVTemplateNames []*string `json:"AVTemplateNames,omitempty" name:"AVTemplateNames"` }
type OutputsStatistics ¶
type OutputsStatistics struct { // Output information of pipeline 0. Pipeline0 []*PipelineOutputStatistics `json:"Pipeline0,omitempty" name:"Pipeline0"` // Output information of pipeline 1. Pipeline1 []*PipelineOutputStatistics `json:"Pipeline1,omitempty" name:"Pipeline1"` }
type PipelineInputStatistics ¶
type PipelineInputStatistics struct { // Data timestamp in seconds. Timestamp *uint64 `json:"Timestamp,omitempty" name:"Timestamp"` // Input bandwidth in bps. NetworkIn *uint64 `json:"NetworkIn,omitempty" name:"NetworkIn"` // Video information array. // For `rtp/udp` input, the quantity is the number of `Pid` of the input video. // For other inputs, the quantity is 1. Video []*VideoPipelineInputStatistics `json:"Video,omitempty" name:"Video"` // Audio information array. // For `rtp/udp` input, the quantity is the number of `Pid` of the input audio. // For other inputs, the quantity is 1. Audio []*AudioPipelineInputStatistics `json:"Audio,omitempty" name:"Audio"` }
type PipelineLogInfo ¶
type PipelineLogInfo struct { // Log information of pipeline 0. // Note: this field may return null, indicating that no valid values can be obtained. Pipeline0 []*LogInfo `json:"Pipeline0,omitempty" name:"Pipeline0"` // Log information of pipeline 1. // Note: this field may return null, indicating that no valid values can be obtained. Pipeline1 []*LogInfo `json:"Pipeline1,omitempty" name:"Pipeline1"` }
type PlanReq ¶
type PlanReq struct { // Event name EventName *string `json:"EventName,omitempty" name:"EventName"` // Event trigger time settings TimingSettings *TimingSettingsReq `json:"TimingSettings,omitempty" name:"TimingSettings"` // Event configuration EventSettings *EventSettingsReq `json:"EventSettings,omitempty" name:"EventSettings"` }
type PlanResp ¶
type PlanResp struct { // Event name EventName *string `json:"EventName,omitempty" name:"EventName"` // Event trigger time settings TimingSettings *TimingSettingsResp `json:"TimingSettings,omitempty" name:"TimingSettings"` // Event configuration EventSettings *EventSettingsResp `json:"EventSettings,omitempty" name:"EventSettings"` }
type RegionInfo ¶
type RegionInfo struct { // Region name Name *string `json:"Name,omitempty" name:"Name"` }
type SDMCSettingsInfo ¶
type SDMCSettingsInfo struct { // User ID in the SDMC DRM system Uid *string `json:"Uid,omitempty" name:"Uid"` // Tracks of the SDMC DRM system. This parameter is valid for DASH output groups. // `1`: audio // `2`: SD // `4`: HD // `8`: UHD1 // `16`: UHD2 // // Default value: `31` (audio + SD + HD + UHD1 + UHD2) Tracks *int64 `json:"Tracks,omitempty" name:"Tracks"` // Key ID in the SDMC DRM system; required SecretId *string `json:"SecretId,omitempty" name:"SecretId"` // Key in the SDMC DRM system; required SecretKey *string `json:"SecretKey,omitempty" name:"SecretKey"` // Key request URL of the SDMC DRM system, which is `https://uat.multidrm.tv/cpix/2.2/getcontentkey` by default Url *string `json:"Url,omitempty" name:"Url"` // Token name in an SDMC key request URL, which is `token` by default TokenName *string `json:"TokenName,omitempty" name:"TokenName"` }
type Scte35SettingsInfo ¶
type Scte35SettingsInfo struct { // Whether to pass through SCTE-35 information. Valid values: NO_PASSTHROUGH/PASSTHROUGH. Default value: NO_PASSTHROUGH. Behavior *string `json:"Behavior,omitempty" name:"Behavior"` }
type StartStreamLiveChannelRequest ¶
type StartStreamLiveChannelRequest struct { *tchttp.BaseRequest // Channel ID Id *string `json:"Id,omitempty" name:"Id"` }
func NewStartStreamLiveChannelRequest ¶
func NewStartStreamLiveChannelRequest() (request *StartStreamLiveChannelRequest)
func (*StartStreamLiveChannelRequest) FromJsonString ¶
func (r *StartStreamLiveChannelRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartStreamLiveChannelRequest) ToJsonString ¶
func (r *StartStreamLiveChannelRequest) ToJsonString() string
type StartStreamLiveChannelResponse ¶
type StartStreamLiveChannelResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewStartStreamLiveChannelResponse ¶
func NewStartStreamLiveChannelResponse() (response *StartStreamLiveChannelResponse)
func (*StartStreamLiveChannelResponse) FromJsonString ¶
func (r *StartStreamLiveChannelResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StartStreamLiveChannelResponse) ToJsonString ¶
func (r *StartStreamLiveChannelResponse) ToJsonString() string
type StopStreamLiveChannelRequest ¶
type StopStreamLiveChannelRequest struct { *tchttp.BaseRequest // Channel ID Id *string `json:"Id,omitempty" name:"Id"` }
func NewStopStreamLiveChannelRequest ¶
func NewStopStreamLiveChannelRequest() (request *StopStreamLiveChannelRequest)
func (*StopStreamLiveChannelRequest) FromJsonString ¶
func (r *StopStreamLiveChannelRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopStreamLiveChannelRequest) ToJsonString ¶
func (r *StopStreamLiveChannelRequest) ToJsonString() string
type StopStreamLiveChannelResponse ¶
type StopStreamLiveChannelResponse struct { *tchttp.BaseResponse Response *struct { // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewStopStreamLiveChannelResponse ¶
func NewStopStreamLiveChannelResponse() (response *StopStreamLiveChannelResponse)
func (*StopStreamLiveChannelResponse) FromJsonString ¶
func (r *StopStreamLiveChannelResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*StopStreamLiveChannelResponse) ToJsonString ¶
func (r *StopStreamLiveChannelResponse) ToJsonString() string
type StreamAudioInfo ¶
type StreamAudioInfo struct { // Audio `Pid`. // Note: this field may return null, indicating that no valid values can be obtained. Pid *int64 `json:"Pid,omitempty" name:"Pid"` // Audio codec. // Note: this field may return null, indicating that no valid values can be obtained. Codec *string `json:"Codec,omitempty" name:"Codec"` // Audio frame rate. // Note: this field may return null, indicating that no valid values can be obtained. Fps *int64 `json:"Fps,omitempty" name:"Fps"` // Audio bitrate. // Note: this field may return null, indicating that no valid values can be obtained. Rate *int64 `json:"Rate,omitempty" name:"Rate"` // Audio sample rate. // Note: this field may return null, indicating that no valid values can be obtained. SampleRate *int64 `json:"SampleRate,omitempty" name:"SampleRate"` }
type StreamInfo ¶
type StreamInfo struct { // Client IP. ClientIp *string `json:"ClientIp,omitempty" name:"ClientIp"` // Video information of pushed streams. Video []*StreamVideoInfo `json:"Video,omitempty" name:"Video"` // Audio information of pushed streams. Audio []*StreamAudioInfo `json:"Audio,omitempty" name:"Audio"` // SCTE-35 information of pushed streams. Scte35 []*StreamScte35Info `json:"Scte35,omitempty" name:"Scte35"` }
type StreamLiveChannelInfo ¶
type StreamLiveChannelInfo struct { // Channel ID Id *string `json:"Id,omitempty" name:"Id"` // Channel status State *string `json:"State,omitempty" name:"State"` // Information of attached inputs AttachedInputs []*AttachedInput `json:"AttachedInputs,omitempty" name:"AttachedInputs"` // Information of output groups OutputGroups []*StreamLiveOutputGroupsInfo `json:"OutputGroups,omitempty" name:"OutputGroups"` // Channel name Name *string `json:"Name,omitempty" name:"Name"` // Audio transcoding templates // Note: this field may return `null`, indicating that no valid value was found. AudioTemplates []*AudioTemplateInfo `json:"AudioTemplates,omitempty" name:"AudioTemplates"` // Video transcoding templates // Note: this field may return `null`, indicating that no valid value was found. VideoTemplates []*VideoTemplateInfo `json:"VideoTemplates,omitempty" name:"VideoTemplates"` // Audio/Video transcoding templates // Note: this field may return `null`, indicating that no valid value was found. AVTemplates []*AVTemplate `json:"AVTemplates,omitempty" name:"AVTemplates"` }
type StreamLiveOutputGroupsInfo ¶
type StreamLiveOutputGroupsInfo struct { // Output group name, which can contain 1-32 case-sensitive letters, digits, and underscores and must be unique at the channel level Name *string `json:"Name,omitempty" name:"Name"` // Output protocol // Valid values: `HLS`, `DASH`, `HLS_ARCHIVE`, `HLS_STREAM_PACKAGE`, `DASH_STREAM_PACKAGE` Type *string `json:"Type,omitempty" name:"Type"` // Output information // If the type is RTMP or RTP, only one output is allowed; if it is HLS or DASH, 1-10 outputs are allowed. Outputs []*OutputInfo `json:"Outputs,omitempty" name:"Outputs"` // Relay destinations. Quantity: [1, 2] Destinations []*DestinationInfo `json:"Destinations,omitempty" name:"Destinations"` // HLS protocol configuration information, which takes effect only for HLS/HLS_ARCHIVE outputs // Note: this field may return `null`, indicating that no valid value was found. HlsRemuxSettings *HlsRemuxSettingsInfo `json:"HlsRemuxSettings,omitempty" name:"HlsRemuxSettings"` // DRM configuration information // Note: this field may return `null`, indicating that no valid value was found. DrmSettings *DrmSettingsInfo `json:"DrmSettings,omitempty" name:"DrmSettings"` // DASH protocol configuration information, which takes effect only for DASH/DASH_ARCHIVE outputs // Note: this field may return `null`, indicating that no valid value was found. DashRemuxSettings *DashRemuxSettingsInfo `json:"DashRemuxSettings,omitempty" name:"DashRemuxSettings"` // StreamPackage configuration information, which is required if the output type is StreamPackage // Note: this field may return `null`, indicating that no valid value was found. StreamPackageSettings *StreamPackageSettingsInfo `json:"StreamPackageSettings,omitempty" name:"StreamPackageSettings"` // Time-shift configuration information // Note: This field may return `null`, indicating that no valid value was found. TimeShiftSettings *TimeShiftSettingsInfo `json:"TimeShiftSettings,omitempty" name:"TimeShiftSettings"` }
type StreamLiveRegionInfo ¶
type StreamLiveRegionInfo struct { // List of StreamLive regions Regions []*RegionInfo `json:"Regions,omitempty" name:"Regions"` }
type StreamPackageSettingsInfo ¶
type StreamPackageSettingsInfo struct { // Channel ID in StreamPackage Id *string `json:"Id,omitempty" name:"Id"` }
type StreamScte35Info ¶
type StreamScte35Info struct { // SCTE-35 `Pid`. // Note: this field may return null, indicating that no valid values can be obtained. Pid *int64 `json:"Pid,omitempty" name:"Pid"` }
type StreamVideoInfo ¶
type StreamVideoInfo struct { // Video `Pid`. // Note: this field may return null, indicating that no valid values can be obtained. Pid *int64 `json:"Pid,omitempty" name:"Pid"` // Video codec. // Note: this field may return null, indicating that no valid values can be obtained. Codec *string `json:"Codec,omitempty" name:"Codec"` // Video frame rate. // Note: this field may return null, indicating that no valid values can be obtained. Fps *int64 `json:"Fps,omitempty" name:"Fps"` // Video bitrate. // Note: this field may return null, indicating that no valid values can be obtained. Rate *int64 `json:"Rate,omitempty" name:"Rate"` // Video width. // Note: this field may return null, indicating that no valid values can be obtained. Width *int64 `json:"Width,omitempty" name:"Width"` // Video height. // Note: this field may return null, indicating that no valid values can be obtained. Height *int64 `json:"Height,omitempty" name:"Height"` }
type TimeShiftSettingsInfo ¶
type TimeShiftSettingsInfo struct { // Whether to enable time shifting. Valid values: `OPEN`; `CLOSE` // Note: This field may return `null`, indicating that no valid value was found. State *string `json:"State,omitempty" name:"State"` // Domain name bound for time shifting // Note: This field may return `null`, indicating that no valid value was found. PlayDomain *string `json:"PlayDomain,omitempty" name:"PlayDomain"` // Allowable time-shift period (s). Value range: [600, 1209600]. Default value: 300 // Note: This field may return `null`, indicating that no valid value was found. StartoverWindow *int64 `json:"StartoverWindow,omitempty" name:"StartoverWindow"` }
type TimingSettingsReq ¶
type TimingSettingsReq struct { // Event trigger type. Valid values: `FIXED_TIME`, `IMMEDIATE`. This parameter is required if `EventType` is `INPUT_SWITCH`. StartType *string `json:"StartType,omitempty" name:"StartType"` // This parameter is required if `EventType` is `INPUT_SWITCH` and `StartType` is `FIXED_TIME`. // It must be in UTC format, e.g., `2020-01-01T12:00:00Z`. Time *string `json:"Time,omitempty" name:"Time"` // This parameter is required if `EventType` is `TIMED_RECORD`. // It specifies the recording start time in UTC format (e.g., `2020-01-01T12:00:00Z`) and must be at least 1 minute later than the current time. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // This parameter is required if `EventType` is `TIMED_RECORD`. // It specifies the recording end time in UTC format (e.g., `2020-01-01T12:00:00Z`) and must be at least 1 minute later than the recording start time. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` }
type TimingSettingsResp ¶
type TimingSettingsResp struct { // Event trigger type StartType *string `json:"StartType,omitempty" name:"StartType"` // Not empty if `StartType` is `FIXED_TIME` // UTC time, such as `2020-01-01T12:00:00Z` Time *string `json:"Time,omitempty" name:"Time"` // This parameter cannot be empty if `EventType` is `TIMED_RECORD`. // It indicates the start time for recording in UTC format (e.g., `2020-01-01T12:00:00Z`) and must be at least 1 minute later than the current time. StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // This parameter cannot be empty if `EventType` is `TIMED_RECORD`. // It indicates the end time for recording in UTC format (e.g., `2020-01-01T12:00:00Z`) and must be at least 1 minute later than the start time for recording. EndTime *string `json:"EndTime,omitempty" name:"EndTime"` }
type VideoTemplateInfo ¶
type VideoTemplateInfo struct { // Video transcoding template name, which can contain 1-20 letters and digits. Name *string `json:"Name,omitempty" name:"Name"` // Video codec. Valid values: H264/H265. If this parameter is left empty, the original value will be used. Vcodec *string `json:"Vcodec,omitempty" name:"Vcodec"` // Video bitrate. Value range: [50000,40000000]. The value can only be a multiple of 1,000. If this parameter is left empty, the original value will be used. VideoBitrate *uint64 `json:"VideoBitrate,omitempty" name:"VideoBitrate"` // Video width. Value range: (0,3000]. The value can only be a multiple of 4. If this parameter is left empty, the original value will be used. Width *uint64 `json:"Width,omitempty" name:"Width"` // Video height. Value range: (0,3000]. The value can only be a multiple of 4. If this parameter is left empty, the original value will be used. Height *uint64 `json:"Height,omitempty" name:"Height"` // Video frame rate. Value range: [1,240]. If this parameter is left empty, the original value will be used. Fps *uint64 `json:"Fps,omitempty" name:"Fps"` // Whether to enable top speed codec. Valid value: CLOSE/OPEN. Default value: CLOSE. TopSpeed *string `json:"TopSpeed,omitempty" name:"TopSpeed"` // Top speed codec compression ratio. Value range: [0,50]. The lower the compression ratio, the higher the image quality. BitrateCompressionRatio *uint64 `json:"BitrateCompressionRatio,omitempty" name:"BitrateCompressionRatio"` // Bitrate control mode. Valid values: `CBR`, `ABR` (default) RateControlMode *string `json:"RateControlMode,omitempty" name:"RateControlMode"` }