ytplayer
v1.0.0
Published
Wrapper for YouTube iframe API.
Downloads
9
Readme
YTPlayer
Wrapper for YouTube iframe API
Installation
$ npm install ytplayer --save
Usage
<div id="yt-player"></div>
<script src="path/to/ytplayer.js"></script>
var player = new YTPlayer({
el : 'yt-player',
videoId: 'JWSRqWpWPzE',
vars : {
rel: 0
}
});
player.on('ready', function () {
player.play()
});