Class: Conversant::V3::Services::LMS::Preset
- Inherits:
-
Object
- Object
- Conversant::V3::Services::LMS::Preset
- Defined in:
- lib/conversant/v3/services/lms/preset.rb
Overview
Preset service for live transcoding preset management
Manages transcoding presets which define encoding parameters such as bitrate, resolution, codec settings for live streams.
Instance Attribute Summary collapse
-
#parent ⇒ LMS
readonly
The parent LMS service instance.
Instance Method Summary collapse
-
#all ⇒ Array<Hash>
Get all available transcoding presets.
-
#initialize(parent) ⇒ Preset
constructor
Initialize preset service.
Constructor Details
#initialize(parent) ⇒ Preset
Initialize preset service
28 29 30 |
# File 'lib/conversant/v3/services/lms/preset.rb', line 28 def initialize(parent) @parent = parent end |
Instance Attribute Details
#parent ⇒ LMS (readonly)
Returns the parent LMS service instance.
23 24 25 |
# File 'lib/conversant/v3/services/lms/preset.rb', line 23 def parent @parent end |
Instance Method Details
#all ⇒ Array<Hash>
Get all available transcoding presets
Retrieves the list of transcoding presets configured for the customer, including encoding parameters like resolution, bitrate, codec settings.
46 47 48 49 50 51 52 |
# File 'lib/conversant/v3/services/lms/preset.rb', line 46 def all response = JSON.parse(@parent.send(:call, 'GET', '/live/preset/list_page')) response&.[]('list') || [] rescue StandardError => e @parent.send(:logger).error "#{@parent.send(:identifier)}.METHOD:#{__method__}.EXCEPTION:#{e.}" [] end |