Description
Is your feature request related to a problem? Please describe.
When media is played inside a WebView2 control of a WPF app (or probably any other frameworks), the webview process itself shows up on the volume mixer instead of showing up as the app itself. Not only that this is confusing for end-users when they're trying to adjust the volume of the media played in WebView2 (as they would be looking for the host app itself, not the webview process), this also creates an interesting problem where many video capturing apps fail to record audio of the individual app since the audio is actually played elsewhere. For example, the video capture feature of the Xbox Game Bar, which comes shipped with Windows 10+, supports capturing only the audio of the app being captured, however this fails to capture audio played inside WebView2 controls - you need to configure the game bar to capture all the sounds played by the PC which is less ideal. Same happens with many other similar applications such as Discord (which has a screen share feature w/ audio of individual apps) or OBS Studio with win-capture-audio plugin (The readme page of the repo briefly explains how they capture the audio).
Describe the solution you'd like and alternatives you've considered
Ideally, the audio played by WebView2 should appear as if the actual host process is playing the media. This would make it clear to the end users that the sound is coming from the host app, and hopefully fix issues with apps that attempt to capture audio coming from the app that's played inside the webview control.
I've received multiple feedbacks about the inability to capture any audio coming from the webview from users of my app using the aforementioned applications. I have no idea what the exact problem is, what kind of changes should be made to the codebase to make it happen or whether this is actually possible to fix - however, while this may not be considered a bug, given how normal end-users do not expect this kind of behaviour to happen it would be great if this could be corrected or at least some sort of workaround could be found to make this happen.
I found a related conversation on Twitter talking about this particular issue, however I couldn't find any issues that talk about this particular issue so I'm filing a new one.