昨天看了
phonon的文档,测试了一下音频播放是可以的,但是今天测试
视频的时候就出现了无法播放的情况。
错误信息如图:
代码如下:
#include <QApplication>
#include <QtGui>
#include <QtCore>
#include <phonon>
int main( int argc, char * argv[])
{
QApplication app(argc, argv);
Phonon::VideoPlayer *player = new Phonon::VideoPlayer(Phonon::VideoCategory, 0);
QObject::connect(player, SIGNAL(finished()), player, SLOT(deleteLater()));
player->play(Phonon::MediaSource("~/Videos/test.flv"));
player->show();
return app.exec();
}