How to open a SDL window to run firefox or other extern web browser?

Hi

Anyone has a idea how can I open a SDL window to run external browser?

I’m programming in Linux with C++.

Thanks

Breaking cross-platform compatibility:
#include

system(“firefox”);

Does that do it?
Jonny DOn Thu, Jun 4, 2009 at 4:33 AM, Qiang Fu wrote:

Hi

Anyone has a idea how can I open a SDL window to run external browser?

I?m programming in Linux with C++.

Thanks


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I guess it was not really the question, what he seems to want is opening firefox inside an SDL window … by the way, what a strange question, why would you want to do such a thing ?

— En date de?: Jeu 4.6.09, Jonathan Dearborn a ?crit?:de: Jonathan Dearborn
Objet: Re: [SDL] how to open a SDL window to run firefox or other extern web browser ?
?: “A list for developers using the SDL library. (includes SDL-announce)”
Date: Jeudi 4 Juin 2009, 12h58

Breaking cross-platform compatibility:
#include

system(“firefox”);

Does that do it?
Jonny D

On Thu, Jun 4, 2009 at 4:33 AM, Qiang Fu wrote:

Hi

Anyone has a idea how can I open a SDL window to run external browser?

I?m programming in Linux with C++.

Thanks


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Yeah, it?s a stupid question to ask.

I?m programming a GUI and using SDL, in the GUI I?d like to have embedded web browser in it.

So I was think maybe I do a sort of window manager that open up a new window and which opens a firefox to do the trick.

Having googled around, maybe using Gecko to embed firefox into my application is better way of doing it.

Thanks.From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On Behalf Of julien CLEMENT
Sent: 2009?6?4? 14:30
To: A list for developers using the SDL library. (includes SDL-announce)
Subject: Re: [SDL] how to open a SDL window to run firefox or other externweb browser ?

I guess it was not really the question, what he seems to want is opening firefox inside an SDL window … by the way, what a strange question, why would you want to do such a thing ?

— En date de : Jeu 4.6.09, Jonathan Dearborn a ?crit :

De: Jonathan Dearborn
Objet: Re: [SDL] how to open a SDL window to run firefox or other extern web browser ?
?: “A list for developers using the SDL library. (includes SDL-announce)”
Date: Jeudi 4 Juin 2009, 12h58

Breaking cross-platform compatibility:
#include

system(“firefox”);

Does that do it?
Jonny D

On Thu, Jun 4, 2009 at 4:33 AM, Qiang Fu wrote:

Hi

Anyone has a idea how can I open a SDL window to run external browser?

I?m programming in Linux with C++.

Thanks


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hi,

I’ve attached a C++ class I wrote. It embeds a mplayer window in order
to play video. It relies on mplayer’s ‘-wid’ option which makes
mplayer go into your window directly, but since Firefox doesn’t have
that, you might have to adapt the code to use XReparentWindow.

The whole thing is specific to X11.

Hope this is useful,
Stefan
-------------- next part --------------
A non-text attachment was scrubbed…
Name: video.cpp
Type: text/x-c++src
Size: 1585 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20090604/8e946c40/attachment.cpp
-------------- next part --------------
A non-text attachment was scrubbed…
Name: video.h
Type: text/x-chdr
Size: 371 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20090604/8e946c40/attachment.h
-------------- next part --------------
A non-text attachment was scrubbed…
Name: main.cpp
Type: text/x-c++src
Size: 403 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20090604/8e946c40/attachment-0001.cpp

Qiang Fu wrote:

Yeah, it?s a stupid question to ask.

I?m programming a GUI and using SDL, in the GUI I?d like to have
embedded web browser in it.

So I was think maybe I do a sort of window manager that open up a new
window and which opens a firefox to do the trick.

Having googled around, maybe using Gecko to embed firefox into my
application is better way of doing it.

I agree - you’ll need to use Gecko and do all of gecko’s rendering into
an SDL window.
sheshadri