Skip to content
Web component wrapper for embedding SoundCloud tracks
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.bowerrc
.gitignore
LICENSE
README.md
bower.json
demo.html
index.html
sc-embed.html

README.md

<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>
You can’t perform that action at this time.