New web multimedia language written in FreeBASIC.

For other topics related to the FreeBASIC project or its community.
D.J.Peters
Posts: 7419
Joined: May 28, 2005 3:28

New web multimedia language written in FreeBASIC.

Postby D.J.Peters » Jan 05, 2010 6:14

FreeBASIC in Firefox, Opera, IE of course for Windows and Linux.
I wrote an browser plugin with the mozilla gecko sdk (firefox, SeaMonkey, Opera) and an ActiveX control to load the "same plug-in" in the IE.

i changed only 10 lines of code and the plug-in as *.so works perfect with linux.

Joshy
Image
Image
Last edited by D.J.Peters on Jan 06, 2010 18:58, edited 2 times in total.
duke4e
Posts: 717
Joined: Dec 04, 2005 0:16
Location: Varazdin, Croatia, Europe
Contact:

Postby duke4e » Jan 05, 2010 8:07

That's pretty cool. Do you plan to release this to public?
Lachie Dazdarian
Posts: 2230
Joined: May 31, 2005 9:59
Location: Croatia
Contact:

Postby Lachie Dazdarian » Jan 05, 2010 8:39

I'm wet. Give me that.
D.J.Peters
Posts: 7419
Joined: May 28, 2005 3:28

Postby D.J.Peters » Jan 05, 2010 12:20

duke4e wrote:That's pretty cool. Do you plan to release this to public?
may be possible but wait what is if Addobe makes me rich. :lol:

if i use C/C++ it would run on mac os too.

Joshy
fsw
Posts: 260
Joined: May 27, 2005 6:02

Postby fsw » Jan 05, 2010 17:13

How is the speed?
Prime Productions
Posts: 147
Joined: May 24, 2009 23:13
Location: Texas, United States, Planet Earth
Contact:

Postby Prime Productions » Jan 05, 2010 17:50

Wow! *speechless* I don't know what to say. What did you code this thing in?
D.J.Peters
Posts: 7419
Joined: May 28, 2005 3:28

Postby D.J.Peters » Jan 05, 2010 17:54

fsw wrote:How is the speed?
same as an "normal" FB binary.

fbc -dll mybrowserapp.bas

Joshy
Prime Productions
Posts: 147
Joined: May 24, 2009 23:13
Location: Texas, United States, Planet Earth
Contact:

Postby Prime Productions » Jan 05, 2010 18:09

D.J.Peters wrote:fbc -dll mybrowserapp.bas


So it is done in FreeBASIC? Neat. Do you have anything on a server we could look at?

Kudos here!
David
D.J.Peters
Posts: 7419
Joined: May 28, 2005 3:28

Postby D.J.Peters » Jan 06, 2010 18:55

Prime Productions wrote:Do you have anything on a server we could look at?
not at this moment.

but in near future you can download from http://shiny3d.de

Shiny3D (Linux, Windows)
free OpenGL 3D and Physics browser plugin for firefox, opera, seamonkey, IE, later for chrome too)

ShinyEdit (3D Editor)
Shiny scenes (*.sscn), Shiny objects (*.sobj) with physics properties and Shiny materails (*.smat)
(colors, textures, shaders, 3D sound)

ShinyDev (IDE and Compiler)
create your Shiny 3D contents
(browser network games, physic simulations or what ever ...)

Joshy
Lachie Dazdarian
Posts: 2230
Joined: May 31, 2005 9:59
Location: Croatia
Contact:

Postby Lachie Dazdarian » Jan 06, 2010 19:30

Will it support fbgfx or just FreeBASIC OpenGL applications?
Dr_D
Posts: 2353
Joined: May 27, 2005 4:59
Contact:

Postby Dr_D » Jan 07, 2010 2:58

This looks pretty cool man. ;)
HD_
Posts: 215
Joined: Jun 10, 2006 12:15
Contact:

Postby HD_ » Jan 09, 2010 16:15

Very cool! Can't wait to play with it :O I guess this doesn't only work with things compiled by freebasic ?
KristopherWindsor
Posts: 2428
Joined: Jul 19, 2006 19:17
Location: Sunnyvale, CA
Contact:

Postby KristopherWindsor » Jan 09, 2010 20:51

Awesome! I guess we're competing with Silverlight now? :D

Is there any way to embed a program in a web page (like Flash is), and have the FB program interact with the page's JavaScript? I know that last part might be all but impossible, but I still wanted to ask. ;)

One more question: is there a way to run an FB app in sandbox mode, so that FB programs run through the browser can't delete all my files? :)
D.J.Peters
Posts: 7419
Joined: May 28, 2005 3:28

Postby D.J.Peters » Jan 10, 2010 1:32

Everyone can translate the Gecko SDK C header files to FreeBASIC *.bi files.

Now you create a *.dll or *.so lib with FreeBASIC and export only 3 functions on Windows and 4 on Linux that the browser will call.

But there is no sandbox this means you can do everything and yes very bad things too.

You can get the window handle with all keyboard and mouse messages.

This is the point why i don't share my FreeBASIC Browser source code.

From now i don't trust any unknow Browser Plugin
(Browser extensions and themes are safe so far i know)

Shiny3D (i'm working on) is a package of three parts
3D Editor with physical properties, materials, shaders and 3D sound.
IDE with a Compiler for a virtual CPU
Browser plugin for Windows, Linux and Mac (*)

(*) only the mac plugin is written in C

By the way with the Gecko SDK your FreeBASIC program can use the whole JavaScript engine and the JAVA interface too.
It can interact with any JavaScript code inside the HTML page and with an running JAVA applet too.

Joshy
KristopherWindsor
Posts: 2428
Joined: Jul 19, 2006 19:17
Location: Sunnyvale, CA
Contact:

Postby KristopherWindsor » Jan 10, 2010 2:46

D.J.Peters wrote:By the way with the Gecko SDK your FreeBASIC program can use the whole JavaScript engine and the JAVA interface too.
It can interact with any JavaScript code inside the HTML page and with an running JAVA applet too.

Joshy


A tutorial for that would be very appreciated. :)

I'm not sure if this has any advantage over, for example, Silverlight, but it'd be fun to see my old games running online. :)

Return to “Community Discussion”

Who is online

Users browsing this forum: BasicCoder2 and 0 guests