Hello,

I have been trying to run the QMediaPlayer SDK example found at http://doc.qt.nokia.com/qtmobility-1.1/player.html and have hit a snag. When I reach the point of loading a media file the application becomes unresponsive. The slot connected to QMediaPlayer::mediaStatusChanged receives the QMediaPlayer::LoadingMedia message but QMediaPlayer::LoadedMedia never arrives. The error slot is hit before I start to load but the error code is QMediaPlayer::NoError at that point. Has anyone else seen this problem?

I am doing on device debugging on an N8 with firmware 014 002 running the debugger through Qt Creator 2.1.0 with Qt SDK 4.7.3 installed.

Code:
Player::Player(QWidget *parent)
{
    player = new QMediaPlayer(this);
    playlist = new QMediaPlaylist();
    player->setPlaylist(playlist);

    connect(player, SIGNAL(mediaStatusChanged(QMediaPlayer::MediaStatus)),
            this, SLOT(statusChanged(QMediaPlayer::MediaStatus)));
    connect(player, SIGNAL(error(QMediaPlayer::Error)), this, SLOT(displayErrorMessage()));
    connect(player, SIGNAL(stateChanged(QMediaPlayer::State)),
            controls, SLOT(setState(QMediaPlayer::State)));

	QStringList fileNames;
    QString fileName = QFileDialog::getOpenFileName(this, tr("Open Files"), "/");
    if (!fileName.isEmpty())
        fileNames << fileName;
#else
    QStringList fileNames = QFileDialog::getOpenFileNames(this, tr("Open Files"));
#endif
    addToPlaylist(fileNames);
}
 
void Player::addToPlaylist(const QStringList& fileNames)
{
    foreach (QString const &argument, fileNames) {
        QFileInfo fileInfo(argument);
        if (fileInfo.exists()) {
            QUrl url = QUrl::fromLocalFile(fileInfo.absoluteFilePath());
            if (fileInfo.suffix().toLower() == QLatin1String("m3u")) {
                playlist->load(url);
            } else
                playlist->addMedia(url);
        } else {
            QUrl url(argument);
            if (url.isValid()) {
                playlist->addMedia(url);
            }
        }
    }
}
Thank you.