cordova-plugin-rtsp-vlc-unmanned

Cordova RTSP player

Usage no npm install needed!

<script type="module">
  import cordovaPluginRtspVlcUnmanned from 'https://cdn.skypack.dev/cordova-plugin-rtsp-vlc-unmanned';
</script>

README

npm version

PhoneGap/Cordova RTSP player using VLC

Installation

cordova plugin add cordova-plugin-rtsp-vlc-unmanned

Supported Platforms

  • Android
  • iOS

Usage

window.VideoPlayerVLC.play(
     url,
     (done: boolean) => { },
     (error: string) => { }
);
window.VideoPlayerVLC.stop(
     (done: boolean) => { },
     (error: string) => { }
);

Example:

window.VideoPlayerVLC.play(
     "rtsp://192.168.42.1/live.mov",
     done => {},
     error => {}
);

References:

https://github.com/disono/libVLC-Player by @disono

https://github.com/pengyanb/com.pengyanb.vlcstreamplayer by @pengyanb