以下是我在Qt中播放视频的代码。在模拟器中它工作正常,但在诺基亚设备上没有。我该如何解决这个问题?
QVideoWidget* widget = new QVideoWidget(0);
QMediaPlayer *player;
player = new QMediaPlayer;
player->setMedia(QUrl("qrc:/360x640/Mechanique2go.mp4")); // Local file Path
player->setVideoOutput(widget);
player->setVolume(100); // line 23
player->play();
widget->raise();
widget->showFullScreen();