Socket
Book a DemoInstallSign in
Socket

cordova-plugin-libvlc

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

cordova-plugin-libvlc

Cross-platform plugin for Cordova / PhoneGap to to easily stream play videos using libVLC. Available for Android ONLY for Now.

unpublished
latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

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 {
	event_name: '',
	data: null
}
// events names: onPlayVlc, onPauseVlc, onStopVlc, onVideoEnd, onDestroyVlc, onError, getPosition
// options: {autoPlay: true, hideControls: false}
libVLCPlayer.play('path-to-video', [options], [success], [failed]);
libVLCPlayer.stop([success], [failed]);

Methods

libVLCPlayer.pause([success], [failed]);
libVLCPlayer.playNext('path-to-next-video', [options], [success], [failed]);
libVLCPlayer.stop([success], [failed]);

// returns: {position, current_location (00:00), duration (00:00)}
libVLCPlayer.getPosition([success], [failed]);

// position must be 1 to 100 only
libVLCPlayer.seekPosition(1, [success], [failed]);

License

Cordova Plugin using libVLC is licensed under the Apache License (ASL) license. For more information, see the LICENSE file in this repository.

Keywords

cordova

FAQs

Package last updated on 05 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts