< :the previous in number
^ :the list in numerical order
> :the next in number
P :the previous (in thread)
N :the next (in thread)
|<:the top of this thread
>|:the next thread
^ :the parent (reply-to)
_:the child (an article replying to this)
>:the elder article having the same parent
<:the youger article having the same parent
---:split window and show thread lists
| :split window (vertically) and show thread lists
~ :close the thread frame
.:the index
..:the index of indices
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