Another Angular Youtube Player
Installation
npm i another-ng-youtube-player
Supported API
Currently supported attributes:
Inputs
- height (number) - optional height for the player
- width (number) - optional width for the player
- videoId (string) - will load the specified video by id
outputs
- ready (YT.Player) - implements youtube's player onReady event -> sends a the new created yt player instance
- change - a state change event channeling the youtube's player instance state event object
DEMO
Usage
First, import the YoutubePlayerModule to your module:
;;;;; platformBrowserDynamic.bootstrapModuleAppModule;
Next, use the youtube-player component. A Unique Id will be created for this player's instance:
;