title: Webview html audio player in xamarin android
body: <p><a href="https://i.stack.imgur.com/Cl9EJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cl9EJ.png" alt="enter image description here" /></a></p>
  <p>How to get this audio player in webview,if we play a audio link in chrome or any browser,
  it gives something like above by default,Can we get exactly like in android webview.
  I tried to get html elements,but UI was looking very odd-</p>
  <p>Attempt 1-</p>
  <pre><code>var iframeURL = string.Format(&quot;&lt;video width=\&quot;{0}\&quot; height=\&quot;{1}\&quot; controls=\&quot;\&quot; autoplay=\&quot;\&quot; name=\&quot;media\&quot;&gt;&lt;source src=\&quot;{2}\&quot; type=\&quot;audio/mpeg\&quot;&gt;&lt;/video&gt;&quot;,
              width, height, embedUrl);
          string finalUrl = string.Format(&quot;&lt;html&gt;&lt;body&gt;{0}&lt;/body&gt;&lt;/html&gt;&quot;, iframeURL);
  </code></pre>
  <p>and this final url is my web source</p>
  <p>Attempt 2-</p>
  <pre><code>var iframeURL = string.Format(&quot;&lt;iframe style=\&quot;position:fixed; top: 50%; left: 50%;&quot; +
        &quot; width:&quot; + &quot; {1}px; height: {2}px; margin-left: {3}px; margin-top: {4}px;\&quot;&quot; + &quot; src =\&quot;{0}\&quot; frameborder=\&quot;0\&quot; &quot; + &quot;allow=\&quot;accelerometer;&quot; +
        &quot; autoplay; encrypted-media; gyroscope; picture-in-picture\&quot; allowfullscreen&gt;&lt;/iframe&gt;&quot;,
              embedUrl, width, height, -width / 2, -height / 2);
          string finalUrl = string.Format(&quot;&lt;html&gt;&lt;body&gt;{0}&lt;/body&gt;&lt;/html&gt;&quot;, iframeURL);
          return finalUrl;
  </code></pre>