Cordova RTMP and RTSP Live Streaming Plugin
This cordova plugin is use to stream a live video to RTMP or RTSP server. Library based on rtmp-rtsp-stream-client-java
Install
Latest stable version from npm:
$ cordova plugin add cordova-rtsp-rtmp-stream
Bleeding edge version from Github:
$ cordova plugin add https://github.com/disono/cordova-rtmp-rtsp-stream
Using the plugin
// without commentvideoStreamer.streamRTSPAuth;videoStreamer.streamStop; // show commentvideoStreamer.streamRTSPAuth
Methods
videoStreamer.streamRTSP;videoStreamer.streamRTMP; videoStreamer.streamRTMPAuth;videoStreamer.streamRTSPAuth; // manually stop streamingvideoStreamer.streamStop; // comment list videoStreamer.commentListShow;videoStreamer.commentList; // record locally videoStreamer.videoRecord;
RTMP & RTSP action response
onConnectionSuccess: data
onConnectionFailed: void
onDisconnect: void
onAuthError: void
onAuthSuccess: data
onStartStream: data
onStopStream: data
onError: data
onCommentSend: data
onCommentItemSelected: data
Future Features
-
iOS support using HaishinKit.swift (Separate Plugin - RTMP Only) https://github.com/disono/cordova-rtmp-ios
-
Support for comment form and comment list (Android)
-
Comment form
Credits
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java
Library
License
Cordova RTMP and RTSP Streamer is licensed under the Apache License (ASL) license. For more information, see the LICENSE file in this repository.
Hire Us!
Do you like my work? I am a Senior Full Stack App Developer (Web, Desktop & Mobile App) & Syadmin, you can hire me, open a issue or contact me!
Additionally you could be interested in check or hire us through our Webmons Development Studio.
Do you still need more info about me or my work?
You could check my Linkedin profile and Twitter profile