I'm writing a media player for my android application using angularjs, I get the songs from web API, address: http://10.96.254.34:8885/api/apimusic/download?songId=X, with "X" is the id of the song I want to stream. You can try add "1", "2" or "3" at "X" to listen to the song.
My problem is, when I use write the code for the audio player:
<div class="item item-thumbnail-left">
<h2>{{song.SongName}}</h2>
<p>{{song.Singer}}</p>
<audio id="audio" autoplay="true" preload="auto" tabindex="0" controls="" type="audio/mpeg">
<source type="audio/mpeg" src="http://10.96.254.34:8885/api/apimusic/download?songId=1">
Sorry, your browser does not support HTML5 audio.
</audio>
</div>
The song can be fetched flawlessly, but when I change it to: http://10.96.254.34:8885/api/apimusic/download?songId={{song.SongId}}, It doesn't work
Any ideas to help me out of this? Please help :(