Home > Blockchain >  facing problem in adding online audio link in html.It's not playing in webpage
facing problem in adding online audio link in html.It's not playing in webpage

Time:10-29

I have written this:

<audio controls="" src="https://soundcloud.com/nationalanthems/amar-shonar-bangla?utm_source=clipboard&utm_medium=text&utm_campaign=social_sharing" type="audio/mp3"id="myAudio">
            </audio>

solving this problem please

CodePudding user response:

The source (src="...") has to be an audio file, not a link to a page.

CodePudding user response:

the link is invalid it is pointing to the web page it is not pointing to the audio src

CodePudding user response:

P.S. Just click on the "share" button on the Soundcloud page to get the code to embed the song in a web page:

<iframe width="100%" height="166" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https://api.soundcloud.com/tracks/18497351&color=#ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true"></iframe><div style="font-size: 10px; color: #cccccc;line-break: anywhere;word-break: normal;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; font-family: Interstate,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Garuda,Verdana,Tahoma,sans-serif;font-weight: 100;"><a href="https://soundcloud.com/nationalanthems" title="National Anthems" target="_blank" style="color: #cccccc; text-decoration: none;">National Anthems</a> · <a href="https://soundcloud.com/nationalanthems/amar-shonar-bangla" title="Bangladesh: Amar Shonar Bangla" target="_blank" style="color: #cccccc; text-decoration: none;">Bangladesh: Amar Shonar Bangla</a></div>
  •  Tags:  
  • html
  • Related