swfdec-qt4
Purpose
swfdec is a library to decode and render Macromedia Flash animations. This project provides language bindings for Trolltech's Qt4 cross-platform GUI toolkit.
The bindings provide:
- a Flash player widget that can handle keyboard and mouse input
- a standalone Flash player
Todo
The biggest missing part of the language bindings is sound output.
Example
- player.cpp:
#include <swfdec-qt4/swfdecqtplayer.h> #include <swfdec-qt4/swfdecqtwidget.h> #include <QApplication> #include <QFileInfo> int main (int argc, char *argv[]) { QApplication app (argc, argv); SwfdecQtWidget * const widget = new SwfdecQtWidget; widget->setMinimumSize (400, 300); widget->setInteractive (true); widget->show(); SwfdecQtPlayer * const player = new SwfdecQtPlayer ("file://" + QFileInfo (app.arguments()[1]).absoluteFilePath(), QByteArray(), widget); widget->setPlayer (player); player->setPlaying (true); int result = app.exec(); delete widget; return result; }
- player.pro:
SOURCES += player.cpp PKGCONFIG += swfdec-qt4-0.1 CONFIG += link_pkgconfig
Download
- The bug tracker is located on launchpad.net.
- Source code can be obtained with git:
git clone http://mh21.de/git/swfdec-qt4.git
- Ubuntu package and sources can be found at the launchpad ppa at http://ppa.launchpad.net/mh21/ubuntu.