New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cordova-rtsp

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-rtsp

Cross-platform plugin for Cordova / PhoneGap to to easily play RTSP. Available for Android ONLY.

  • 0.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

Cordova RTSP Player

Cordova RTSP Video Player (Simple)

Installation

Latest stable version from npm:

$ cordova plugin add cordova-rtsp

Bleeding edge version from Github:

$ cordova plugin add https://github.com/disono/cordova-rtsp

Using the plugin

Call play with video URL (RTSP) as argument. The video player will close after the video is completed playing.

rtspVideo.play('rtsp://your-ip/file.mp4', [successCallback], [failureCallback]);

Stop and close the video player

rtspVideo.stop();

Example

Tested on Cordova-Android@7.0.0
Test Server for Videos try https://www.wowza.com/html/mobile.html

// play video only
rtspVideo.play('rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov', function () {
    console.log('Done Playing.');
}, function (e) {
    console.error('Error: ' + e);
});

// add text marquee
rtspVideo.playWithMarquee('rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov', "Your moving text(Horizontally).", 1, function () {
    console.log('Done Playing.');
}, function (e) {
    console.error('Error: ' + e);
});

Methods

rtspVideo.pause([success], [failure]);
rtspVideo.resume([success], [failure]);
rtspVideo.stop([success], [failure]);

License

Cordova RTSP Video Player (Simple) is licensed under the Apache License (ASL) license. For more information, see the LICENSE file in this repository.

Keywords

FAQs

Package last updated on 09 Jan 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc