1.0.0 • Published 9 years ago
common-media v1.0.0
common-media
common interface for YouTube, SoundCloud, and Vimeo players
Installation
$ npm install common-media
Usage
var Media = require('common-media');
var embed = new Media('http://www.youtube.com/watch?v=iEe_eraFWWs', 'container-id');
embed.play();
embed.on('end', function() {
embed.load('https://soundcloud.com/hucci/hitta');
});
License
MIT
1.0.0
9 years ago