WebRTC环境搭建

来源:互联网 发布:浏览器安装java插件 编辑:程序博客网 时间:2024/06/15 06:03

参考:

http://blog.sina.com.cn/s/blog_69a04cf401016gz4.html  展示了多个demo

http://www.tuicool.com/articles/N3ueAr   

http://lingyu.wang/2014/03/15/webRTC-1/

http://www.it165.net/admin/html/201503/5062.html



赵书剑demo搭建

1. 下载

地址:https://github.com/zsj2145676/webrtc.io-demo

2. node.js环境搭建

http://www.icoolxue.com/blog/show/6  ubuntu下安装node.js


3. npm install

http://blog.csdn.net/haidaochen/article/details/8546796   npm常用命令

https://cnodejs.org/topic/4f9904f9407edba21468f31e   解决npm install错误问题


4. node server.js   启动服务器

5.  go to localhost:8000  出现一下错误

TypeError: Arguments to path.join must be strings    at path.js:360:15    at Array.filter (native)    at exports.join (path.js:358:36)    at exports.send (/work/webrtc.io-demo-master/node_modules/express/node_modules/connect/lib/middleware/static.js:129:20)    at ServerResponse.res.sendfile (/work/webrtc.io-demo-master/node_modules/express/lib/response.js:186:3)    at webRTC.rtc.on.roomList (/work/webrtc.io-demo-master/example/server.js:8:7)    at callbacks (/work/webrtc.io-demo-master/node_modules/express/lib/router/index.js:272:11)    at param (/work/webrtc.io-demo-master/node_modules/express/lib/router/index.js:246:11)    at pass (/work/webrtc.io-demo-master/node_modules/express/lib/router/index.js:253:5)    at Router._dispatch (/work/webrtc.io-demo-master/node_modules/express/lib/router/index.js:280:5)

node.js基础

http://www.runoob.com/nodejs/nodejs-tutorial.html



express模块使用

http://segmentfault.com/a/1190000000488358#articleHeader5







0 0
原创粉丝点击