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

QMediaPlayer buffer underrun?, streaming not working properly

    XMLWordPrintable

Details

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

    Description

      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?

      Attachments

        1. QMediaPlayerTest.zip
          172 kB
          Ari Lehtola (closed Nokia identity)

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: