This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

uhdpro-layer-video-player

1.1.2 • Public • Published

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

/uhdpro-layer-video-player/

    Package Sidebar

    Install

    npm i uhdpro-layer-video-player

    Weekly Downloads

    10

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    18.9 kB

    Total Files

    9

    Last publish

    Collaborators

    • irvingswiftj
    • dpascu