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.
QByteArray array =file.read(512*1024);
QBuffer* buffer = new QBuffer(&array);
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?