Embed videos using AngularJS directives
A small project I've started while learning angularJS. It has no real purpose other than educational.
$ bower install ng-videosharing-embed
After installing with Bower, add the following dependency to your module:
$ angular.module('myModule', ['videosharing-embed']);
- AngularJS v1.0.0+ is supported
- Youtube (iframe)
- Youtube no cookies (iframe)
- Dailymotion (iframe)
- Vimeo (iframe)
Generic
<a href="<videoUrl>" embed-video width=xxx height=xxx [options]></a>
Example
<a href="http://www.youtube.com/watch?v=LOKyEt36Kjc" embed-video controls=0></a>
Player's options are unique for each video source. For a list of available options, take a look at src/angular-embedplayer.js