Moved from the original gist now that someone else is working on it. Thanks for the help, @jnull!
This code is a Javascript client for soundtrack.io, consuming a stream of track events and downloading and playing their attached sources. The goal is to have an <audio> tag which plays a continuous, uninterrupted stream of varying audio sources as signaled by a "room" on the server.
Moved from the original gist now that someone else is working on it. Thanks for the help, @jnull!
This code is a Javascript client for soundtrack.io, consuming a stream of
track
events and downloading and playing their attachedsources
. The goal is to have an<audio>
tag which plays a continuous, uninterrupted stream of varying audio sources as signaled by a "room" on the server.