starrtc-webim-demo icon indicating copy to clipboard operation
starrtc-webim-demo copied to clipboard

web端私有部署,电脑没有摄像头,怎么看android端的东西

Open wujunling opened this issue 5 years ago • 26 comments

web端私有部署,电脑是云,可以实现没有摄像头看到android端的东西吗

wujunling avatar Jun 01 '19 07:06 wujunling

are u success, setup for web app source? i try call videocall and voip from android into my web app source still not working. can u share ur setup

lordmen99 avatar Jun 12 '19 02:06 lordmen99

@wujunling 收到,下一版加上此功能。

elesos avatar Jun 12 '19 05:06 elesos

i mean, how setup web app source, so can connecting with android app. like in existing demo starrtc.

lordmen99 avatar Jun 12 '19 05:06 lordmen99

@lordmen99 put “starrtc-webim-demo(for im)” or "starrtc-web-demo(for audio and video chat etc.)" source code in your web server , eg.nginx or apache, then look at "https://github.com/starrtc/starrtc-server" to deploy the server app, then following the document "https://docs.starrtc.com/zh-cn/docs/web-10.html" .

elesos avatar Jun 12 '19 05:06 elesos

i have doing that, here demo web https://www.indofreelancer.id/rtc/ i can get userid, but when i see in wss like this

:

http://prntscr.com/o0qz7z

lordmen99 avatar Jun 12 '19 05:06 lordmen99

for between android app i have success, build it. then i want try between android app and web,but still stuck.

lordmen99 avatar Jun 12 '19 05:06 lordmen99

@lordmen99 make sure to upgrade your chrome to newest version.

elesos avatar Jun 12 '19 10:06 elesos

@lordmen99 Which country are you from, sir?

elesos avatar Jun 12 '19 10:06 elesos

i have use latest chrome, from indonesia. I still cant make working for web app, u have check my demo web?

lordmen99 avatar Jun 12 '19 10:06 lordmen99

@lordmen99, Please wait for our weekend update, we will fix the problem.

xass avatar Jun 12 '19 10:06 xass

ok,thank you for support

lordmen99 avatar Jun 12 '19 10:06 lordmen99

ok,thank you for support

Hi,our web demo support both public deployment and private deployment. I 'v seen your web demo, it's seem like you change the code to make it be private mode, but I can not find your changes in the source. 45.77.157.2, do you know this ip address? If you do not change the code, public mode default, it won't be connect that ip, please check if you make the change. If you want to use public, do not change any code If you want to use private, you should get server program in https://github.com/starrtc/starrtc-server, for web support ,make sure you launch the program under the 'web' folder and shutting the firewall down.After that use the code in index.js like this, replace 10.90.7.70 with your server ip 1 Last step , web demo must use https, we provide Self-Signed Certificate under the server 'web' folder, after launch the server, before you use the web demo with private, you must access the url https://your server ip:29991 to 29995 in chrome ,that five ports are used for trust the Certificate, if you have the official certificate, just replace ours and forget the last step. Finally, you can use private web demo, web and android can connect between same private config. Good luck

longqianxun avatar Jun 12 '19 11:06 longqianxun

yes, i still use existing config in web app demo. i will try that parameter. just copy and paste inside or where must replace it?

lordmen99 avatar Jun 12 '19 11:06 lordmen99

yes, i still use existing config in web app demo. i will try that parameter. just copy and paste inside or where must replace it?

replace the ip with yours, that's private, for just test, you can use public mode

longqianxun avatar Jun 12 '19 12:06 longqianxun

45.77.157.2, its my server with already installed starrtc-server. the code layout in javascript like this, not neat

http://prntscr.com/o0vl4c

where i must put code for private mode in that javascript.

lordmen99 avatar Jun 12 '19 12:06 lordmen99

45.77.157.2, its my server with already installed starrtc-server. the code layout in javascript like this, not neat

http://prntscr.com/o0vl4c

where i must put code for private mode in that javascript. You should call the api in index.js like this 1 See the code in index.js, uncomment that code, and replace 10.90.7.70 with yours

longqianxun avatar Jun 12 '19 12:06 longqianxun

ok,let my try it

lordmen99 avatar Jun 12 '19 12:06 lordmen99

i get this http://prntscr.com/o0w2o1

i try make videocall to web user id

lordmen99 avatar Jun 12 '19 12:06 lordmen99

i get this http://prntscr.com/o0w2o1

i try make videocall to web user id

That‘s mean your server are not ready, please check you launch the server under the ‘web’ folder like 2 after launch server ,run netstat -aptn | grep Serv check the ports are listening

longqianxun avatar Jun 12 '19 12:06 longqianxun

this my port status, http://prntscr.com/o0wdbj

still cant make video call from android to web and opposite

lordmen99 avatar Jun 12 '19 12:06 lordmen99

if i use android app with 2 phone, its working for videocall,voip,live etc. then i see if try video call its use port 10086. so, if i want try between web to android and android to web must same port or how? confuse :D

lordmen99 avatar Jun 12 '19 12:06 lordmen99

and what mean this = please check you launch the server under the ‘web’ folder like cause first time after install server, i run start.sh. its correct?

lordmen99 avatar Jun 12 '19 13:06 lordmen99

i have relaunch from web folder, then now get thiss error = star_rtc_lib.min.js:1 WebSocket connection to 'wss://45.77.157.2:10087/' failed: Error in connection establishment: net::ERR_CERT_COMMON_NAME_INVALID

lordmen99 avatar Jun 12 '19 16:06 lordmen99

i have success, setup it. please delete this thread

lordmen99 avatar Jun 12 '19 23:06 lordmen99

i have success, setup it. please delete this thread

could you please summarize the deploy procedure to help other people who have the same problem?

elesos avatar Jun 13 '19 01:06 elesos

sure,but i want to know this server how many user can handle in concurent when 1 use broadcasting streaming? and if we use our server ideal about specification for server least need ram , cpu etc. how about that?

lordmen99 avatar Jun 13 '19 01:06 lordmen99