I tested something like: m_iodevice = new QFile("audiosamples/sample.mp3", this); if (!m_iodevice->open(QIODevice::ReadOnly)) qDebug() << "failed to open QIODevice"; m_player = new QMediaPlayer(this, QMediaPlayer::StreamPlayback); m_player->setMedia(QMediaContent(), m_iodevice); m_player->setVolume(100); m_player->play();
which works fine on Windows, but fails on Symbian. I noticed a comment some time ago on Qt Labs that this would be fixed, now I see it still seems to be an open issue: http://bugreports.qt.nokia.com/browse/QTMOBILITY-604. Basically what I want to achieve is streaming playback of audio (mp3/mp4/whatever) on Symbian. I'd like to control the buffering/download myself (offline + encryption), so to implement my own custom QIODevice seems like the logical solution. Are there any updates on this issue? At least QMediaPlayer::hasSupport() shold return not supported for QMediaPlayer::StreamPlayback if that is the case on Symbian. At the moment it return "ProbablySupported". Also, can you think of any other ways I can still use QMediaPlayer/Multimedia and achieve what I want? Or am I looking at a pure QAudioOutput solution here where I'll have to deal with the codecs myself? Note: I also tried passing a QUrl("http://some.place/sample.mp3") just to see if that worked. On Windows once again it worked fine. On Symbian that as well failed. It went online (insisting on 3G even if wifi was around) but I got QMediaPlayer::StalledMedia (the mp3 was 8megs) after a bit of loading. Is there a class in Multimedia where I can feed a stream in and get PCM data back? regards, espen _______________________________________________ Qt-mobility-feedback mailing list Qt-mobility-feedback@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-mobility-feedback