WebView2 for Xojo upgrades
The WebView2ControlMBS control allows any Windows application to use the Chrome based Edge browser as a control within your application. Enjoy all the latest JavaScript, HTML and CSS features and replace use of Internet Explorer or Chromium.
For 24.5 we have a few new things:
Browser Extensions
We add a AreBrowserExtensionsEnabled property. You can enable it in the IDE to allow extensions or set it to true in the Configure event.
Then you can call AddBrowserExtension() method to load an extension. Pass the path to where the extension is on disk. Then later the AddBrowserExtensionCompleted event lets you know that the extension was loaded or provides an error code on why not.
Mute audio
Since browsers now love to show a mute widget in the tab bar for sessions, you can do the same in your Xojo application.
You may run a timer and check periodically with the new IsDocumentPlayingAudio for whether something is playing. Then you can show a speaker symbol in the tab bar or enable a button.
If the user wants to mute, you can set the IsMuted property to true. Or later to false to unmute.
Please do not hesitate to contact us with questions.