A directive for AngularJS for embedding the Kaltura video player.
-
Install with npm or bower
npm install ng-kaltura-player
orbower install ng-kaltura-player
-
Include in your project
<script src="bower_components/ng-kaltura-player/index.js"></script>
-
Inject the directive
angular.module('App', ['Kaltura.directives'])
<kaltura-player width="640px" height="320px" video="selectedVideo"></kaltura-player>
width
: The player width. You can specify px for pixels or % for percentageheight
: The player height. You can specify px for pixels or % for percentagevideo.pid
: Your Kaltura publisher ID.video.uiconfid
: Your Kaltura player ID.video.entryid
: The entry ID of the video to play.video.flahvars
: A Kaltura player flashvars object listing player configuration and plugins.