sc-embed

Web component wrapper for embedding SoundCloud tracks


Keywords
web-components, soundcloud, music
License
MIT
Install
bower install sc-embed

Documentation

<sc-embed>

Web component wrapper for embedding SoundCloud tracks

Documentation Live demo

Examples

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>

Install

Method 1 - bower

bower install sc-embed [--production]

Method 2 - Polymer

  1. Import Web Components' polyfill:
<script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.2.4/platform.js"></script>
  1. Import Custom Element:
<link rel="import" href="sc-embed.html">
  1. Start using it!
<sc-embed></sc-embed>