MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2

Home Page:https://aka.ms/webview2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

JohnDizzle opened this issue · comments

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

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.