Class: Google::Apis::TranscoderV1::MuxStream

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

Overview

Multiplexing settings for output stream.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MuxStream

Returns a new instance of MuxStream.



1399
1400
1401
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1399

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

Instance Attribute Details

#containerString

The container format. The default is mp4 Supported container formats: - ts

Returns:

  • (String)


1373
1374
1375
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1373

def container
  @container
end

#elementary_streamsArray<String>

List of ElementaryStream.keys multiplexed in this stream. Corresponds to the JSON property elementaryStreams

Returns:

  • (Array<String>)


1378
1379
1380
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1378

def elementary_streams
  @elementary_streams
end

#file_nameString

The name of the generated file. The default is MuxStream.key with the extension suffix corresponding to the MuxStream.container. Individual segments also have an incremental 10-digit zero-padded suffix starting from 0 before the extension, such as mux_stream0000000123.ts. Corresponds to the JSON property fileName

Returns:

  • (String)


1386
1387
1388
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1386

def file_name
  @file_name
end

#keyString

A unique key for this multiplexed stream. HLS media manifests will be named MuxStream.key with the .m3u8 extension suffix. Corresponds to the JSON property key

Returns:

  • (String)


1392
1393
1394
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1392

def key
  @key
end

#segment_settingsGoogle::Apis::TranscoderV1::SegmentSettings

Segment settings for ts, fmp4 and vtt. Corresponds to the JSON property segmentSettings



1397
1398
1399
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1397

def segment_settings
  @segment_settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1404
1405
1406
1407
1408
1409
1410
# File 'lib/google/apis/transcoder_v1/classes.rb', line 1404

def update!(**args)
  @container = args[:container] if args.key?(:container)
  @elementary_streams = args[:elementary_streams] if args.key?(:elementary_streams)
  @file_name = args[:file_name] if args.key?(:file_name)
  @key = args[:key] if args.key?(:key)
  @segment_settings = args[:segment_settings] if args.key?(:segment_settings)
end