MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Autoplay won't turn off

Open
#2,159 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request tracked
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.

AB#38187676

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.