Class: RTranscoder::MPlayer
- Inherits:
-
RProgram::Program
- Object
- RProgram::Program
- RTranscoder::MPlayer
- Defined in:
- lib/rtranscoder/mplayer/mplayer.rb
Class Method Summary collapse
-
.play(options = {}, &block) ⇒ Object
See MPlayer#play.
Instance Method Summary collapse
-
#initialize(path) ⇒ MPlayer
constructor
Creates a new MPlayer object with the specified path of the
mplayer
program. -
#play(options = {}, &block) ⇒ Object
Runs the
mplayer
program with the given options and the given block using MPlayerTask.
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(={},&block) self.find.play(,&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(={},&block) run_task(MPlayerTask.new(,&block)) end |