Phonon or QMediaplayer: Set access point to be used
-
[quote author="hisong1988" date="1291718748"]I test the QMediaPlayer to play the local file. It was working.
Now I struggle to solved how to play mp3 via a URL......[/quote]You could try different MP3 URLs or even radio streams. Maybe the specific MP3 or URL you try to playback has some problems. Other than that, I'm out of ideas. If you can, try to minimize the code that you use to play something back (a minimal example demonstrating the problem) and post the code in a pastebin and link the pasted code here.
-
Sorry to reply for you so late.
I had already try other URLs......
Would you help me to have a try on Symbian device(3rd or 5th).
The code I writed is very simple from the book name Widely Qt for Symbian.
@
QMediaPlayer *player=new QMediaPlayer(this);
player->setMedia(QUrl("http://www.cenet.org.cn/userfiles/2009-2-9/20090209213949675.mp3"));
player->setVolume(60);
player->play();
@I build a project of a Qt mobile Application(with UI). and add the code above to the constructor of the project.
Sorry,I don't know how to post my code in a pastebin. would you leave your Email for me? Or my Email is hisong1988@gmail.com, I could post the whole project to you.
-
[quote author="hisong1988" date="1291722235"]Would you help me to have a try on Symbian device(3rd or 5th).[/quote]
Try it on Qt Simulator. If it does work in the Simulator but not on the device, file a bug report.
It might also be an idea to check if you can access the URL via the normal media player or web browser on the device. Maybe the URL is blocked.
-
Also don't completely rely on that book as lot of things have changed. Always refer to documentation available.
-
Oh, I can use the web browser to surf Internet.
The URL is OK. I can use it on the computer.
I think I need to learn how to use Symbian SDK to develop what I need.It's so upset now.
I always think that Qt is perfect for nokia released so many versions in a short time.Thanks for the test for me.
What do you think of Qt for Symbian run on Symbian(3rd or 5th) devices?
I found there are many place need to be improved since I had been studied Qt for Symbian almost 2 month. -
[quote author="hisong1988" date="1291724952"]
What do you think of Qt for Symbian run on Symbian(3rd or 5th) devices?
I found there are many place need to be improved since I had been studied Qt for Symbian almost 2 month.[/quote]Qt for Symbian is supported on all S60 3rd ed FP 1 device onwards. Yes lots of improvements are required and thats one of the reasons you find constant update on new releases for both SDK and IDE.
-
[quote author="hisong1988" date="1291724952"]What do you think of Qt for Symbian run on Symbian(3rd or 5th) devices?[/quote]
My personal opinion? If you can choose, target only Symbian^3^, and also wait for Qt 4.7 (should be released with the next firmware update), so you can develop stuff with QML. Of course, not everyone can choose and you might want to take advantage of the greater deployment base than just relying on S^3^.
-
[quote author="xsacha" date="1291726695"]Symbian^1^ gets the same Qt functionality as Symbian^3^ as far as I know. Except multi-touch of course.
So no reason not to target it as well. You can currently deploy Qt4.6.3 apps on there.[/quote]Yes, but no Qt 4.7 / QML so far. Might come in the future, yes. But what about the performance then? Will older Symbian devices have enough power to run these apps? I'd be more than happy to be able to target Qt apps for Symbian 1 as well, but the fact is, that we are not there yet :/ There's an experimental Qt 4.7 for Symbian 3 available from Forum Nokia already, though. Let's hope it comes to Symbian1 as well.
-
Qt4.7.1 runs on my Symbian^1^ devices but, actually, not on my Symbian^3^ devices (only Qt4.7.0).
In fact, the Qt4.7.1 binaries were available for Symbian^1^ as soon as Qt4.7.1 was released. Qt4.7.0 for N8 came a bit later. So it's actually the other way around.QtQuick runs well on both. I have a device here with 400MHz processor and using a QML app with 1000 lines of code. It runs very fluid. It has screen tearing but not because it's running slower than it should.
I believe when 4.7.1/4.7.2 is allowed on Ovi Store it will be for all devices.
By the way, the Flow'd app (written in Qt Quick) by Digia is available for 1 and 3. :)
-
[quote author="xsacha" date="1291728087"]In fact, the Qt4.7.1 binaries were available for Symbian^1^ as soon as Qt4.7.1 was released. Qt4.7.0 for N8 came a bit later. So it's actually the other way around.[/quote]
Ah, I didn't know that. Thanks for the clarification. I've only tried some Qt development in June, and back then, Qt on Symbian 1 was in a very bad shape. Glad to see things are getting better for the old devices as well :)
-
I found this bug report for phonon:
http://bugreports.qt.nokia.com/browse/QTBUG-11436
Does anyone know if same kind of trick (pMediaObject->setProperty("PhononAccessPoint", iapID)) can be used for QMediaPlayer from Qt mobility? I would really like to use that instead of phonon API, because otherwise it works much better. But I'm quite skeptic that users know that they must select AP used for streaming manually from settings.
-
In QtMobility 1.2 there's this function:
http://doc.qt.nokia.com/qtmobility-1.2/qmediaplayer.html#setNetworkConfigurationsI think it's a Symbian feature to allow different network access points for different purposes.