Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-2052

QMediaPlayer buffer underrun?, streaming not working properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Not Evaluated Not Evaluated
    • None
    • 1.1.2
    • Multimedia
    • None
    • Symbian Belle, Nokia N8. Qt4.7.4 QtMoblity 1.2.1

      QMediaPlayer doesn't work properly when doing streaming. Usually songs get interrupted in the middle, around 2:15 minute. When debugging my app, I got "ResourceError" and Symbian -36 error, however the state is always QMediaPlayer::BufferedMedia and the position goes to the end.

      My testing code http://pastebin.com/RkWp58Xk

      My code in short:

      myPlayer = new QMediaPlayer(this, QMediaPlayer::StreamPlayback);
      myPlayer->setVolume(100);
      myPlayer->setMedia(QUrl("http://mydomain.com/test.mp3"));
      myPlayer->play();

      The songs play very well, however they always get interrupted in the middle. I tried with different servers, songs and sizes and the same happens.

      What could be the problem when doing streaming with QMediaPlayer? Is it a buffer problem? If so, how can I increase the buffer size? There is no method in QMediaPlayer to set the buffer size. I tried the QML Audio element and I got exactly the same results.

      My phone is the N8 with Qt 4.7.4 and QtMobility 1.2.1 and this is included in my .pro file:
      QT += network

      symbian {
      TARGET.CAPABILITY += NetworkServices ReadDeviceData ReadUserData WriteDeviceData WriteUserData
      TARGET.EPOCHEAPSIZE = 0x400000 0x8000000
      TARGET.UID3 = 0x20065759
      ...
      ...
      }

      CONFIG += mobility
      MOBILITY += multimedia

      Could you please give some direction on how to solve this?

        1. QMediaPlayerTest.zip
          172 kB
          Ari Lehtola (closed Nokia identity)
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            satu.m.makela satu makela
            davico David Guitierrez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes