webrtc 服务器搭建(1)apprtc房间服务器
来源:互联网 发布:淘宝怎么更改支付宝 编辑:程序博客网 时间:2024/05/09 20:14
ubuntu 14.04 64位
python 2.7.6
npm 5.4.2
node/nodejs v8.5.0
配置apprtc一切以官方配置为准:https://github.com/webrtc/apprtc
安装好jdk并配置好jdk环境变量
sudo apt-get install openjdk-7-jdk
安装python-webtest
sudo apt-get install python-webtest
安装nodejs编译管理库npm
sudo apt-get install npm
安装各种包
由于npm是连接国外会很慢,建议设置使用淘宝镜像
npm config set registry https://registry.npm.taobao.org
sudo apt-get install nodejs
sudo npm install -g npm
sudo apt-get install nodejs-legacy
sudo npm -g install grunt-cli
ps:
如果sudo npm install -g npm
弹出:ERROR: npm is known not to run on Node.js v0.10.25 需要升级至 4.x以上版本用以下方法解决
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
下载Google App Engine SDK for Python 需翻墙
https://cloud.google.com/appengine/docs/standard/python/download
下载完之后注意配置环境变量
接下来修改apprtc/src/app_engine/constants配置文件
如果需要配置stun和turn服务器就将这段代码的注释去掉
网上有免费stun、turn服务器,后面也会实现搭建
TURN_SERVER_OVERRIDE = [ { "urls": [ "turn:hostnameForYourTurnServer:19305?transport=udp", "turn:hostnameForYourTurnServer:19305?transport=tcp" ], "username": "TurnServerUsername", "credential": "TurnServerCredentials" }, { "urls": [ "stun:hostnameForYourStunServer:19302" ] }]
当前只配置apprtc所以不将注释打开
接下来设置:TURN_BASE_URL='192.168.1.113' //这是我的本地ip地址
CEOD_KEY暂时不设置,后面stun服务器需要在配置
ICE_SERVER_BASE_URL='192.168.1.113'
WSS_INSTANCE_HOST_KEY= '192.168.1.113'
运行grunt build
如果报ssl错误可以暂时不管,运行 grunt --force 继续
sudo 你的google appengine根目录/dev_appserver.py ./out/app_engine 这里需要翻墙才能运行成功
之后会生成out目录
localhost:8080如果出来画面就是成功了
===============================================================================================
今晚继续更新 2017/9/22
- webrtc 服务器搭建(1)apprtc房间服务器
- apprtc(webrtc) 本地搭建服务器
- webrtc-房间服务器搭建
- webrtc随笔-apprtc服务器
- webRTC:一、房间服务器的搭建(综述)
- AppRTC服务器搭建
- 基于webrtc的apprtc服务器搭建(ubuntu14.04 64位)
- 基于webrtc的apprtc服务器搭建(ubuntu14.04 64位)
- p2p webrtc服务器搭建系列1: 房间,信令,coturn打洞服务器
- CentOS6.5搭建APPRTC服务器
- WebRTC知识分享——AppRTC服务器简述
- Webrtc之apprtc与信令服务器构建
- Webrtc服务器搭建
- Webrtc服务器搭建
- Webrtc服务器搭建
- Webrtc服务器搭建
- Webrtc服务器搭建
- Webrtc服务器搭建 (coturn)
- 极光推送服务器端代码(java服务器后台向手机端自定义推送消息)
- XOR加密--PHP版
- SpringMVC的Controller接口方法参数解析
- 编辑页面日期后显示多个0
- list,tuple,dict,set的区别和用法
- webrtc 服务器搭建(1)apprtc房间服务器
- MFC的消息机制
- swing组件功能与布局
- 【技术文档】jeecg3.7.1-maven版本搭建环境手把手入门-eclipse
- MySQL索引背后的数据结构及算法原理
- tensorflow 图像数据处理
- Eclipse插件的四种安装方法
- Unity发布自定义分辨率程序
- 关于S5PV210中断的问题