youtube-thin-wrapper
v1.0.1
Published
a YouTube iframe API thinness wrapper
Downloads
5
Readme
youtube-thin-wrapper
a YouTube iframe API thinness wrapper
Getting started
npm i youtube-thin-wrapper
Usage
import YouTube from 'youtube-thin-wrapper';
YouTube.autoLoadYouTubeAPI();
const youtube = new YouTube(id, opts);
youtube.create().then(player => {
player.playVideo();
// Can use other api methods and more...
});
Promise is required
Contributing
- Fork it!
- Create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -am 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request :D
License
© sugarshin