wow, thnx.
but unfortunately this seems to be not available for
mingw qt:
http://doc.qt.nokia.com/latest/phono...talling-phonon
Added after 24 minutes:
ok, my last posting might be wrong:
i can compile the following code within qt-creator with setting QT+= phonon to project file:
#include <QtGui/QApplication>
#include "mainwindow.h"
#include <QtGui/QApplication>
#include <Phonon/VideoPlayer>
using namespace Phonon;
int main(int argc, char *argv[])
{
MediaSource m("test.avi");
VideoPlayer *player = new VideoPlayer(Phonon::VideoCategory, 0);
QObject::connect(player,
SIGNAL(finished
()), player,
SLOT(deleteLater
()));
player->play(m);
return a.exec();
}
#include <QtGui/QApplication>
#include "mainwindow.h"
#include <QtGui/QApplication>
#include <Phonon/VideoPlayer>
using namespace Phonon;
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MediaSource m("test.avi");
VideoPlayer *player = new VideoPlayer(Phonon::VideoCategory, 0);
QObject::connect(player, SIGNAL(finished()), player, SLOT(deleteLater()));
player->play(m);
return a.exec();
}
To copy to clipboard, switch view to plain text mode
but nothing happens (file exists and is in right place)
Bookmarks