1.0.7 • Published 8 years ago

videoprotector-video-player-angular v1.0.7

Weekly downloads
2
License
MIT
Repository
bitbucket
Last release
8 years ago

VideoProtector player angular

Installation

npm install --save videoprotector-video-player-angular

Requirements

Build

  • Node 4.x

Javascript requirements

  • angular 1.4+
  • ng-translate
  • locomote-video-player

Demo additional requirements

  • momentjs
  • jquery
  • bootstrap

Build from source

npm install
npm run build

You can now use the folder dist/. This folder contains all the requirements to run the player

Demo

In gulpfile.js you have change the proxy. You must have a valid login !

npm run serve

Then go to http://localhost:3000

Configuration

You can configure

  • LOCOMOTE_SWF_PATH
  • API_URL_CAMERAS
  • IMAGE_FOLDER

    In case of cross origin call, you have to set the basic auth user in the $http configuration

angular.module('demo', ['vp-video-player'])
    .value('LOCOMOTE_SWF_PATH', '/dist/ext-lib/Player.swf')
    .value('API_URL_CAMERAS', '/vms-api/v1/cameras')
    .value('IMAGE_FOLDER', '/dist/images/')
    .config(function($httpProvider){
        $httpProvider.defaults.headers.common['Authorization'] = 'Basic '+btoa('user@email.com:mySecurePassword');
    });
1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago