Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Problem with videos in QMediaPlayer



  • 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.


  • Lifetime Qt Champion

    Hi,

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



  • @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.


Log in to reply