anguVideo

This is a directive that takes in a vimeo or a youtube url and converts it into an embedded friendly url and the displays it.

Note: If an embedded friendly url is provided then the directive will simply gets the trusted resource url using angular's trustAsResourceUrl() functionality and then display the video

Url formats:

Attributes

width: width="[number]%" or width="[number]" - for px

height: height="[number]"



YouTube Examples


{{youTubeURL}}


{{youTubeShareURL}}


{{youTubeEmbededURL}}

Vimeo Examples


{{vimeoURL}}