Class: Google::Apis::TranscoderV1beta1::MuxStream

Inherits:
Object
  • Object
show all
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

Multiplexing settings for output stream.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MuxStream

Returns a new instance of MuxStream.



1082
1083
1084
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1082

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

Instance Attribute Details

#containerString

The container format. The default is "mp4" Supported container formats: - ' ts' - 'fmp4'- the corresponding file extension is ".m4s" - 'mp4' - 'vtt' Corresponds to the JSON property container

Returns:

  • (String)


1051
1052
1053
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1051

def container
  @container
end

#elementary_streamsArray<String>

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

Returns:

  • (Array<String>)


1056
1057
1058
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1056

def elementary_streams
  @elementary_streams
end

#encryptionGoogle::Apis::TranscoderV1beta1::Encryption

Encryption settings. Corresponds to the JSON property encryption



1061
1062
1063
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1061

def encryption
  @encryption
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)


1069
1070
1071
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1069

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)


1075
1076
1077
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1075

def key
  @key
end

#segment_settingsGoogle::Apis::TranscoderV1beta1::SegmentSettings

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



1080
1081
1082
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1080

def segment_settings
  @segment_settings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1087
1088
1089
1090
1091
1092
1093
1094
# File 'generated/google/apis/transcoder_v1beta1/classes.rb', line 1087

def update!(**args)
  @container = args[:container] if args.key?(:container)
  @elementary_streams = args[:elementary_streams] if args.key?(:elementary_streams)
  @encryption = args[:encryption] if args.key?(:encryption)
  @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