Since 1.8.1 DotNetBrowser provides API that allows muting/unmuting audio on the loaded web page and checking whether audio is muted or not. The Browser.AudioMuted property allows to mute the audio and check if the audio is already muted.

To mute audio, set this property to true:

browser.AudioMuted = true;

The value of this property can be used to check whether audio is muted:

var muted = browser.AudioMuted;

It is also possible to determine whether the browser is currently playing audio. The Browser.AudioMuted property is set to true in this case.

The complete example that demonstrates how to mute audio on the opened web page and check whether audio is muted or not is given below.


using DotNetBrowser;
using DotNetBrowser.WPF;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
namespace MuteAudioSample
    class Program
       public class WindowMain : Window
           private Button muteButton;
           private WPFBrowserView browserView;
           private Grid layout;
           public WindowMain()
               layout = new Grid();
               ColumnDefinition gridCol1 = new ColumnDefinition();
               RowDefinition gridRow1 = new RowDefinition();
               gridRow1.Height = new GridLength(45);
               RowDefinition gridRow2 = new RowDefinition();
               Content = layout;
               browserView = new WPFBrowserView(BrowserFactory.Create());
               Grid.SetRow(browserView, 1);
               Grid.SetColumn(browserView, 0);
               muteButton = new Button();
               UpdateButtonText(muteButton, browserView.Browser);
               muteButton.Height = 23;
               muteButton.Click += muteButton_Click;
               Grid.SetRow(muteButton, 0);
               Grid.SetColumn(muteButton, 0);
               Width = 1024;
               Height = 768;
               this.Loaded += WindowMain_Loaded;
           private void muteButton_Click(object sender, RoutedEventArgs e)
               browserView.Browser.AudioMuted = !browserView.Browser.AudioMuted;
               UpdateButtonText(muteButton, browserView.Browser);
           void WindowMain_Loaded(object sender, RoutedEventArgs e)
           private static void UpdateButtonText(Button button, Browser browser)
               Application.Current.Dispatcher.BeginInvoke((Action) (() => {

               button.Content = browser.AudioMuted ? "Unmute Audio" : "Mute Audio";
           public static void Main()
               Application app = new Application();
               WindowMain wnd = new WindowMain();
               var browser = wnd.browserView.Browser;