From: leon breedt Date: 2005-01-16T18:11:22+09:00 Subject: [ANN] Flash/Ruby 0.1.0 Hello, I'm happy to announce the first public release of Flash/Ruby. Flash/Ruby is a Ruby extension wrapping a library I wrote called "libflash" [1]. The "libflash" library provides a way to embed Macromedia (R) Flash playback in a GTK+ application. It does this by using the Mozilla plugin and providing a Mozilla emulation layer, much like Konqueror does, but now you can use it in any application. The extension's API is quite small, here is roughly all you need to do: swfplugin = Flash::Library.new('/path/to/libflashplayer.so') swffile = Flash::File.new(swfplugin, '/path/to/swffile.swf') window = Gtk::Window.new(Gtk::Window::TOPLEVEL) window.show swffile.play(window) swffile.pause swffile.resume ... Gtk::main As the Flash plugin uses an Xt timer callback to render its frames, and libflash integrates this with the GLib mainloop, anything that blocks the GLib mainloop is going to block Flash playback as well. It should interoperate decently with standard Gtk using apps though. Dependencies: libflash 0.99.2 or newer ruby-gnome2 0.11.0 or newer The ruby-gnome2 dependency comes about because of a really ugly hack that I want to alleviate in the future. (The hack lets you pass a Gtk::Window to swffile.play). I haven't gotten round to setting up a RubyForge project yet, so... Download: http://blog.xeraph.org/software/flash-ruby/flash-ruby-0.1.0.tar.gz Leon [1] http://blog.xeraph.org/blog/libflash-0.99.2.html