Embed videos using AngularJS directives
A small project I've started while learning angularJS. It has no real purpose other than educational.
- AngularJS v1.0.0+ is currently required.
- Youtube (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>
Options are configured for each player, and allowed options are filtered using a whitelist.
Note: camelCase options must be changed to dash-format