PDA

View Full Version : how to work using Phonon::MediaSource ( const QUrl & url ) to play remote video/audio



hrn2k1
31st March 2011, 06:30
I want to play remote video/audio file from nokia c6, N82, 5800 XpressMusic mobile (Mobile is connect to WLAN for internet). I use code like



Phonon::MediaObject m_MediaObject;
Phonon::AudioOutput m_AudioOutput;
MediaVideoWidget *m_videoWidget;

Phonon::Path m_audioOutputPath = Phonon::createPath(&m_MediaObject, &m_AudioOutput);
Phonon::Path path= Phonon::createPath(&m_MediaObject, m_videoWidget);
Phonon::MediaSource src=Phonon::MediaSource(QUrl("http;//172.168.10.3/videos/1.mp4")));
m_MediaObject.setCurrentSource(src);
m_MediaObject.play();

//////////////////////////////////////////////////////////////////
it works fine on QT Simulator. But doesn't work on nokia devices. it shows an error.
Loading clip failed: Not supported.

I use in project (.pro) file the capability like

CONFIG += mobility
MOBILITY += multimedia

symbian {
TARGET.UID3 = 0xe0e5de6d
TARGET.CAPABILITY = NetworkServices MultimediaDD
TARGET.EPOCSTACKSIZE = 0x14000
TARGET.EPOCHEAPSIZE = 0x020000 0x800000
}

BUT it doesn't work.
BUT the same file I can play keeping on mobile device memory card like local file.
please can you help me about this matter.

I am trying to solve it for a few days but no solution I get.
please help me.

hArUn.

high_flyer
31st March 2011, 08:47
Loading clip failed: Not supported.
Sounds like the mp4 codec is either missing or not found.

hrn2k1
31st March 2011, 11:01
@high_flyer
thanks for reply.
I Can't understand your reply.
please clarify. help me to solve the problem.

hrn2k1
3rd April 2011, 11:57
hi
are there somebody to help me?
please give me your mail ID, I will send my project for testing.