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

QMediaPlayer resolution returns (-1x-1)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.1.1
    • Multimedia
    • None
    • Qt, QMediaPlayer, multimedia, meda

    Description

      QMediaPlayer * Player = new QMediaPlayer(this);

      Player->setMedia(QUrl::fromLocalFile(Filename));

      Player->setVideoOutput(Screen);

      int Width = Player->media().canonicalResource().resolution().width();

      Player->play();
      Screen->show();

      Width is returned -1 in this case, so is the height if we try to get it, I searched the whole forums, the bug tracker and asked on the IRC channel, no one knew the answer, so I can expect its a bug, please correct me if I am mistaken.

      Attachments

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

        Activity

          People

            ylopes Yoann Lopes
            mjaoune Mahmoud Jaoune
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes