hr-angular-youtube

Youtube videos with custom configurable controls for Angular.js
1 person uses it
Author: 2634059?v=3 hrajchert

Angular Youtube

Youtube videos with custom configurable controls for Angular.js

Check out the demo and documentation here

Install

Download via bower or look for the files in the dist folder

Import it to your page

Enable it on your app

Use it

As you can see in the Basic Example, the youtube-player directive only requires a video-id.

Note that the id is a literal in this case, but you can bind the video to a scope variable

More examples

  • In the Controls Example you can see how to control the video with externals controls.
  • In the Overlay Example you can see how to create custom controls.
  • In the Marker Example you can see how to add different video markers to the video.

Features

  • Create custom controls or overlay items easily
  • Configure all your videos options via attributes or the factory configuration
  • Set width or height and adjust the oposite dimension with the aspect ratio of the video

TODO

Create a configure example that shows how to set the options of this page https://developers.google.com/youtube/player_parameters?playerVersion=HTML5 using either the provider or the directive attributes

comments powered by Disqus
This page was last updated over 2 years ago.