videoprotector-video-player-angular
v1.0.7
Published
Video player for angular using video protector backend
Readme
VideoProtector player angular
Installation
npm install --save videoprotector-video-player-angularRequirements
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 buildYou 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 serveThen 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('[email protected]:mySecurePassword');
});