1.1.2 • Published 6 years ago

uhdpro-layer-video-player v1.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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
1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago