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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.7.0
    • Fix Version/s: 5.14.0
    • Component/s: WebEngine
    • Labels:
      None
    • Environment:
      Linux, x64
    • Platform/s:
      Linux/X11

      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

            Assignee:
            juri.valdmann Jüri Valdmann
            Reporter:
            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