Sha256: 015f537a6e698878924015bbd93f540505143a26fc4532d3690f3d0de61a7074

Contents?: true

Size: 401 Bytes

Versions: 4

Compression:

Stored size: 401 Bytes

Contents

#!/bin/env ruby

require 'pathname'
$LOAD_PATH << File.join(File.dirname(Pathname.new(__FILE__).realpath),'../lib')
require 'easy_mplayer'

# play a file from the command line
raise "usage: #{$0} <file>" if ARGV.length != 1

# the absolute minimal script. Just hand over everything
# to mplayer, blocking until it's over
mplayer = MPlayer.new( :path => ARGV[0] )
mplayer.play_to_end

puts "all done!"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
easy_mplayer-1.2.1 examples/minimal.rb
easy_mplayer-1.2.0 examples/minimal.rb
easy_mplayer-1.1.0 examples/minimal.rb
easy_mplayer-1.0.0 examples/minimal.rb