【webRTC】一个基于 tornado 和 webRTC 的点对点视频语音文字聊天室

el/2023/6/3 17:18:02

简介

  • 一个基于 tornado 和 webRTC 的点对点视频语音文字聊天室

对webRTC的连接过程的理解

# webRTC连接过程中的4种角色
(1)Signaling Server     (收发信息服务器)
(2)ICE/TURN/STUN Server (IP,端口,MAC信息处理服务器)
(3)Remote Peer          (远端)
(4)Local Peer           (本地端)# webRTC链接建立过程
(1)Local Peer通过websocket连接Signaling Server2)Remote Peer通过websocket连接Signaling Server3)Local Peer连接ICE/TURN/STUN Server,获取对外IP,端口,MAC
(4)Remote Peer连接ICE/TURN/STUN Server,获取对外IP,端口,MAC
(5)Local Peer发送offer sdp信息给Remote Peer,目的是告诉对方我是谁
(6)Remote Peer回复answer sdp信息给Local Peer,连接建立

代码

  • https://github.com/ns2250225/webRTC-tornado

效果图



http://www.ngui.cc/el/1114052.html

相关文章

【Vue】用Weex构建一个Native App

简介 Weex就像是vue native一样,用vue的语法编写,一次编译3个平台运行 安装JDK8 下载:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html配置环境变量 安装Android Studio3.0 下载:http://…

【PWA】PWA相关资料整理

PWA简介 PWA 全称 Progressive Web App,旨在提供更像原生且更好的web体验,并不等于是SPA(Single Page App) PWA可以实现【离线访问】,【webAPP安装】,【消息推送】等功能 PWA相关资料 饿了么的 PWA 升级实…

【webAR】用AR.js和A-frame实现webAR

Github https://github.com/ns2250225/ns2250225.github.io 效果图

【webRTC】仿微信的语音段传输

简介 使用webRTC获取和录制音频流使用webSocket传输音频流 Gtihub https://github.com/ns2250225/audioRecord 效果图

【webAI】基于deeplearn.js的Mnist手写数字识别

简介 deeplearn.js是谷歌开源的基于硬件加速的一款web端深度学习库&#xff0c;类似tensorflow Github&#xff1a;https://github.com/ns2250225/deeplearnjs-examples index.html <!DOCTYPE html> <html lang"en"> <head><meta charset"…

【Python】基于darkflow的YOLO实时对象检测

简介 YOLO全称you only look once&#xff0c;是实时对象检测的技术 环境 python3.6win10 下载安装darkflow项目 git clone https://github.com/thtrieu/darkflow.gitpython setup.py build_ext --inplace 下载训练好的模型文件 yolo.weights将下载好的yolo.weights放到bin目…

【webAI】用deeplearn.js和摄像头玩俄罗斯方块

参考文章 https://medium.com/mariannelinharesm/playing-a-game-using-just-your-camera-with-deeplearnjs-ca156008f537 下载并启动项目 git clone https://github.com/mari-linhares/teachable-machine-games.gitnpm installnpm start访问&#xff1a;http://localhost:99…

【webAI】用deeplearn.js预测线性方程的参数

Github https://github.com/ns2250225/deeplearnjs-examples/tree/master/basic_operation 目标方程 y 3 * x 23 为 Weights2 为 Baises 代码 /*** 预测线性方程 y 3x 2 的参数* 其中 3 为 Weights, 2 为 Biases */// 创建数据集&#xff0c;这里创建5个x&#xff0c;和…

【Python】Django使用GraphQL详解

为什么不用REST Rest一次只能请求一个资源&#xff0c;会造成太多的http请求Rest的版本控制问题是一个痛 GraphQL的关键语句 query&#xff1a;查询&#xff0c;相当于GETmutation&#xff1a;变化&#xff0c;相当于POST, PUT, DELETE 环境搭建 win10Python3.6pip install …

【PWA】将已有的vue项目改造成PWA

下载相关库 npm install sw-precache-webpack-plugin --save 修改build/webpack.prod.conf.js文件 添加如下内容 ... const SWPrecacheWebpackPlugin require(sw-precache-webpack-plugin) ...... plugins: [...// service worker cachingnew SWPrecacheWebpackPlugin({cac…