Hello ,
So i am trying to use a QBuffer as a mediasource for Phonon::mediaObject.
But at mediaObject->setCurrentSource there is an error that says media type could not be determined.Code:QFile file("c:\\data\\images\\123.mp3"); file.open(QIODevice::ReadOnly); QByteArray array =file.read(512*1024); QBuffer* buffer = new QBuffer(&array); buffer->open(QIODevice::ReadOnly); mediaObject->setCurrentSource( Phonon::MediaSource(buffer)); mediaObject->play();
Does anyone have a suggestion as to why this is happening.
if i replace the source with ( QString file) , it starts playing fine.
Are there code samples using Qbuffer as source?
thanks.



