Class: RTranscoder::MPlayer

Inherits:
RProgram::Program
  • Object
show all
Defined in:
lib/rtranscoder/mplayer/mplayer.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ MPlayer

Creates a new MPlayer object with the specified path of the mplayer program.



15
16
17
# File 'lib/rtranscoder/mplayer/mplayer.rb', line 15

def initialize(path)
  super(path)
end

Class Method Details

.play(options = {}, &block) ⇒ Object

See MPlayer#play.



22
23
24
# File 'lib/rtranscoder/mplayer/mplayer.rb', line 22

def self.play(options={},&block)
  self.find.play(options,&block)
end

Instance Method Details

#play(options = {}, &block) ⇒ Object

Runs the mplayer program with the given options and the given block using MPlayerTask.



30
31
32
# File 'lib/rtranscoder/mplayer/mplayer.rb', line 30

def play(options={},&block)
  run_task(MPlayerTask.new(options,&block))
end