Hi Espen :) On 11/12/10 5:20 AM, ext Espen Riskedal wrote: > 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. >
Yes, currently there is no support for this on Symbian. > 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? Following 604 should keep you informed. > At least QMediaPlayer::hasSupport() shold return not supported for > QMediaPlayer::StreamPlayback if that is the case on Symbian. At the > moment it return "ProbablySupported". > Agreed, could you file a bug please? > 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? What you're doing is the easiest way, platform support for this is not guaranteed though (hence the hasSupport()). > 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. Sounds like a bug. A report would be good. > Is there a class in Multimedia where I can feed a stream in and get > PCM data back? No, though we hope to improve our audio offering. - Justin _______________________________________________ Qt-mobility-feedback mailing list Qt-mobility-feedback@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-mobility-feedback