Skip to content

Javascript Library to be able to play videos from a Layer on the UHDPro Application

License

Notifications You must be signed in to change notification settings

volumenetwork/UHDProLayerVideoPlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UHDProLayerVideoPlayer

Javascript Library to be able to play videos from a Layer on the UHDPro Application. This is only designed to work with the Volume UHDPro Android Application version 1.5.0 and upwards.

Installation

yarn add uhdpro-layer-video-player

npm install uhdpro-layer-video-player

Usage


imnport VideoPlayer from 'uhdpro-layer-video-player';

const videoPlayer = new VideoPlayer({
  onVideoPlayCallbacks: [console.log], // optional
  onVideoEndCallbacks: [console.log], // optional
});


videoPlayer.startVideo('foo.mp4');
// start:foo.mp4
// { command: 'start', fileName: 'foo.mp4' } // onVideoPlayCallbacks

videoPlayer.endVideo();
// stop:foo.mp4
// { command: 'stop', fileName: null } // onVideoEndCallbacks

videoPlayer.endVideo();
// stop
// { command: 'stop', fileName: null } // onVideoEndCallbacks

Todo

  • Tests
  • Improve documentation

About

Javascript Library to be able to play videos from a Layer on the UHDPro Application

Resources

License

Stars

Watchers

Forks

Packages

No packages published