ng-videojs

1.1.7 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i ng-videojs

Weekly Downloads

0

Version

1.1.7

License

none

Last publish

Collaborators

  • sparrowjang