Use YouTube iframe API with Angular2 and Typescript
<p>How do I construct a YT.Player object and access its properties <code>getCurrentTime()</code> within an Angular2 Component using Typescript?</p>

<p>I have tried installing several YouTube wrappers via npm, (eg: <a href="https://github.com/gajus/youtube-player" rel="noreferrer">youtube-player</a>), and added <a href="https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/youtube/youtube.d.ts" rel="noreferrer">Type definitions for YouTube</a>, with a reference in app.ts:</p>

<p><code>/// &lt;reference path="../../typings/main/ambient/youtube/index.d.ts" /&gt;</code></p>

<p>but I still get an error when importing, eg: <code>import YouTubePlayer from 'youtube-player';</code> returns <code>Cannot find module 'youtube-player'.</code></p>

<p>I've forked the Angular2 <a href="https://github.com/preboot/angular2-webpack" rel="noreferrer">preboot/Webpack</a> starter, my source repo is <a href="https://github.com/edanweis/lifx-video-test" rel="noreferrer">here</a></p>