[Swfdec] Question about Konq Support
kris at pcbsd.com
Wed Aug 27 11:08:54 PDT 2008
Benjamin Otte wrote:
> On Wed, Aug 20, 2008 at 7:05 PM, Kris Moore <kris at pcbsd.com> wrote:
>> This makes it sound like it is looking for "file://" instead of "http://"?
>> Is this a bug in swfdec_file_loader?
> Surprisingly, no, this is not a bug. The File loader does indeed only
> load files. Unnamed sources claim it's name might be influenced by
> Joking aside, the problem you are running into here is that libswfdec
> itself is designed to not do anything but decode Flash files.
> Everything that would need further dependencies is left to "glue"
> libraries, such as libswfdec-gtk. They implement all external
> interactions. The most important of those being:
> - hooking up Cairo output
> - advancement/main loop integration
> - sound output
> - input (mouse and keyboard)
> - HTTP support
> There's a few others (sockets, JS integration, fullscreen), but those
> are the important ones to get a sane player for your platform of
> Maybe you could have a look at the swfdec-gtk source code to get a
> feel for what the seperate source files achieve.
LOL, I was afraid of that! I was hoping somebody would tell me that I
just had to call some other function, or set a flag to get it to load
from a URL properly.
So, leme see if I understand this properly now:
Since swfdec can't "stream" data from a given URL, I have to instruct
KDE to download all flash files to some local directory, and then have
swfdec play the local archived copy. This then begs the question, about
very large flash movies. Does this mean for a large movie to play, the
user has to wait for the entire file to download first, or is usually
the flash file just a wrapper which in turn does the streaming during
the flash runtime?
Sorry for the basic questions, I'm not as experienced in the flash side
of things :P
I will take a closer look at swfdec-gtk though, to see what I can glean
from it. Do you think we'll end up having to write an entire plugin in
QT from scratch, or should there be a way to "piggy-back" the gtk plugin
and have it be loaded by a kpart in konqueror?
More information about the Swfdec