Skip to content

Instantly share code, notes, and snippets.

@ragklaat
Created October 18, 2014 18:22
Show Gist options
  • Save ragklaat/d4ce39261792d914ceb4 to your computer and use it in GitHub Desktop.
Save ragklaat/d4ce39261792d914ceb4 to your computer and use it in GitHub Desktop.
Playing shoutcast stream with audiojs
<html>
<head>
<script src="lib/audiojs/audio.min.js" type="text/javascript"></script>
<script>
audiojs.events.ready(function() {
var as = audiojs.createAll();
});
</script>
</head>
<body>
<audio src="http://shoutcastserver.ss:1234/;" autoplay="autoplay" preload="auto" />
</body>
</html>
@ragklaat
Copy link
Author

Warning: A ";" character should be present at the end of the shoutcast link.

audiojs: https://github.com/kolber/audiojs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment