Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-28850

QMediaResource returns no media info

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.13
    • 5.0.0, 5.9, 5.10
    • Multimedia
    • None
    • Windows 7 64-bit, Qt5.0.0 msvc2010 binary distribution

    Description

      On different video containers and codecs this simple example returns no data.

      QMediaResource mr(QUrl::fromLocalFile("test.avi"));
      QMediaContent mc(mr);

      QMediaPlayer player = new QMediaPlayer(this);
      QVideoWidget vw = new QVideoWidget;
      player->setVideoOutput(vw);
      player->setMedia(mc);
      vw->show();
      player->play();

      qDebug() << mr.resolution() << mr.videoCodec(); //etc. returns nulls or empty strings

      http://qt-project.org/forums/viewthread/23022/

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            valentyn.doroshchuk Valentyn Doroshchuk
            ineedmyspace Alexander Piskarev
            Votes:
            5 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes