I'm trying to do a Media Player (Maemo and after Linux embedded), i can see the video, but i can't hear the audio and i got this error.
"Warning: You do not seem to have the package gstreamer0.10-plugins-good c
Some video features have been disabled."
My source is:
Phonon::VideoPlayer * player = new Phonon::VideoPlayer(Phonon::VideoCategory, this);
player->load(Phonon::MediaSource("/home/gorio/sample_iTunes.mov"));
player->setFixedSize(661,251);
player
->setGeometry
(QRect(70,
60,
661,
251));
player
->setStyleSheet
(QString::fromUtf8("background-color: rgb(0, 0, 0);"));
Phonon::MediaObject *mediaObject = new Phonon::MediaObject(this);
Phonon::AudioOutput *audioOutput = new Phonon::AudioOutput(Phonon::VideoCategory, this);
Phonon::createPath(mediaObject, audioOutput);
player->play();
Phonon::VideoPlayer * player = new Phonon::VideoPlayer(Phonon::VideoCategory, this);
player->load(Phonon::MediaSource("/home/gorio/sample_iTunes.mov"));
player->setFixedSize(661,251);
player->setGeometry(QRect(70, 60, 661, 251));
player->setStyleSheet(QString::fromUtf8("background-color: rgb(0, 0, 0);"));
Phonon::MediaObject *mediaObject = new Phonon::MediaObject(this);
Phonon::AudioOutput *audioOutput = new Phonon::AudioOutput(Phonon::VideoCategory, this);
Phonon::createPath(mediaObject, audioOutput);
player->play();
To copy to clipboard, switch view to plain text mode
Bookmarks