Code Monkey home page Code Monkey logo

duofei_signaling-server's Introduction

duofei_signaling-server 一个基于webRtc的视频聊天程序demo,包含前后端代码

1.一对一聊天

启动信令服务器,修改前端代码中的websockets地址(onetoone.js文件中)

  1. 客户A访问地址 ../onetoone.html?token=nobodyknowme&name=clientA&remote=clientB,点击start
  2. 客户B访问地址 ../onetoone.html?token=nobodyknowme&name=clientB&remote=clientA,点击start后,点击Call

2.多人视频聊天

启动信令服务器,修改前端代码中的websockets地址(moretomore.js文件中),部署启动前端代码

  1. 客户端A 访问地址 ../moretomore.html?name=clientA&roomId=001, 点击start
  2. 客户端B 访问地址 ../moretomore.html?name=clientB&roomId=001,点击start
  3. 客户端C 访问地址 ../moretomore.html?name=clientC&roomId=001,点击start
  4. 客户端D 访问地址 ../moretomore.html?name=clientD&roomId=001,点击start, 并点击Call。
  5. 整个完整的流程如上。

注:以上流程能够得到保证,其它流程我的代码均未考虑。并且执行一次以上流程可能需要重启信令服务器,重新执行整个流程。

duofei_signaling-server's People

Contributors

jokr9527 avatar

Watchers

James Cloos avatar

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.