How can I enable share audio by default always while screensharing for edgewebview2

Shashank Shetty 0 Reputation points
2024-05-22T08:35:17.9833333+00:00

chrome when i run it with --auto-select-desktop-capture-source="Entire Screen" does audio share as well but edgewebview2 doesn't why?, In chrome I can turn it off by --screen-capture-audio-default-unchecked, is this flag always enabled in edgewebview2 , i have a webapp which does screensharing running in webview. Any help regarding this is appreciated

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,204 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,941 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,929 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,612 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yu Zhou-MSFT 12,541 Reputation points Microsoft Vendor
    2024-05-23T07:31:03.5966667+00:00

    Hi @Shashank Shetty

    Do you use the latest version of WebView2 and set the flags in local device environment or programmatically? If yes and the flag still doesn't work, there might be an issue with the compatibility of the flag and WebView2, I suggest that you can open a new issue on GitHub WebView2Feedback.

    Thanks for your understanding!


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Regards,

    Yu Zhou