Skip to content

disono/cordova-rtsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected]
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.

About

Cordova RTSP Player (Simple)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published