0

I use SoundIt to stream data on my network. Soundit exports the sound local using localhost:port I then use ngrok to make a tunnel to my localhosts port and i get an address http://xxx.ngrok.io

Is there a way to add to my site only the audio from ngrok's url?

I tried iframe ,object data , embed src But all these loads the page and makes clients browser using 50% of cpu. Is it possible to play only the audio from the url? Thank you

1 Answers1

0

You can use the audio tag

<audio controls>

  <source src="horse.mp3" type="audio/mpeg">

</audio>

Then you can use Javascript to start playing and pausing etc.

Naomi
  • 1,280
  • 6
  • 21
  • 40