2
<html>
    <body>
         <audio src="PinkNoise.ogg" controls autoplay loop></audio>
    </body>
</html>

I want to specify the src to this file with a different port, like such:

<audio src=":8009/PinkNoise.ogg" controls autoplay loop></audio>

Unfortunately, that doesn't work, as it resolves to: <the url>/:8009/PinkNoise.ogg

I'm using a javascript hack to just get the window location and then tacking on a different port. Is there any better way to do this?

Name McChange
  • 2,750
  • 5
  • 27
  • 46

0 Answers0