Unable to hear any sound on phonon

  • Hi,

    I am using the AM335x Sitara board. Qt4.8.5 is already ported onto this board. My Customer has a requirement of playing a mp3 file using phonon player. So here goes my code. The compilation is successful. But I hear no sound.

    All I want is to play mp3 file. The wave file anyways plays by default. However mp3 file doesnt.

    Target : Sitara Board Am335x EVM sk
    SDK used : version 8
    QT : 4.8.5
    Host PC : Ubuntu 14.04

    #include <QtGui>
    #include <QApplication>
    #include <QCoreApplication>
    #include <phonon/VideoPlayer>
    #include <phonon/MediaSource>
    #include <QUrl>
    #include <phonon/audiooutput.h>
    #include <phonon/mediaobject.h>
    #include <phonon/mediasource.h>
    #include <phonon/videowidget.h>
    int main(int argc, char *argv[])
        QApplication a(argc, argv);
        QCoreApplication::setApplicationName( "phonon" );
     /*   const QUrl url = QUrl( QLatin1String("/usr/Munjaane_Manjalli.mp3") );
        MediaSource src(url);
        MediaObject obj;
        VideoWidget video;
        AudioOutput audio( VideoCategory );
        Phonon::createPath( &obj, &video );
        Phonon::createPath( &obj, &audio );
        Phonon::MediaObject *mediaObject = Phonon::createPlayer(Phonon::NoCategory, Phonon::MediaSource("/usr/MunjaaneManjalli.mp3/"));
        return a.exec();

    I have tried with two different ways to get the player working. I have added QT+=phonon in my .pro file. So compilation is success.

    When I run, I do not get any logs.
    Please help.

    Thanks in advance.