Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wujunling opened this issue Jun 1, 2019 · 26 comments
Labels

Comments

@wujunling
Copy link

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

@lordmen99
Copy link

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

@elesos
Copy link
Member

elesos commented Jun 12, 2019

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

@lordmen99
Copy link

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

@elesos
Copy link
Member

elesos commented Jun 12, 2019

@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" .

@lordmen99
Copy link

lordmen99 commented Jun 12, 2019

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
Copy link

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

@elesos
Copy link
Member

elesos commented Jun 12, 2019

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

@elesos
Copy link
Member

elesos commented Jun 12, 2019

@lordmen99 Which country are you from, sir?

@lordmen99
Copy link

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

@xass
Copy link

xass commented Jun 12, 2019

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

@lordmen99
Copy link

ok,thank you for support

@longqianxun
Copy link
Collaborator

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

@lordmen99
Copy link

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?

@longqianxun
Copy link
Collaborator

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

@lordmen99
Copy link

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.

@elesos elesos added the 作者已回复 replied label Jun 12, 2019
@longqianxun
Copy link
Collaborator

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

@lordmen99
Copy link

ok,let my try it

@lordmen99
Copy link

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

i try make videocall to web user id

@longqianxun
Copy link
Collaborator

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

@lordmen99
Copy link

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

still cant make video call from android to web and opposite

@lordmen99
Copy link

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
Copy link

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
Copy link

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
Copy link

i have success, setup it. please delete this thread

@elesos
Copy link
Member

elesos commented Jun 13, 2019

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?

@lordmen99
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants