[SDL] execute an aplication in a video window?

David Olofson david.olofson at reologica.se
Wed Mar 7 07:25:01 PST 2001


On Wednesday 07 March 2001 08:25, Zubizarreta Urbizu, Joseba wrote:
> Hi!
> I´m quite principiant with SDL, so probably my problem will be quite
> simple. When I'm playing a mpeg video, I generate a event, and I cath it.
> And I would like to stop the video and start executing a new aplication (a
> game, the netscape ...) in the window where was the video.

In the very window you we're rendering the video output into...?


> How can I do it?

Win32:	OLE embedding (IIRC)
X:	"swallowed application"

Don't know about other platforms, but I know it's often non-trivial, 
non-portable and not always possible to do with just any application. (With X 
you *can* swallow any application that would accept getting a window border 
from a window manager, but the Win32 solution requires support from the 
embedded application.


> How can I execute this kind of executables in the video I have created?

Well, just *starting* another application is almost trivial, although 
non-portable. Use execv, ShellExecute or whatever there is on your platform.


Anyway; none of the above is directly supported by SDL.


//David

.- M A I A -------------------------------------------------.
|      Multimedia Application Integration Architecture      |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------> http://www.linuxaudiodev.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`--------------------------------------> david at linuxdj.com -'



More information about the SDL mailing list