Quantcast
Channel: Qt DevNet forums: Qt WebKit
Viewing all articles
Browse latest Browse all 542

the sound don't stop when QWebView window closed (loaded with youtube video)

$
0
0
I load a youtube video with QWebView by the following code ,when the video is playing I close the QWebView window ,but I still can hear the voice from that video even when QWebView window is closed, so is there any way to stop the sound by code when QWebView window is closed ? from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.QtWebKit import *   import sys   app = QApplication(sys.argv)   view = QWebView()   view.resize(1230,760) view.settings().setAttribute(QWebSettings.PluginsEnabled, True)   view.load(QUrl("http://www.youtube.com/v/nKIu9yen5nc")) # # view.show()   sys.exit(app.exec_())

Viewing all articles
Browse latest Browse all 542

Trending Articles