scottschiller / SoundManager2

A JavaScript Sound API supporting MP3, MPEG4 and HTML5 audio + RTMP, providing reliable cross-browser/platform audio control in as little as 12 KB. BSD licensed.
http://www.schillmania.com/projects/soundmanager2/
Other
4.99k stars 768 forks source link

How to switch streams? #239

Open i1group opened 5 years ago

i1group commented 5 years ago

I have internet radiostation and 2 streams: 96k and 320k. How can I make soundmanager to switch stream (without recreating it)?

i1group commented 5 years ago

Hey developers, is anybody here?

scottschiller commented 5 years ago

@i1group Sorry I didn't get to this sooner. It is not possible to switch seamlessly between streams, because you are pointing a single HTML5 Audio() instance at a fixed URL.

To do something more dynamic with bitrate etc., I think you'll need something fancier than just the standard HTML5 audio API. This goes beyond the scope of SM2, and is not something I can advise on.