MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Autoplay won't turn off
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
is there a way to completely block audio and video on any page? For example, YouTube automatically launches its videos all the time. Setting "--autoplay-policy=no-user-gesture-required" doesn't help. When viewing requests in WebResourceRequested by Media filter, there are no requests. Video chunks are loaded via XmlHttpRequest. But discarding everything XmlHttpRequest will not be correct. Is there a way within WebView2 itself to disable these autoplays?
In addition, the html5 video tag is present on the YouTube page, and webview2 is able to detect audio from the page and turn it off using IsMuted. But WebView2 video ignores.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the YouTube autoplay behavior in WebView2 while comparing the autoplay-policy setting, WebResourceRequested media filtering, XMLHttpRequest loading, and IsMuted. The issue names no repository files or tests; done would be identifying a supported WebView2 control for autoplay or documenting that no such control is available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, javascript
- Domain
- api, desktop
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100