【问题标题】:how to play an amr audio,QMediaPlayer not support?如何播放 amr 音频,QMediaPlayer 不支持?
【发布时间】:2017-05-05 02:40:24
【问题描述】:
QMediaPlayer* _player = new QmediaPlayer(this);    
QUrl url = QUrl::fromLocalFile("test.amr");
_player->setMedia(url);
_player->play();

_player->errorString() 是 DirectShowPlayerService::doRender: 未解决的错误代码 80040266。

需要把amr转成mp3再用qmediaplayer播放吗?

【问题讨论】:

    标签: c++ qt qt5 qmediaplayer


    【解决方案1】:

    QMediaPlayer 支持的格式取决于你使用的后端,在 windows 中使用DirectShow 和支持的格式找到here,不幸的是amr 格式不在列表中。

    更多信息可以阅读here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-12-14
      • 1970-01-01
      • 1970-01-01
      • 2013-02-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多