error: A data abort exception has occurred
Hi,everyone.
I want to develop a app that can play mp3 via network with Qt in my Symbian device 5230.
So I had choose Phonon and multimedia of QtMobility to have a test.
But both Phonon and multimedia are not working.
Phonon version:
Code:
Phonon::MediaObject *music = Phonon::createPlayer(Phonon::MusicCategory,Phonon::MediaSource("http://www.cenet.org.cn/userfiles/2009-2-9/20090209213949675.mp3"));
music->play();
QtMobility version:
Code:
QMediaPlayer *player=new QMediaPlayer(this);
player
->setMedia
(QUrl("http://www.cenet.org.cn/userfiles/2009-2-9/20090209213949675.mp3"));
player->setVolume(50);
player->play();
I could generate the sis file. And it did't work on the 5230. I add the 5230 to debug with:
and the problem is :
Installing application...
Starting application...
Application running with pid 2222.
Process 2222, thread 2223 stopped at 0x797255b6: A data abort exception has occurred.
Finished.
P.S:I test both phonon and mediaplayer to play the local mp3 file.They worked well.
and I also test the Phonon as a Desktop version to play local mp3 file and mp3 via network. It played well.
Anyone met the problem? Or anyone would have suggestions to play mp3 via a URL with Qt for Symbian?
Thx!
Re: error: A data abort exception has occurred
Hi hisong1988,
I too am in the process of developing a media based app for Symbian.
I use Phonon and what I found was that you could not directly play a media file such as an mp3 via a URL, but instead you need to create an rtsp stream with that file then set the MediaSource to the rtsp URL.
Something like:
mediaObject->enqueue(Phonon::MediaSource(QUrl(QString("rtsp://URL_TO_YOUR_RTSP_STREAM"))));
Here's some info on RTSP
http://en.wikipedia.org/wiki/Real_Ti...aming_Protocol
I hope that helps.