-
Hello, Is there something I can call to adjust the volume levels of the hosted browser? I can see it in Windows Mixer listed as Cefsharp.BrowserSubprocess but I can't find how to control the volume of it. My only solution so far is use the windows API to adjust volume but when I search for processes with the name Cefsharp.BrowserSubprocess I of course end up with 6 references and I'm unsure which PID to use. Also a good chance other programs will be using Cefsharp.BrowserSubprocess and I don't want to interfere with their outputs. Best regards. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
There's no API for that currently. Only the option to mute/un-mute. A set volume API would need to be added See https://github.com/cefsharp/CefSharp/wiki/General-Usage for background.
You'll have your own copy of the exe within your applications path, so you can identify it via it's path. Alternatively you can self host the sub process (use your own app exe), see https://github.com/cefsharp/CefSharp/wiki/SelfHost-BrowserSubProcess |
Beta Was this translation helpful? Give feedback.
-
Perfect, thank you very much for the args hint that will be suitable :). Thank you so much! |
Beta Was this translation helpful? Give feedback.
There's no API for that currently. Only the option to mute/un-mute. A set volume API would need to be added
upstream
.See https://github.com/cefsharp/CefSharp/wiki/General-Usage for background.
Chromium
uses a separate sub process for audio by default, this should be identifiable with the args--type=utility --utility-sub-type=audio.mojom.AudioService
. Look in Task Manager at the command line args and …