Skip to content
New issue

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

Videos Do Not Stop Playing => After a Page Navigation &| When another Instance Is Closed that has a video playing. Multiple Instance are effective too #4553

Open
JohnDizzle opened this issue May 13, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@JohnDizzle
Copy link

JohnDizzle commented May 13, 2024

What happened?

Video's that are playing on the WebView2 will not stop after a

  1. TabViewContainer that has tabs opened or closed.
  2. Page Navigation => to another page.
  3. Multiple Instances of apps.
  4. Multiple windows too.

The only fix is a a WebView2.CoreWebView2.ExecuteScript => JavaScript function to query all "video" element and stop playing them. I have to do this countless times if I want my app Web Dive to take full advantages of videos, news, and learning material.

An impact on the resources of app are also effect hence all the calls to the WebView2

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

124.0.2478.97

SDK Version

windowsappsdk 1.4.231115000

Framework

WinUI3/WinAppSDK

Operating System

Windows 10

OS Version

10.0.2261

Repro steps

Just create a WebView2 on a tab container or open multiple instance of a app running webview2 with videos playing and navigate or close from that control.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

before 1.4.0

@JohnDizzle JohnDizzle added the bug Something isn't working label May 13, 2024
@JohnDizzle
Copy link
Author

It's be three weeks any resolution to the problem. I was hoping that there is a way to hibernate the webview2 if all possible like what happens in edge/chrome browsers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants