From: ashbb Date: 2012-01-07T21:16:04+09:00 Subject: Re: [ANN] Ruby-GNOME2 1.1.0 --0016e6de03cef14c0a04b5ef2051 Content-Type: text/plain; charset=ISO-8859-1 Hi all, At first, thank you for the release of Ruby-GNOME2 1.1.0. > Ruby/GStreamer gem for Windows is supported. Great! So, I've tried to play a .ogg file, .mp3 file and .mp4 file with the following snippet on my Windows 7 laptop. require 'gtk2' require 'gst' require 'win32api' play_bin = Gst::ElementFactory.make('playbin2') play_bin.uri = 'file://c/tmp/song.mp3' play_bin.video_sink = Gst::ElementFactory.make('directdrawsink') play_bin.bus.add_watch do |b, message| case message.type when Gst::Message::WARNING, Gst::Message::ERROR p message.parse else #p message.type end true end window = Gtk::Window.new window.signal_connect('expose-event')do play_bin.video_sink.xwindow_id = Win32API.new('user32', 'GetForegroundWindow', [], 'N').call end window.show_all play_bin.play Gtk.main I could play .ogg file and .mp4 file very well. But unfortunately, couldn't play .mp3 file. I asked Kou about that in ruby-list ML. The answer is that Ruby/GStreamer gem doesn't include MAD. Because MAD is GPL. Just for information, ashbb --0016e6de03cef14c0a04b5ef2051--