Eduardo Gorio

How to play Audio and Video using Qt (Phonon) ?

Discussion created by Eduardo Gorio on Aug 10, 2011

Hi Guys,

I'm trying to play a mp3 and mpg using Qt (Phonon module) but i got this Warning and i didn't hear anything..

 

WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded

My source is:

Phonon::AudioOutput *audioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this);

Phonon::MediaObject *mediaObject = new Phonon::MediaObject(this);
mediaObject->setCurrentSource(Phonon::MediaSource("/home/user/Audio/MP3.MP3"));

mediaObject->play();

 

Thanks

Outcomes