Class: Bitmovin::Encoding::Manifests::HlsVariantStream

Inherits:
Resource
  • Object
show all
Defined in:
lib/bitmovin/encoding/manifests/hls_variant_stream.rb

Instance Attribute Summary collapse

Attributes inherited from Resource

#created_at, #description, #modified_at, #name

Instance Method Summary collapse

Methods inherited from Resource

#delete!, find, init, #init_instance, #inspect, list, #persisted?, #save!

Methods included from Helpers

#camelize_hash, #hash_to_struct, result, #result, #underscore_hash

Constructor Details

#initialize(manifest_id, hash = {}) ⇒ HlsVariantStream

Returns a new instance of HlsVariantStream.



13
14
15
16
17
18
# File 'lib/bitmovin/encoding/manifests/hls_variant_stream.rb', line 13

def initialize(manifest_id, hash = {})
  hsh = ActiveSupport::HashWithIndifferentAccess.new(underscore_hash(hash))
  @manifest_id = manifest_id
  init_instance(File.join("/v1/encoding/manifests/hls/", manifest_id, "streams"))
  super(hsh)
end

Instance Attribute Details

#audioObject

Returns the value of attribute audio.



9
10
11
# File 'lib/bitmovin/encoding/manifests/hls_variant_stream.rb', line 9

def audio
  @audio
end

#closed_captionsObject

Required



6
7
8
# File 'lib/bitmovin/encoding/manifests/hls_variant_stream.rb', line 6

def closed_captions
  @closed_captions
end

#drm_idObject

Returns the value of attribute drm_id.



10
11
12
# File 'lib/bitmovin/encoding/manifests/hls_variant_stream.rb', line 10

def drm_id
  @drm_id
end

#encoding_idObject

Returns the value of attribute encoding_id.



7
8
9
# File 'lib/bitmovin/encoding/manifests/hls_variant_stream.rb', line 7

def encoding_id
  @encoding_id
end

#end_segment_numberObject

Returns the value of attribute end_segment_number.



10
11
12
# File 'lib/bitmovin/encoding/manifests/hls_variant_stream.rb', line 10

def end_segment_number
  @end_segment_number
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/bitmovin/encoding/manifests/hls_variant_stream.rb', line 3

def id
  @id
end

#manifest_idObject

Returns the value of attribute manifest_id.



3
4
5
# File 'lib/bitmovin/encoding/manifests/hls_variant_stream.rb', line 3

def manifest_id
  @manifest_id
end

#muxing_idObject

Returns the value of attribute muxing_id.



7
8
9
# File 'lib/bitmovin/encoding/manifests/hls_variant_stream.rb', line 7

def muxing_id
  @muxing_id
end

#segment_pathObject

Required



6
7
8
# File 'lib/bitmovin/encoding/manifests/hls_variant_stream.rb', line 6

def segment_path
  @segment_path
end

#start_segment_numberObject

Returns the value of attribute start_segment_number.



10
11
12
# File 'lib/bitmovin/encoding/manifests/hls_variant_stream.rb', line 10

def start_segment_number
  @start_segment_number
end

#stream_idObject

Returns the value of attribute stream_id.



7
8
9
# File 'lib/bitmovin/encoding/manifests/hls_variant_stream.rb', line 7

def stream_id
  @stream_id
end

#subtitlesObject

Returns the value of attribute subtitles.



9
10
11
# File 'lib/bitmovin/encoding/manifests/hls_variant_stream.rb', line 9

def subtitles
  @subtitles
end

#uriObject

Required



6
7
8
# File 'lib/bitmovin/encoding/manifests/hls_variant_stream.rb', line 6

def uri
  @uri
end

#videoObject

Returns the value of attribute video.



9
10
11
# File 'lib/bitmovin/encoding/manifests/hls_variant_stream.rb', line 9

def video
  @video
end