Audio player not working

could anyone possible please tell me
why my audio player isn’t playing my stream
my stream is icecast

<div align="right"><div style="position:relative; height:60px;">
  <audio src="http://boogie.vside-radio.com:8406/stream"
  _=1" controls="true" class="audio-1">
  </audio>

Hi @strawbs
Just to clarify, when you say “my audio player isn’t playing my stream…”, are you wanting it to play automatically when page comes up or do you mean it is not playing on your end after clicking the play button?

Either way, with the code snippet you attached you are missing 2 closing tags, which when inputted correctly, your audio will play.
Hope this helps.

Thanks,
Hal_Jordan

thanks what tags am i missing and where?
also i mean it won’t play on my end

I assume your trying to learn programming and so I left it vague intentionally so you could figure that out.

I don’t mean this to sound ugly or anything.

My first message basically tells you exactly what is wrong, while still leaving you room to figure it out by filling in the blanks so to speak or in this case end the only 2 tags that are not ended in your code snippet.

is that rite

<div align="right"><div style="position:relative; height:60px;">
<audio></div>
  <audio src="http://boogie.vside-radio.com:8406/stream"
  _=1" controls="true" class="audio-1">
  </audio>

No.
It is a div but not just the one and the one you did close, you put the closing tag in the wrong place.
Think of a div like a container or wrapper, which is wrapping around the audio player.

ahh think i’v got it the goes after ?

<div>
<audio src="http://boogie.vside-radio.com:8406/stream"
  _=1" controls="true" class="audio-1">
  </audio>
</div>

Check out this freeCodeCamp article:
=> HTML Div – What is a Div Tag and How to Style it with CSS

[quote=“strawbs, post:7, topic:572248”]

<div>
<audio src="http://boogie.vside-radio.com:8406/stream"
  _=1" controls="true" class="audio-1">
  </audio>
</div>

[/rite or wrong?]

Depends what your trying to accomplish, as you removed 1 of your div’s you had, but yes after closing just the 1 div your player will work.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.