QMediaPlayer* _player = new QmediaPlayer(this);
QUrl url = QUrl::fromLocalFile("test.amr");
_player->setMedia(url);
_player->play();
_player->errorString()
is DirectShowPlayerService::doRender: Unresolved error code 80040266.
Do i need to convert amr to mp3 and then use qmediaplayer to play?
The formats supported by QMediaPlayer
depends on the backend you use, in windows uses DirectShow
and the formats supported formats found here, unfortunately the amr
format is not in the list.
For more information you can read here.