GithubHelp home page GithubHelp logo

ddssingsong / webrtc_server_node Goto Github PK

View Code? Open in Web Editor NEW
349.0 22.0 175.0 129 KB

videoCall VideoConference 视频通话 视频会议

Home Page: https://blog.csdn.net/u011077027/article/details/86225524

HTML 33.59% JavaScript 66.41%
webrtc videochat videoconference nginx-https-wss p2p

webrtc_server_node's Introduction

logo

Override

中文文档

A set of voice and video systems based on webrtc can be developed for single or multiple channels.

Signaling server based on webrtc, including browser-side display

Mainly developed with Android-side code

https://github.com/ddssingsong/webrtc_android

for branch :branch_meeting

Getting started

  1. The project relies on Node.js and npm
  2. Deploy turn and stun services : https://github.com/coturn/coturn.git

then

git clone https://github.com/ddssingsong/webrtc_server.git
cd webrtc_server/
npm install 

# start
node server.js  

#You can see the results below

# Server running at http://0.0.0.0:3000/

QQ

QQ Group Name :webrtc技术交流群

QQ Group :601332720(1群) 619413989 (2群) 707717173 (3群)

加入群一起探讨webrtc,分享好的开源项目

webrtc_server_node's People

Contributors

ddspwr avatar ddssingsong avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webrtc_server_node's Issues

problem with connecting to my local node js server

hi my friends
im getting nothing in node js server
im getting this log in android side and i know im connected to local server:
dds_SocketManager: socket is open!

but enter button doesnt work and cant loggin

Method not found in this server side Node code.

Hello All
can you please tell me , how to setup server side code & how to create connection with database & used in android side application

getUserList & getRoomList method not found in this node side server code.

Please help me
Thanks is advance!!

i can't run the server right by using node cmd

i run node server.js cmd
but i got the error.

D:\intelj\webrtc_server_node\node_modules\express\lib\router\index.js:464
      throw new TypeError('Router.use() requires a middleware function but got a ' + gettype(fn))
      ^

TypeError: Router.use() requires a middleware function but got a Null
    at Function.use (D:\intelj\webrtc_server_node\node_modules\express\lib\router\index.js:464:13)
    at Function.<anonymous> (D:\intelj\webrtc_server_node\node_modules\express\lib\application.js:220:21)
    at Array.forEach (<anonymous>)
    at Function.use (D:\intelj\webrtc_server_node\node_modules\express\lib\application.js:217:7)
    at Object.<anonymous> (D:\intelj\webrtc_server_node\server.js:9:5)
    at Module._compile (node:internal/modules/cjs/loader:1165:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
    at Module.load (node:internal/modules/cjs/loader:1043:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)

Node Server Running perfectly fine on IP = "52.167.201.188"; but webSocket.connect(); returns connectFlag=false & socket not opening in Android webrtc_android app

Server Running perfectly fine on IP = "52.167.201.188";

Tested on webrtc_android app:-
webSocket.connect(); returns connectFlag=false & socket not opening in webrtc_android app.So that login was unsuccessful after input the user name & tapping enter.

You can replace the IP like this in Android webrtc_android app.

`public class Urls {

//    private final static String IP = "192.168.2.111";
public final static String IP = "52.167.201.188";`

in Android webrtc_android app & Test.

Please guide.

Thanks in advance

fail to excute node server.js

I hava try twice, but it didn't work, I config my /etc/turnserver.conf based this github guidance, but then:
air@air-G3-3590:~/webRTC/webrtc_server$ node server.js
/home/air/webRTC/webrtc_server/node_modules/express/lib/router/index.js:458
throw new TypeError('Router.use() requires a middleware function but got a ' + gettype(fn))
^

TypeError: Router.use() requires a middleware function but got a Null
at Function.use (/home/air/webRTC/webrtc_server/node_modules/express/lib/router/index.js:458:13)
at Function. (/home/air/webRTC/webrtc_server/node_modules/express/lib/application.js:220:21)
at Array.forEach ()
at Function.use (/home/air/webRTC/webrtc_server/node_modules/express/lib/application.js:217:7)
at Object. (/home/air/webRTC/webrtc_server/server.js:9:5)
at Module._compile (internal/modules/cjs/loader.js:1147:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1167:10)
at Module.load (internal/modules/cjs/loader.js:996:32)
at Function.Module._load (internal/modules/cjs/loader.js:896:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
air@air-G3-3590:~/webRTC/webrtc_server$ node server.js

Your help will be appreciated!

TypeError: Router.use() requires a middleware function but got a Null

some errors come out when I have done proceeding the last procedure of the steps as your blog says:
`
[root@webrtc-server webrtc_server_node]# node server.js
/root/webrtc_server_node/node_modules/express/lib/router/index.js:458
throw new TypeError('Router.use() requires a middleware function but got a ' + gettype(fn))
^

TypeError: Router.use() requires a middleware function but got a Null
at Function.use (/root/webrtc_server_node/node_modules/express/lib/router/index.js:458:13)
at Function. (/root/webrtc_server_node/node_modules/express/lib/application.js:220:21)
at Array.forEach ()
at Function.use (/root/webrtc_server_node/node_modules/express/lib/application.js:217:7)
at Object. (/root/webrtc_server_node/server.js:9:5)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
`

服务器搭建问题

直接下载项目,使用http访问是无法调用摄像头的,看了那份文档那个代理https没怎么看懂,coturn穿透和转发服务器还有nginx代理这快不怎么会

Need source code of WebRTC server is being deployed on "42.192.40.58:5000"

Hi @ddssingsong ,

I tried deploying the webrtc server using this repository but it seems there are some missing caused the Android app could not connect to it while this same Android app can connect to above server ("42.192.40.58:5000"),
It'd be great if you can share with me the source codes of this server? (I can see Android app mentioned this server is written in Java Spring Boot instead of NodeJS),

Many thanks in advance,

搭建出现的问题

你好,我的只能显示本地的画面,不能显示对方的画面。而且火狐控制台报:ICE failed, your TURN server appears to be broken, see about:webrtc for more details和TypeError: Either sdpMid or sdpMLineIndex must be specified的错误,我的实在局域网中搭建的,没有设置外网ip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.