Class: FastpixClient::Models::Components::InputMediaSettings

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/fastpix_client/models/components/inputmediasettings.rb

Overview

Contains configuration details for input media settings.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(metadata: nil, enable_dvr_mode: nil, max_resolution: Models::Components::CreateLiveStreamRequestMaxResolution::ONE_THOUSAND_AND_EIGHTYP, reconnect_window: 60, media_policy: Models::Components::BasicAccessPolicy::PUBLIC) ⇒ InputMediaSettings

Returns a new instance of InputMediaSettings.



32
33
34
35
36
37
38
# File 'lib/fastpix_client/models/components/inputmediasettings.rb', line 32

def initialize(metadata: nil, enable_dvr_mode: nil, max_resolution: Models::Components::CreateLiveStreamRequestMaxResolution::ONE_THOUSAND_AND_EIGHTYP, reconnect_window: 60, media_policy: Models::Components::BasicAccessPolicy::PUBLIC)
   = 
  @enable_dvr_mode = enable_dvr_mode
  @max_resolution = max_resolution
  @reconnect_window = reconnect_window
  @media_policy = media_policy
end

Instance Method Details

#==(other) ⇒ Object



41
42
43
44
45
46
47
48
49
# File 'lib/fastpix_client/models/components/inputmediasettings.rb', line 41

def ==(other)
  return false unless other.is_a? self.class
  return false unless  == other.
  return false unless @enable_dvr_mode == other.enable_dvr_mode
  return false unless @max_resolution == other.max_resolution
  return false unless @reconnect_window == other.reconnect_window
  return false unless @media_policy == other.media_policy
  true
end