Hi, Firstly thanks for great job done with swfdec. I had recognized swfdec at gtk.org site. Last week i decided to integrate it to gtk+webcore browser. And i successfully did it with version 0.4.5 Even thought it is integrated and works fine there are some problems with swfdec. I want to ask some questions about it. Also yesterday i saw the last release 0.5 And i have some questions about it. Please give me replies. About 0.4.5 1- This version render swf and flv files fine. But can not handle swf files which receives flv files as parameters i mean xxx.swf?play=yyy.flv tries to open a player flash file (xxx.swf) to control (stop-pause-volume) flash video yyy.flv. This procedure is widely use by sites like youtube. Is it possible to play file like this. Also some advanced flash files like http://img238.imageshack.us/my.php?image=pageflipv228bj.swf is not rendered by version 0.4.5 But done with 0.5 with some bugs. 2- I also need streaming. Currently i download full flash content and than start to rendering. Bu it is possible to use swfplayer or swfloader with a streaming mechanism. I use libcurl to fetch data from internet and the flash content comes separately from network. I tried to use swfdec_loader_push and SwfdecBuffer to add data whenever it comes from network but even it compiled and linked, it did not work at run time and give "undefined symbol" error. Did i made something wrong or is it a bug of library? Can you suggest any other way of streaming? About 0.5 Yesterday i download from sourceforge. When it gave me some errors i get last trunk from git 1- Compiling of this version was not very stable a-Firstly compiling with alsa backend was not possible on my system and says tstamp is not a known type. I tried to disable alsa and use no audio backend to complie. But git version is complied with oss backend. b- Git version has -Werror flag and raises errors from deprecated functions in ffmpeg. I removed -Werror flag form configure script and compiled. c- Using 0.5 version in a C++ project is impossible due to delete operant of _SwfdecAsObjectClass struct. Since delete is a keyword of c++ i could not compile it. Is there a trick for it? Or the name of operator should be changed?? 2- This version can not play flv files. As you know. swfdec_flv_decoder_add_movie call aborts program. When this will be implemented??? I strongly need your replies. Thanks a lot. -- Uygar G?m?? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.freedesktop.org/archives/swfdec/attachments/20070717/20c27e2d/attachment.htm
Hello, I encountered problem 1a) and 1c) as well. Apparently the ALSA compilation thing is a known problem with ALSA and certain compilation flags. To fix 1a) I put the following at the top of the swfdec_playback_alsa.c header file. /* * This fixes a build problem with ALSA * Solution found here: * http://opensource.creative.com/pipermail/openal-devel/2006-May/004325.html */ #define _POSIX_C_SOURCE 199309 I just renamed the 'delete' function temporarily to something else to make it compile. Regards, Robert. On 17/07/07, Uygar G?m?? <uygar.gumus at gmail.com> wrote:> Hi, > > Firstly thanks for great job done with swfdec. > I had recognized swfdec at gtk.org site. Last week i decided to integrate > it to gtk+webcore browser. > And i successfully did it with version 0.4.5 > Even thought it is integrated and works fine there are some problems with > swfdec. I want to ask some questions about it. Also yesterday i saw the last > release 0.5 And i have some questions about it. Please give me replies. > > About 0.4.5 > > 1- This version render swf and flv files fine. But can not handle swf files > which receives flv files as parameters i mean xxx.swf?play=yyy.flv tries to > open a player flash file (xxx.swf) to control (stop-pause-volume) flash > video yyy.flv. This procedure is widely use by sites like youtube. Is it > possible to play file like this. Also some advanced flash files like > http://img238.imageshack.us/my.php?image=pageflipv228bj.swf is not rendered > by version 0.4.5 But done with 0.5 with some bugs. > > 2- I also need streaming. Currently i download full flash content and than > start to rendering. Bu it is possible to use swfplayer or swfloader with a > streaming mechanism. I use libcurl to fetch data from internet and the flash > content comes separately from network. I tried to use swfdec_loader_push and > SwfdecBuffer to add data whenever it comes from network but even it compiled > and linked, it did not work at run time and give "undefined symbol" error. > Did i made something wrong or is it a bug of library? Can you suggest any > other way of streaming? > > About 0.5 > > Yesterday i download from sourceforge. When it gave me some errors i get > last trunk from git > > 1- Compiling of this version was not very stable > a-Firstly compiling with alsa backend was not possible on my system and > says tstamp is not a known type. I tried to disable alsa and use no audio > backend to complie. But git version is complied with oss backend. > b- Git version has -Werror flag and raises errors from deprecated > functions in ffmpeg. I removed -Werror flag form configure script and > compiled. > c- Using 0.5 version in a C++ project is impossible due to delete > operant of _SwfdecAsObjectClass struct. Since delete is a keyword of c++ i > could not compile it. Is there a trick for it? Or the name of operator > should be changed?? > > 2- This version can not play flv files. As you know. > swfdec_flv_decoder_add_movie call aborts program. When this will be > implemented??? > > I strongly need your replies. Thanks a lot. > > -- > Uygar G?m?? >
On 7/17/07, Uygar G?m?? <uygar.gumus at gmail.com> wrote:> > Hi, > > Firstly thanks for great job done with swfdec. > I had recognized swfdec at gtk.org site. Last week i decided to integrate > it to gtk+webcore browser. > And i successfully did it with version 0.4.5 > Even thought it is integrated and works fine there are some problems with > swfdec. >Where's the patch to do it? I was going to hack on that with Alp Toker, so if we had something to start, that'd be great.> 1- This version render swf and flv files fine. But can not handle swf files > which receives flv files as parameters i mean xxx.swf?play=yyy.flv tries to > open a player flash file (xxx.swf) to control (stop-pause-volume) flash > video yyy.flv. This procedure is widely use by sites like youtube. Is it > possible to play file like this. Also some advanced flash files like > http://img238.imageshack.us/my.php?image=pageflipv228bj.swf > is not rendered by version 0.4.5 But done with 0.5 with some bugs. >This definitely works by Swfdec 0.4.5 - 0.4.5 plays Youtube after all. It can be that it misinterprets some stuff in the xxx.swf file and therefore never gets to loading the FLV. That would then be a missing feature.> 2- I also need streaming. Currently i download full flash content and than > start to rendering. Bu it is possible to use swfplayer or swfloader with a > streaming mechanism. I use libcurl to fetch data from internet and the flash > content comes separately from network. I tried to use swfdec_loader_push and > SwfdecBuffer to add data whenever it comes from network but even it compiled > and linked, it did not work at run time and give "undefined symbol" error. > Did i made something wrong or is it a bug of library? Can you suggest any > other way of streaming? >If you do your own SwfdecLoader subclass (see the swfdec-mozilla loader for example), everything should just work. The Mozilla plugin loads progressively just fine. For testing purposes, swfplay -d 10 will make loading the file take 10 seconds time.> 1- Compiling of this version was not very stable > a-Firstly compiling with alsa backend was not possible on my system and > says tstamp is not a known type. I tried to disable alsa and use no audio > backend to complie. But git version is complied with oss backend. >That's a bug in older versions of ALSA or libc. It's fixed in Ubuntu Gutsy's version. You can locally use Robert's suggested fix for it until that bug is fixed upstream.> b- Git version has -Werror flag and raises errors from deprecated > functions in ffmpeg. I removed -Werror flag form configure script and > compiled. >That again is a bug in upstream ffmpeg. Swfdec uses -Werror on purpose during development so that these bugs get fixed. Releases compile without -Werror, so yeah, you can just use CFLAGS="-Wno-error" ./configure to get rid of it.> c- Using 0.5 version in a C++ project is impossible due to delete > operant of _SwfdecAsObjectClass struct. Since delete is a keyword of c++ i > could not compile it. Is there a trick for it? Or the name of operator > should be changed?? >That is indeed a bug, that I'll immediately fix. I blame Robert for not complaining yesterday. ;)> 2- This version can not play flv files. As you know. > swfdec_flv_decoder_add_movie call aborts program. When this will be > implemented??? >Ooops, yeah I forgot about readding this during the 0.4 => 0.5 port. It's somewhat of a hack anyway, but I should get around readding that before the next release. Cheers, Benjamin