disono / cordova-rtmp-rtsp-stream

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

Camera stuck recording/streaming in portrait #14

Open darthme opened 5 years ago

darthme commented 5 years ago

Hi,

I am new to ionic cordova and started with a simple android app that, with the help of the cordova camera and rtsp/rtmp plugin, pushes a stream to my server. My problem is the camera is locked to portrait mode, even when i change camera positions it may look like its landscape but when viewing recording or stream, its in portrait.

Unfortunately I am not sure which files I need to add or edit in order to get the camera to be set to landscape.

krishna022 commented 5 years ago

Hi darthme, 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.