Reputation: 46479
At the moment I am using url to generate src=""
for an audio tag which looks like:
<audio src="http://api.soundcloud.com/tracks/81827374/stream?client_id=my_id" controls>
</audio>
However it seem's that such file format (mp3) is not supported in firefox and opera browsers, therefore I need to provide alternative formats, which I assume would look like:
<audio preload="auto" controls>
<source src="some link for .wav file" />
<source src="some link for .mp3 file" />
<source src="some link for .ogg file" />
</audio>
Is this achievable via soundcloud api?
Upvotes: 0
Views: 786
Reputation: 13896
Unfortunately we don't offer encodings other than MP3 at the moment.
In order to play audio in browsers that don't support MP3 (Firefox will probably get this support some time soon) you'd need to use a library such as Audio5JS or SoundManager2.
Upvotes: 2