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

Videos keep playing even after calling QWebEngineView::close()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.14.0
    • 5.7.0
    • WebEngine
    • None
    • Linux, x64
    • Linux/X11
    • a69029cf9fcfd0c1fcdaafe5cbcbff2d5dd6b5c5 (qt/qtwebengine/5.15.4)

    Description

      If a video is started in a QWebEnginePage instance and sometime later it si closed, the audio keeps playing, until the process is quit. Minimal script to reproduce (this is in PyQt 5.7 should be trivial to port to C++).

      from PyQt5.Qt import (
          QApplication, QWebEnginePage, QWebEngineProfile, QWebEngineView, QUrl, QTimer
      )
      
      app = QApplication([])
      w2 = QWebEngineView()
      w2.load(QUrl('https://google.com'))
      w2.show()
      w = QWebEngineView()
      w.load(QUrl('https://www.youtube.com/watch?v=al2DFQEZl4M'))
      w.show()
      
      app.exec_()
      

      Run the script, it will create two windows, one of which is playing a youtube video. After the video starts, close that window. The audio keeps on playing even though the window is closed.

      Attachments

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

        Activity

          People

            juri.valdmann Jüri Valdmann (Inactive)
            kovidgoyal Kovid Goyal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes