Class: TencentCloud::Mps::V20190612::CreateAdaptiveDynamicStreamingTemplateRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::CreateAdaptiveDynamicStreamingTemplateRequest
- Defined in:
- lib/v20190612/models.rb
Overview
CreateAdaptiveDynamicStreamingTemplate请求参数结构体
Instance Attribute Summary collapse
-
#Comment ⇒ Object
- HLS,
- MPEG-DASH。
注意:各个子流的帧率必须保持一致;如果不一致,采用第一个子流的帧率作为输出帧率。- 0:否,
- 1:是。
默认为否。- 0:否,
- 1:是。
默认为否。 当值为1: 1. -
#DisableHigherVideoBitrate ⇒ Object
- HLS,
- MPEG-DASH。
注意:各个子流的帧率必须保持一致;如果不一致,采用第一个子流的帧率作为输出帧率。- 0:否,
- 1:是。
默认为否。- 0:否,
- 1:是。
默认为否。 当值为1: 1. -
#DisableHigherVideoResolution ⇒ Object
- HLS,
- MPEG-DASH。
注意:各个子流的帧率必须保持一致;如果不一致,采用第一个子流的帧率作为输出帧率。- 0:否,
- 1:是。
默认为否。- 0:否,
- 1:是。
默认为否。 当值为1: 1. -
#Format ⇒ Object
- HLS,
- MPEG-DASH。
注意:各个子流的帧率必须保持一致;如果不一致,采用第一个子流的帧率作为输出帧率。- 0:否,
- 1:是。
默认为否。- 0:否,
- 1:是。
默认为否。 当值为1: 1. -
#Name ⇒ Object
- HLS,
- MPEG-DASH。
注意:各个子流的帧率必须保持一致;如果不一致,采用第一个子流的帧率作为输出帧率。- 0:否,
- 1:是。
默认为否。- 0:否,
- 1:是。
默认为否。 当值为1: 1. -
#PureAudio ⇒ Object
- HLS,
- MPEG-DASH。
注意:各个子流的帧率必须保持一致;如果不一致,采用第一个子流的帧率作为输出帧率。- 0:否,
- 1:是。
默认为否。- 0:否,
- 1:是。
默认为否。 当值为1: 1. -
#SegmentType ⇒ Object
- HLS,
- MPEG-DASH。
注意:各个子流的帧率必须保持一致;如果不一致,采用第一个子流的帧率作为输出帧率。- 0:否,
- 1:是。
默认为否。- 0:否,
- 1:是。
默认为否。 当值为1: 1. -
#StreamInfos ⇒ Object
- HLS,
- MPEG-DASH。
注意:各个子流的帧率必须保持一致;如果不一致,采用第一个子流的帧率作为输出帧率。- 0:否,
- 1:是。
默认为否。- 0:否,
- 1:是。
默认为否。 当值为1: 1.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(format = nil, streaminfos = nil, name = nil, disablehighervideobitrate = nil, disablehighervideoresolution = nil, comment = nil, pureaudio = nil, segmenttype = nil) ⇒ CreateAdaptiveDynamicStreamingTemplateRequest
constructor
A new instance of CreateAdaptiveDynamicStreamingTemplateRequest.
Constructor Details
#initialize(format = nil, streaminfos = nil, name = nil, disablehighervideobitrate = nil, disablehighervideoresolution = nil, comment = nil, pureaudio = nil, segmenttype = nil) ⇒ CreateAdaptiveDynamicStreamingTemplateRequest
Returns a new instance of CreateAdaptiveDynamicStreamingTemplateRequest.
7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 |
# File 'lib/v20190612/models.rb', line 7703 def initialize(format=nil, streaminfos=nil, name=nil, disablehighervideobitrate=nil, disablehighervideoresolution=nil, comment=nil, pureaudio=nil, segmenttype=nil) @Format = format @StreamInfos = streaminfos @Name = name @DisableHigherVideoBitrate = disablehighervideobitrate @DisableHigherVideoResolution = disablehighervideoresolution @Comment = comment @PureAudio = pureaudio @SegmentType = segmenttype end |
Instance Attribute Details
#Comment ⇒ Object
7701 7702 7703 |
# File 'lib/v20190612/models.rb', line 7701 def Comment @Comment end |
#DisableHigherVideoBitrate ⇒ Object
7701 7702 7703 |
# File 'lib/v20190612/models.rb', line 7701 def DisableHigherVideoBitrate @DisableHigherVideoBitrate end |
#DisableHigherVideoResolution ⇒ Object
7701 7702 7703 |
# File 'lib/v20190612/models.rb', line 7701 def DisableHigherVideoResolution @DisableHigherVideoResolution end |
#Format ⇒ Object
7701 7702 7703 |
# File 'lib/v20190612/models.rb', line 7701 def Format @Format end |
#Name ⇒ Object
7701 7702 7703 |
# File 'lib/v20190612/models.rb', line 7701 def Name @Name end |
#PureAudio ⇒ Object
7701 7702 7703 |
# File 'lib/v20190612/models.rb', line 7701 def PureAudio @PureAudio end |
#SegmentType ⇒ Object
7701 7702 7703 |
# File 'lib/v20190612/models.rb', line 7701 def SegmentType @SegmentType end |
#StreamInfos ⇒ Object
7701 7702 7703 |
# File 'lib/v20190612/models.rb', line 7701 def StreamInfos @StreamInfos end |
Instance Method Details
#deserialize(params) ⇒ Object
7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 |
# File 'lib/v20190612/models.rb', line 7714 def deserialize(params) @Format = params['Format'] unless params['StreamInfos'].nil? @StreamInfos = [] params['StreamInfos'].each do |i| adaptivestreamtemplate_tmp = AdaptiveStreamTemplate.new adaptivestreamtemplate_tmp.deserialize(i) @StreamInfos << adaptivestreamtemplate_tmp end end @Name = params['Name'] @DisableHigherVideoBitrate = params['DisableHigherVideoBitrate'] @DisableHigherVideoResolution = params['DisableHigherVideoResolution'] @Comment = params['Comment'] @PureAudio = params['PureAudio'] @SegmentType = params['SegmentType'] end |