1.1.7 • Published 8 years ago

ng-videojs v1.1.7

Weekly downloads
13
License
-
Repository
-
Last release
8 years ago

ngVideoJs

Dependency

  • angularjs
  • ngSanitize
  • videojs

Install

bower install ng-videojs

Run Server

Install some Dependencies.

bower install

The server need support Range header.( http-server or nginx or apache ... )

Usage

html

<div ng-video-js style="width:100%;height:350px;" sources="sources"></div>

js

var app = angular.module( 'myApp',['ngVideoJs']);

app.controller('videoCtrl', function( $scope ){
  $scope.sources = [
      {src:"video/2-1-3_atom.mp4",type:"video/mp4"},
      {src:"video/2-1-3_atom.ogv",type:"video/ogg"}
  ];
});
angular.bootstrap( document, [app.name] );

doc

Build Production

gulp