Execute an aplication in a video window?

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. How can I do it? How
can I execute this kind of executables in the video I have created?
Thanks.

SDL doesnt support many mechanisms to create borderless child windows, nor
does it support any platform-indepedent way of loading programs.

Matt

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. How can I do it? How
can I execute this kind of executables in the video I have created?
Thanks.

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 -'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…?

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

Actually, I was just thinking about this, and you could “fake” this sort of
behavior using SDL under the right circumstances…

  1. Play your MPEG video full-screen.
  2. When it stops, start the new application full-screen.

Now I realize there are a scant few circumstances where you could do this, and
many problems (for one, the OS/Desktop must be able to and is setup to support
full-screen applications, for another the calling app must also support a
full-screen mode). But under certain situations, this would work (albeit with
the probable chance of a flicker of the desktop inbetween apps).

It would certainly work if you had total control over the OS, its setups, and
all the apps on it (as in an embedded device). But it wouldn’t necessarily work
for apps intended to be used more generally.

(Tho, you still don’t have a platform independant way to start a new external
app ;-)On Wed, 07 Mar 2001, you wrote:

On Wednesday 07 March 2001 08:25, Zubizarreta Urbizu, Joseba wrote:


Sam “Criswell” Hart <@Sam_Hart> AIM, Yahoo!:
Homepage: < http://www.geekcomix.com/snh/ >
PGP Info: < http://www.geekcomix.com/snh/contact/ >
Advogato: < http://advogato.org/person/criswell/ >