truf | 30 September, 2008 16:21
Hi
I'm not a Flash Lite expert. And never write even one line of Flash code. But i really think Flash is a excellent solution for GUI designing if it can be used as a part of other technology. I'm always looking on SE Project Capuchin with hope what one time such functionality will be aviable for Symbian C++ developers.
Some time ago i read a good news about MobiFLV project:
MobiFLV is Open Source FLV Player for Symbian ported from libavcodec, video decoder part of ffmpeg. MobiFLV is written in C and Symbian C++ language.
MobiFLV is licensed under the GNU Lesser General Public License (LGPL).
Sittiphol Phanvilai's Forum Nokia Blog "MobiFLV : Open Source FLV Player for Symbian!"
But thats Flash Video, what about swf?
I found some old SWF players for S60 2nd ed. So i think SWF player implementation is possible on S60.
Moreother, there is Game SWF project:
gameswf (pronounced "game swiff") is an open source Public Domain library for parsing and rendering SWF movies, using 3D hardware APIs for rendering. It is designed to be used as a UI library for computer and console games.
It is written in C++, and compiles under Windows, Mac OSX and Linux, using GCC and MSVC. It includes code for rendering with OpenGL. The rendering module is factored out so that you can port to other APIs.
Sure its functionality enouth to use Flash instead of GUI as Project Capuchin allow to do.
And there lots of other opensource Flash utilities
I'm sure SWF Player algorithm is not top secret, bcs even Delphi have component to play SWF in applications. And perhaps if i spend more time on google, i will find a better framework which can be easy ported to OpenC or even Symbian C++.
With help of Adobe Open Project we will not have any problem with licensing.
I'm I wrong? As I say, i'm not a Flash Lite coder and want clarify that.
Can Flash support be implemented in native Symbian C++? If yes, then what are we waiting for? Sure, Capuchin-like solution for Symbian C++ is much more valuable then many others OpenSource projects and thats be a best Christmas present for me and hundreds other SC++ developers. I'm ready to take part in such project. So, if thats possible to do, why community still not make it?
truf | 01/10/2008, 13:12
Yes, i'm aware about KuneriLite and Janus Symbian Engine. But such kind of solutions intended to enhance FL applications, not SC++ application. They try to increase FL functionality with some C++ plugins and take out FL from sandbox. That's cool but useless for me as Symbian C++ developer.
I'm talking about using FL instead of native UI in Symbian C++ applications. That significally increase speed of application development on Symbian C++ - Achilles heel of that language. FL allow create much more user friendly UI.
About algorithms - gameswf was first result from my google search, so i think more suitable projects may be found in the net. Also, i'm sure Forum Nokia will support such initiative and perhaps Adobe will support its too. They already make us happy once in this year with Open Project. I think such initiative will be correspont to course of current Adobe marketing policy.
What we really need from Active Script: we just need a way to display a button, get its events and perhaps animate it... We dont need full Active Script support in symbian if we want to use its instead of UI. Let it be incompatible with Adobe Player... at least for beginning.
Sorcery-ltd | 01/10/2008, 16:20
OK, so did you see that Janus Symbian Engine is open source? It isn't a perfect solution but you can write your UI in Flash Lite and have it send all commands to a Symbian application running the Janus HTTP server and command parser. You can extend the Symbian part to do whatever you want and send results back to the Flash player to update the UI.
If you could embed something like gameswf into your application, how would you interface the UI to your C++ code - you'd have to create some kind of bridge between the environments. It would be possible to create something better than simple socket or HTTP based comms but it would be a lot of work.
BTW, if you want to make a maintainable animated UI then you really do want ActionScript support.
I wouldn't count on Adobe opening up the player source since they currently make money by licensing it! They do have significant income from selling the tools though, so it isn't impossible.
However, unless you have a specific use case that can't work with a local server communicating with the Flash player over a socket then I think you can already do what you're suggesting.
Mark
How much integration do you want?
Sorcery-ltd | 01/10/2008, 11:43
Hi,
Have you seen KuneriLite or Janus Symbian Engine? You can do some Flash Lite and Symbian C++ communication already.
The SWF file format is published but the rendering algorithms are not, so these 3rd party solutions are not necessarily accurate/compatible with the official Adobe player. I'm not sure if any of them can really keep up with the pace of Adobe's developments long term.
For example, gameswf says it's pre-alpha and has very limited support for ActionScript. Not too useful to most Flash Lite developers.
Mark