A directive that takes in a vimeo or a youtube url and converts it into an embedded friendly url and the displays it.
MIT License
A directive that takes in a vimeo or a youtube url and converts it into an embedded friendly url and the displays it.
###Contributing angular-video is a free and open source library, and we appreciate any help you're willing to give.
Download the code, and include the anguvideo.js file in your page. Then add the angvideo module to your Angular App file, e.g.
var app = angular.module('app', ["anguvideo"]);
<anguvideo ng-model="modelContainingURL" width="100%" height="200"></anguvideo>
<div anguvideo ng-model="modelContainingURL" width="250" height="250"></div>
Attribute | Description | Required | Example |
---|---|---|---|
ngModel | An angular model containing the URL | Yes | $scope.URL |
width | The desired width of the video | No | 50% or 500px |
height | The desired height of the video | No | 400 |
hide-controls | Set to hide YouTube player controls | No | true |
auto-play | Set to autoplay video on web | No | true |
show-info | Set false to hide YouTube title | No | false |
rel | Set false to not show related videos | No | false |
modest-branding | Set to hide YouTube brand on controls bar | No | true |
The anguvideo project is covered by the MIT License.
The MIT License (MIT)
Copyright (c) 2014 Mariandi Stylianou, and contributors to the angular-video project.