We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When multiple windows are open, closing one doesn't seem to actually destroy the page or stop code execution. Here's a minimal working example:
page1.html
<html> <body> <video src="input.mp4" autoplay loop></video> </body> </html>
input.mp4 should be a video with sound.
input.mp4
page2.html
<html> <body> Page 2 </body> </html>
Start a web server to serve the pages: python3 -m http.server
python3 -m http.server
Python:
import webview window1 = webview.create_window('Page 1', url='http://localhost:8000/page1.html') window2 = webview.create_window('Page 2', url='http://localhost:8000/page2.html') webview.start()
Run the script and close Page 1 (the one with the video).
Expected behavior: the page is destroyed and the video stops playing. Actual behavior: the video continues to play (you can still hear the audio).
The text was updated successfully, but these errors were encountered:
This seems to be a bug in WKWebView, as video keeps playing even after explicitly setting webkit reference to None. https://stackoverflow.com/questions/27410413/wkwebview-embed-video-keeps-playing-sound-after-release
A rather ghetto workaround is to load empty html just before closing window. I have pushed it to master.
Sorry, something went wrong.
No branches or pull requests
Specification
Description
When multiple windows are open, closing one doesn't seem to actually destroy the page or stop code execution. Here's a minimal working example:
page1.html
input.mp4
should be a video with sound.page2.html
Start a web server to serve the pages:
python3 -m http.server
Python:
Run the script and close Page 1 (the one with the video).
Expected behavior: the page is destroyed and the video stops playing.
Actual behavior: the video continues to play (you can still hear the audio).
The text was updated successfully, but these errors were encountered: