title: How can I play audio to a Chromecast when casting a URL to it?
body: <p>I cast URLs to my Chromecast to display web pages on it, and this generally works fine, the pages run scripts, css and images.</p>
  
  <p>However I've not been able to play audio in those web pages. When I cast something like YouTube to the Chromecast that audio does play as expected.</p>
  
  <p>I've tried playing audio using:</p>
  
  <pre><code>new Audio('/audioFile.mp3').play();
  </code></pre>
  
  <p>and </p>
  
  <pre><code>&lt;audio id="audio" src="/audioFile.mp3" /&gt;
  &lt;script&gt;document.getElementById('audio').play()&lt;/script&gt;
  </code></pre>
  
  <p>Both work in my desktop browser, but not when casting a URL to the Chromecast.</p>
  
  <p>Is there a supported method of playing audio on the Chromecast's browser?</p>
  
  <p>Note: <strong>I'm not streaming a browser tab to the Chromecast, I'm directly casting the URL and it is rendering on the Chromecast device and not on any other devices</strong></p>