a YouTube iframe API thinness wrapper
npm i youtube-thin-wrapper
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
- 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
© sugarshin