Search code examples
c++cbrowserflashxlib

Create a c/c++ application (with Xlib) to render SWF files


Constraint : AS to be in C/C++

SO basically, the idea is to create my own window application (on a Linux environment) and load up (play) my swf file. Pretty "simple" question.

I was thinking to go with Xlib without widgets (so no Qt, GITK, etc.) and I'm kind of wondering if any libraries exist to open swf... I have stubbled upon SWFDEC, but not too sure about it.

I'm looking for insight. How would you guys do it?

Thank you. I'll keep you updated on the workflow I'm taking ;)

EDIT (1): Any C Library for playing with SWF?

EDIT (2): How about using a Plugin API (NNP)


Solution

  • I have found a way with NPAPI. Working my way there, but this will do the job. I have read tremendous amount of documentation over the past days (very hard, since it's a little bit old), but finally found a great example/sample to achieve what I want.

    http://code.google.com/p/npapi-sdk/source/browse/trunk/samples/unix-basic/BasicPlugin.c https://developer.mozilla.org/en/Plugins

    So, my whole thing is in C and using Xlib (not GTK) and I have the libflashplayer.so .