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:
Phonon::MediaObject *music = Phonon::createPlayer(Phonon::MusicCategory,Phonon::MediaSource("http://www.cenet.org.cn/userfiles/2009-2-9/20090209213949675.mp3"));
music->play();
Phonon::MediaObject *music = Phonon::createPlayer(Phonon::MusicCategory,Phonon::MediaSource("http://www.cenet.org.cn/userfiles/2009-2-9/20090209213949675.mp3"));
music->play();
To copy to clipboard, switch view to plain text mode
QtMobility version:
QMediaPlayer *player=new QMediaPlayer(this);
player
->setMedia
(QUrl("http://www.cenet.org.cn/userfiles/2009-2-9/20090209213949675.mp3"));
player->setVolume(50);
player->play();
QMediaPlayer *player=new QMediaPlayer(this);
player->setMedia(QUrl("http://www.cenet.org.cn/userfiles/2009-2-9/20090209213949675.mp3"));
player->setVolume(50);
player->play();
To copy to clipboard, switch view to plain text mode
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!
Bookmarks