Class: Google::Apis::TranscoderV1beta1::SegmentSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/transcoder_v1beta1/classes.rb,
lib/google/apis/transcoder_v1beta1/representations.rb,
lib/google/apis/transcoder_v1beta1/representations.rb

Overview

Segment settings for "ts", "fmp4" and "vtt".

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SegmentSettings

Returns a new instance of SegmentSettings.



1379
1380
1381
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1379

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#individual_segmentsBoolean Also known as: individual_segments?

Required. Create an individual segment file. The default is false. Corresponds to the JSON property individualSegments

Returns:

  • (Boolean)


1369
1370
1371
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1369

def individual_segments
  @individual_segments
end

#segment_durationString

Duration of the segments in seconds. The default is "6.0s". Note that segmentDuration must be greater than or equal to gopDuration , and segmentDuration must be divisible by gopDuration. Corresponds to the JSON property segmentDuration

Returns:

  • (String)


1377
1378
1379
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1377

def segment_duration
  @segment_duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1384
1385
1386
1387
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1384

def update!(**args)
  @individual_segments = args[:individual_segments] if args.key?(:individual_segments)
  @segment_duration = args[:segment_duration] if args.key?(:segment_duration)
end