Friday, 15 May 2015

html5 - 2 Audio Elements with different SRC plays same file -


I am using SHOUTcast to broadcast many radio streams. For some reason when two audio elements one page , They both play the same source despite being different.

Please check the screenshot:

===

> I do not understand this.

What was not really the difference, but I was able to get it

 
& lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Body & gt; & Lt; Audio control id = "1" & gt; & Lt; Source src = "http://live.soundcheck.xyz:8000/scur" type = "audio / mp3" & gt; Your browser does not support the audio element. & Lt; / Audio & gt; & Lt; Audio control id = "2" & gt; & Lt; Source src = "http://live.soundcheck.xyz:8000/r&b" type = "audio / mp3" & gt; Your browser does not support the audio element. & Lt; / Audio & gt; & Lt; / Body & gt; & Lt; / Html & gt;


No comments:

Post a Comment