Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.2.0
-
None
-
-
28138aa80a14279a72af2818f5bbbaa670283964 (qt/qtbase/dev) 3ae56570bf6272709a96c8740ff22eca2d8f83e9 (qt/qtbase/6.2) 4098a840d74d4a134bc6a7c71f12607d27308fa2 (qt/tqtc-qtbase/5.15)
Description
If the window containing the QVideoWidget is minimized and then restored then the image is no longer observed but the sound is heard.
#include <QApplication> #include <QAudioOutput> #include <QMediaPlayer> #include <QTimer> #include <QVideoWidget> int main(int argc, char *argv[]) { QApplication a(argc, argv); QVideoWidget w; w.resize(640, 480); w.show(); QMediaPlayer player; QAudioOutput audioOutput; player.setAudioOutput(&audioOutput); player.setVideoOutput(&w); player.setSource(QUrl("http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4")); player.play(); QTimer::singleShot(3000, &w, &QVideoWidget::showMinimized); QTimer::singleShot(6000, &w, &QVideoWidget::showNormal); return a.exec(); }