Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Phonon or QMediaplayer: Set access point to be used
QtWS25 Last Chance

Phonon or QMediaplayer: Set access point to be used

Scheduled Pinned Locked Moved Mobile and Embedded
24 Posts 8 Posters 15.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    thp4
    wrote on last edited by
    #10

    [quote author="hisong1988" date="1291715137"]When I use QMediaPlayer of QtMobility, It showed nothing,but I could see the active network.

    My qt for symbian is 4.7.1 and mobility is 1.1.0. I used nokia5230 and 5800 to test my app.[/quote]

    You could try player->setVolume() and make sure that you are using the "Generic" profile on your mobile phone, not the "Silent" profile. Don't know if it's a problem on Symbian, but it is on Maemo. (I'm assuming that if you say "active network", it means that you can see the data being requested and streamed, so maybe the problem is just that you don't hear it :)

    You can also connect to the positionChanged(qint64) signal of the QMediaPlayer and see if the position gets updated when playing (i.e. use qDebug() to output the position on the console).

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hisong1988
      wrote on last edited by
      #11

      Hello thp,
      thank you so much for talking back!
      I had seted the Volume certainly.And my phone is "Generic" all the time.

      I also installed an software to monitor the flow through network when I using QMediaPlayer.
      The software I installed showed that the app had generated almost 10KB of network traffic characteristics. And the app would never generate any more. It's not normal.

      I test the QMediaPlayer to play the local file. It was working.
      Now I struggle to solved how to play mp3 via a URL......

      I am still searching for....

      1 Reply Last reply
      0
      • T Offline
        T Offline
        thp4
        wrote on last edited by
        #12

        [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.

        1 Reply Last reply
        0
        • H Offline
          H Offline
          hisong1988
          wrote on last edited by
          #13

          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.

          I am still searching for....

          1 Reply Last reply
          0
          • T Offline
            T Offline
            thp4
            wrote on last edited by
            #14

            [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.

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kamalakshantv
              wrote on last edited by
              #15

              Also don't completely rely on that book as lot of things have changed. Always refer to documentation available.

              1 Reply Last reply
              0
              • H Offline
                H Offline
                hisong1988
                wrote on last edited by
                #16

                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.

                I am still searching for....

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kamalakshantv
                  wrote on last edited by
                  #17

                  [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.

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    thp4
                    wrote on last edited by
                    #18

                    [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^.

                    1 Reply Last reply
                    0
                    • X Offline
                      X Offline
                      xsacha
                      wrote on last edited by
                      #19

                      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.

                      • Sacha
                      1 Reply Last reply
                      0
                      • T Offline
                        T Offline
                        thp4
                        wrote on last edited by
                        #20

                        [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.

                        1 Reply Last reply
                        0
                        • X Offline
                          X Offline
                          xsacha
                          wrote on last edited by
                          #21

                          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. :)

                          • Sacha
                          1 Reply Last reply
                          0
                          • T Offline
                            T Offline
                            thp4
                            wrote on last edited by
                            #22

                            [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 :)

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              mikkom
                              wrote on last edited by
                              #23

                              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.

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                michael.goddard
                                wrote on last edited by
                                #24

                                In QtMobility 1.2 there's this function:
                                http://doc.qt.nokia.com/qtmobility-1.2/qmediaplayer.html#setNetworkConfigurations

                                I think it's a Symbian feature to allow different network access points for different purposes.

                                1 Reply Last reply
                                0

                                • Login

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Users
                                • Groups
                                • Search
                                • Get Qt Extensions
                                • Unsolved