Class: ActiveVlc::DSL::Transcode

Inherits:
Base
  • Object
show all
Defined in:
lib/activevlc/dsl/transcode.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #method_missing, #param

Constructor Details

This class inherits a constructor from ActiveVlc::DSL::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActiveVlc::DSL::Base

Instance Method Details

#audio(codec, &block) ⇒ Object



14
15
16
17
# File 'lib/activevlc/dsl/transcode.rb', line 14

def audio(codec, &block)
  __option :acodec, codec
  TranscodeAudio.new(@context).instance_eval &block if block_given?
end

#subtitle(codec, &block) ⇒ Object



22
23
24
25
# File 'lib/activevlc/dsl/transcode.rb', line 22

def subtitle(codec, &block)
  __option :scodec, codec
  TranscodeSubtitle.new(@context).instance_eval &block if block_given?
end

#video(codec, &block) ⇒ Object



18
19
20
21
# File 'lib/activevlc/dsl/transcode.rb', line 18

def video(codec, &block)
  __option :vcodec, codec
  TranscodeVideo.new(@context).instance_eval &block if block_given?
end