# webrtc-demo **Repository Path**: mariaooo/webrtc-demo ## Basic Information - **Project Name**: webrtc-demo - **Description**: No description available - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-06 - **Last Updated**: 2021-01-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # webrtc-demo #### 介绍 1. http-server 作为Socket server 2. webrtc-android 3. 需要coturn服务器,网上安装教程很多,同一内网环境下不需要,如果想用本地两台虚拟机进行测试,则需要coturn server 例如:https://www.jianshu.com/p/915eab39476d #### 安装 一、http-server ``` cd ./http-server npm install node http-server ``` 二、webrtc-android, 和正常Android项目一样导入即可 #### 效果 代码以三人同一个房间聊天为例,仅仅是个demo,很多不足尚需完善,仅供webrtc入门使用: ![视频聊天](https://images.gitee.com/uploads/images/2020/1207/215017_6deba387_2300835.png "2020-12-07_202903.png") ![文本聊天](https://images.gitee.com/uploads/images/2020/1207/215046_2aeee7c0_2300835.png "2020-12-07_212510.png")