Created
October 18, 2014 18:22
-
-
Save ragklaat/d4ce39261792d914ceb4 to your computer and use it in GitHub Desktop.
Playing shoutcast stream with audiojs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Warning: A ";" character should be present at the end of the shoutcast link.
audiojs: https://github.com/kolber/audiojs