title: Failed to get access to local media on android webview
body: <p>I am trying to make a webview that contains a webRTC, but when I try to give join to access a room, I get the following error: <strong><em>"Failed to get access to local media. Error name was NotAllowedError. Countinuing without sendig to stream"</em></strong>. Thanks in advance.</p>
  
  <p><a href="https://i.stack.imgur.com/UYGCw.jpg" rel="nofollow noreferrer">Here is a screenshot</a></p>
  
  <pre><code>@SuppressLint("SetJavaScriptEnable")
  private void initWebView(){
      webView = findViewById(R.id.WebViewID);
      webView.setWebChromeClient(new WebChromeClient(){
  
          @Nullable
          @Override
          public Bitmap getDefaultVideoPoster() {
              return Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888);
          }
      });
  
      WebSettings webSettings = webView.getSettings();
      webSettings.setJavaScriptEnabled(true);
      webSettings.setUseWideViewPort(true);
      webSettings.setLoadWithOverviewMode(true);
      webSettings.setCacheMode(WebSettings.LOAD_NO_CACHE);
      webSettings.setMediaPlaybackRequiresUserGesture(false);
      webView.loadUrl(url);
  }
  
  
  &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
  &lt;uses-permission android:name="android.permission.CAMERA"/&gt;
  &lt;uses-permission android:name="android.permission.RECORD_AUDIO"/&gt;
  &lt;uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/&gt;
  </code></pre>