Not logged inGosu Forums
Forum back to Help Search Register Login
Up Topic Gosu / Gosu Exchange / How to add video support to Gosu
- - By misbehavens Date 2013-08-20 04:09
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
Parent - - By Dahrkael Date 2013-08-20 18:56
ruby or C++?
Parent - By misbehavens Date 2013-08-20 21:19
The app would be written in Ruby, but I don't expect the part that does all the work to be written in Ruby.
Parent - - By jlnr (dev) Date 2013-08-21 13:19
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 :)
Parent - - By Dahrkael Date 2013-08-21 21:54
I'd suggest the Theora Playback Library ( ) 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.
Parent - By misbehavens Date 2013-08-22 20:38
Wow, that looks pretty cool. I'm going to have to try it out. Thanks!
Up Topic Gosu / Gosu Exchange / How to add video support to Gosu

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill