disono / cordova-rtmp-rtsp-stream

Cordova RTMP and RTSP Live Streaming Plugin
Apache License 2.0
41 stars 23 forks source link

how to use in PORTRAIT mode? (now force landscape) #15

Open nyeineagle opened 5 years ago

nyeineagle commented 5 years ago

Screenshot_2019-09-06-14-33-15-110_com embercordova rtmpTest Screenshot_2019-09-06-14-32-13-663_com embercordova rtmpTest

krishna022 commented 5 years ago

Hi nyeineagle, I am new in cordova. I am trying to create a video broadcasting app using RTMP. I am trying to use this plugin but getting fail again and again. Can you please assist me what to write in html and js ?

I am using. in html Button with id="rtmp"

in js (index.js) document.getElementById("rtmp").addEventListener("click", rtmp);

function rtmp() {
videoStreamer.streamRTMP('rtmp://publish-01-01.wmncdn.net/live/khabar', [success], [failed]); }

Please Help me.

nyeineagle commented 5 years ago

Hi,

Success and failed need to be functions like this: function rtmp() { videoStreamer.streamRTMP('rtmp://publish-01-01.wmncdn.net/live/khabar',function(...) { ....} , function (e) {console.log(e) }); }

nyeineagle commented 5 years ago

hi krishna022, How do you receive the data in backend, Can you help me? Tz

krishna022 commented 5 years ago

Hi, I am using the CDN server of 3rd party to collect the RTMP data and playback. can visit the CDN provider https://www.webmobinetworks.com/


Success and failed need to be functions like this: function rtmp() { videoStreamer.streamRTMP('rtmp://publish-01-01.wmncdn.net/live/khabar',function(...) { ....} , function (e) {console.log(e) }); }

I am trying to use this but it is not opening my camera. By button click nothing is happening. Can you plz share some reference code for html and js ?

Thank you.