I'm really interested in finding a way to add video support to Gosu. This can either be some sort of hackish way by running some program in the background which can launch a full screen video and dismiss itself with some sort of callback, or something better where the video can be sized and embedded and controlled. Any idea of how this kind of support can be achieved? Also, I would need it to be a cross-platform solution. --Andrew
The app would be written in Ruby, but I don't expect the part that does all the work to be written in Ruby.
oli.obk has written a small extension on Linux that streamed a video to a
Gosu::Image (sort of) but I never found the time to make it work on other platforms. If you can find any portable solution that works with OpenGL, it will be easy to make it work with Gosu (even in Ruby).
The last time I've needed to do this (in a private project) I did what you suggested - I've used a full-screen overlay with a third-party video player.
I think this hack is the best solution until I can find a project/client to fund development of a portable
Gosu::Video class :)
I'd suggest the Theora Playback Library ( http://libtheoraplayer.cateia.com/wiki/index.php/Main_Page
) which works on all platforms without changes. I played around with it and Gosu some time ago (C++) and it worked pretty fine (via software and via OpenGL).
Also theora is open source, so no license problems.
Wow, that looks pretty cool. I'm going to have to try it out. Thanks!
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill