SWF Support

From ResourceSpace Documentation Wiki

Jump to: navigation, search

How to support SWF previews and display

On Ubuntu 10.10, this is what I did to get SWF support, using ResourceSpace revision 2161+

Thanks to Benjamin Wolsey for pointing out the possibility of compiling dump-gnash (which needs no GUI, so can be run headless on the server), and to Jeff Harmon of Colorhythm, LLC for doing the research around this. Also thanks to this file: http://www.xmission.com/~ink/gnash/gnash-dump/README.txt

We haven't tried this on systems other than Ubuntu.

cd /tmp
wget http://ftp.gnu.org/pub/gnu/gnash/0.8.8/gnash-0.8.8.tar.gz
tar -xvf gnash-0.8.8.tar.gz
cd gnash-0.8.8
sudo apt-get install libjpeg-dev libgif-dev libgstreamer0.10-dev libsdl1.2-dev \ 
libagg-dev libboost-dev libboost-thread-dev libgtk2.0-dev libpango1.0-dev libatk1.0-dev libgstreamermm-0.10-dev
./configure --prefix=/usr/local/gnash-dump --enable-renderer=agg --enable-gui=gtk,dump --disable-menus

For the Ubuntu compilation, it didn't work for me without building both gtk and dump guis.

on MacOSX, Jeff Harmon used:

./configure --prefix=/usr/local/gnash-dump --enable-renderer=agg --enable-gui=dump \
--enable-media=ffmpeg --disable-kparts3 --disable-kparts4 --disable-npapi --disable-menus
make
sudo make install

in include/config.php:

$display_swf enables actual playing of the swf file in the View page. If false, the preview screenshot is used if dump-gnash was available during preview creation.

$display_swf=true; 

$dump_gnash_path enables the dump-gnash binary to be used to create previews, if it is available.

$dump_gnash_path="/usr/local/gnash-dump/bin";

-Tom

Personal tools