A platform agnostic wrapper around common audio web/video embeds. Suggest features in GitHub issues!
var soundcloudFrame = document.getElementById("soundcloud-frame"),
// Create a new instance, passing the element and medium (SoundCloud, YouTube, etc.)
soundcloudCassette = new Cassette(soundcloudFrame, 'soundcloud');
soundcloudCassette.on('ready', function(){
soundcloudCasstte.play();
});
- SoundCloud
- YouTube
- Soundcloud: SC.Widget.Events.READY
As described on box.
cassette.play();
cassette.pause();