Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem with videos in QMediaPlayer
Qt 6.11 is out! See what's new in the release blog

Problem with videos in QMediaPlayer

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 774 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TomNow99
    wrote on last edited by TomNow99
    #1

    Hello,

    I create double player in QT.

    The first situation with one player: everything is ok. I set QGridLayout as centralWidget's layout. Next I add to this grid QVideoWidget and I set in QMediaPlayer this videoWidget like:

    player->setVideoOutput(videoWidget);
    

    When the movie is finished I can resize mainWindow ( here I have this QGridLayout ). Everything is ok.

    Now the second situation: with two players. I do the same things: set Grid, add two other QVideoWidgets and set two, other QMediaPlayers. I set other movies, but with the same lengths. When they are finished I resize mainWindow and get something like that:

    mediaPlayer.png

    err2.png

    So the last frames in QVideoWidget don't resize in a proper way.

    When I use only one player, the last frame resize in a proper way.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should add the Qt version as well as platform you are using.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • T Offline
        T Offline
        TomNow99
        wrote on last edited by TomNow99
        #3

        @SGaist
        OS: Windows 10
        Qt version: 5.12

        EDIT:

        I see that there is the same problem with one cam too. So there is problem with each numer of cams when they are finished.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved