class Zype::Encoders

Read more at docs.zype.com/v1.0/reference#encoders

@since 0.1.0

Public Instance Methods

find(encoder_name:) click to toggle source

Returns encoder matching the encoder_name

@param encoder_name [String] the name of the encoder @return [Hash] properties of the encoder

# File lib/zype/models/encoders.rb, line 10
def find(encoder_name:)
  client.execute(method: :get, path: "/live/encoders/#{encoder_name}")
end
path() click to toggle source
# File lib/zype/models/encoders.rb, line 30
def path
  @path = "live/encoders"
end
start(encoder_name:) click to toggle source

Starts encoder matching the encoder_name

@param encoder_name [String] the name of the encoder @return [Hash] properties of the encoder

# File lib/zype/models/encoders.rb, line 18
def start(encoder_name:)
  client.execute(method: :post, path: "/live/encoders/#{encoder_name}/start")
end
stop(encoder_name:) click to toggle source

Stops encoder matching the encoder_name

@param encoder_name [String] the name of the encoder @return [Hash] properties of the encoder

# File lib/zype/models/encoders.rb, line 26
def stop(encoder_name:)
  client.execute(method: :post, path: "/live/encoders/#{encoder_name}/stop")
end