Permalink
Browse files

Modified video method and sample58 to deal with gstreamer-1.1.0-x86-m…

  • Loading branch information...
1 parent d23c883 commit 2e61a37a05c7ad75ebf044337a77c4ae2e9bf8c1 @ashbb committed Jan 7, 2012
Showing with 7 additions and 6 deletions.
  1. +1 −1 VERSION
  2. +2 −2 green_shoes.gemspec
  3. +1 −0 lib/plugins/video.rb
  4. +3 −3 samples/sample58.rb
View
@@ -1 +1 @@
-1.1.353
+1.1.354
View
@@ -5,11 +5,11 @@
Gem::Specification.new do |s|
s.name = "green_shoes"
- s.version = "1.1.353"
+ s.version = "1.1.354"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["ashbb"]
- s.date = "2012-01-04"
+ s.date = "2012-01-07"
s.description = "Green Shoes is one of colorful Shoes, written in pure Ruby with Ruby/GTK2."
s.email = "ashbbb@gmail.com"
s.executables = ["gshoes"]
View
@@ -105,6 +105,7 @@ def video uri
require 'win32api'
v = Gst::ElementFactory.make 'playbin2'
v.video_sink = Gst::ElementFactory.make('dshowvideosink')
+ v.video_sink = Gst::ElementFactory.make('directdrawsink') unless v.video_sink
v.uri = uri
args[:real], args[:app] = v, self
Video.new args
View
@@ -1,10 +1,10 @@
require 'green_shoes'
-Shoes.app width: 300, height: 100, title: 'Teeny-weeny MP3 player' do
+Shoes.app width: 300, height: 100, title: 'Teeny-weeny Audio player' do
space = ' '
background gold..cyan, angle: 30
- song = para 'song.mp3', stroke: firebrick, left: 0, top: 70
- file = 'https://github.com/ashbb/teeny-weeny_mp3_player/raw/master/samples/song.mp3'
+ song = para 'song.ogg', stroke: firebrick, left: 0, top: 70
+ file = 'http://www.rin-shun.com/shoes/song.ogg'
v = video file
para link('select'){

0 comments on commit 2e61a37

Please sign in to comment.