title: how to enable audio/sound of web media in cefsharp offscreen(c#)?
body: <p>How do I enable audio/sound of web media in cefsharp offscreen?
  When using cefsharp winform, it works fine. audis is running.</p>
  
  <p>However, I must use it offscreen, so I have changed from winform to offscreen.
  Thereafter, a failure audio running. Media audio is played using webRTC.</p>
  
  <p>This is the CefSettings c# code.</p>
  
  <pre><code>CefSettings settings = new CefSettings();
  CefSharpSettings.LegacyJavascriptBindingEnabled = true; // Enable Register JS Object, -- RegisterAsyncJsObject, RegisterJsObject allow
  
  settings.CachePath = "cache";
  settings.CefCommandLineArgs.Add("enable-media-stream", "1"); //Enable WebRTC
  
  //NOTE: The following function will set all three params
  settings.CefCommandLineArgs.Add("disable-gpu", "1");
  settings.CefCommandLineArgs.Add("disable-gpu-compositing", "1");
  
  //NOTE: The Custom Scheme set up to embedded resources
  settings.RegisterScheme(new CefCustomScheme()
  {
     SchemeName = ResourceSchemeHandlerFactory.SchemeName,
     SchemeHandlerFactory = new ResourceSchemeHandlerFactory()
  });
  
  Cef.Initialize(settings);
  </code></pre>
  
  <p>This is browserSettings code.</p>
  
  <pre><code>BrowserSettings browserSettings = new BrowserSettings();
  browserSettings.FileAccessFromFileUrls = CefState.Enabled;
  browserSettings.UniversalAccessFromFileUrls = CefState.Enabled;
  browserSettings.WebSecurity = CefState.Disabled;
  
  nxBrowser = new ChromiumWebBrowser("resource://web/nxwebRTCAPI.html", browserSettings);
  nxBrowser.RegisterJsObject("callBackObj", this);
  </code></pre>
  
  <p>and this is the html source.</p>
  
  <pre><code>&lt;body&gt;
      &lt;script src="js/nxWebApi.js"&gt;&lt;/script&gt;
      &lt;script src="js/nxCallBack.js"&gt;&lt;/script&gt;
  
      &lt;audio id="audio_remote" autoplay="autoplay"&gt; &lt;/audio&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Please check my problems in the code.</p>