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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

720 Views
G_rio
Contributor III

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

Labels (1)
0 Kudos
0 Replies