Hi

I am trying develop an application which has play,pause,stop functions to play a media file.

when I started coding...I checked for media player availability ....

my code is as follows


m_mediaPlayer = new QMediaPlayer(QMediaServiceProvider ::defaultServiceProvider() );
QMediaService* service = m_mediaPlayer->service();
if(m_mediaPlayer->isAvailable())
{
lab->setText("yes");
}
else
{
lab->setText("no");
}


label shows "no".....

please help me.....

if anyone has similar application i.e play pause,stop a file please share...


Thanks in advance,
Prathibha.