Class: Google::Apis::TranscoderV1beta1::SegmentSettings
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1beta1::SegmentSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/transcoder_v1beta1/classes.rb,
generated/google/apis/transcoder_v1beta1/representations.rb,
generated/google/apis/transcoder_v1beta1/representations.rb
Overview
Segment settings for "ts"
, "fmp4"
and "vtt"
.
Instance Attribute Summary collapse
-
#individual_segments ⇒ Boolean
(also: #individual_segments?)
Required.
-
#segment_duration ⇒ String
Duration of the segments in seconds.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SegmentSettings
constructor
A new instance of SegmentSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SegmentSettings
Returns a new instance of SegmentSettings.
1330 1331 1332 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1330 def initialize(**args) update!(**args) end |
Instance Attribute Details
#individual_segments ⇒ Boolean Also known as: individual_segments?
Required. Create an individual segment file. The default is false
.
Corresponds to the JSON property individualSegments
1322 1323 1324 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1322 def individual_segments @individual_segments end |
#segment_duration ⇒ String
Duration of the segments in seconds. The default is "6.0s"
.
Corresponds to the JSON property segmentDuration
1328 1329 1330 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1328 def segment_duration @segment_duration end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1335 1336 1337 1338 |
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1335 def update!(**args) @individual_segments = args[:individual_segments] if args.key?(:individual_segments) @segment_duration = args[:segment_duration] if args.key?(:segment_duration) end |