cordova-plugin-libVLC
Cordova Plugin using libVLC
Tutorial to compile from source: https://wiki.videolan.org/LibVLC
Install
Latest stable version from npm:
$ cordova plugin add cordova-plugin-libvlc
Bleeding edge version from Github:
$ cordova plugin add https://github.com/disono/cordova-plugin-libVLC
Using the plugin
// returns // events names: onPlayVlc, onPauseVlc, onStopVlc, onVideoEnd, onDestroyVlc, onError, getPosition// options: {autoPlay: true, hideControls: false}libVLCPlayer.play;libVLCPlayer.stop;
Methods
libVLCPlayer.pause;libVLCPlayer.playNext;libVLCPlayer.stop; // returns: {position, current_location , duration }libVLCPlayer.getPosition; // position must be 1 to 100 onlylibVLCPlayer.seekPosition;
License
Cordova Plugin using libVLC is licensed under the Apache License (ASL) license. For more information, see the LICENSE file in this repository.