Web component wrapper for embedding SoundCloud tracks
Documentation | Live demo |
---|
Play a track by searching on SoundCloud
<sc-embed query="earth meets water"></sc-embed>
Play a track denoted by it's track ID on SoundCloud
<sc-embed href="149178712" width="50%" auto_play="true"></sc-embed>
bower install sc-embed [--production]
- Import Web Components' polyfill:
<script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.2.4/platform.js"></script>
- Import Custom Element:
<link rel="import" href="sc-embed.html">
- Start using it!
<sc-embed></sc-embed>