Licode(一):入门介绍

什么是webrtc?

WebRTC(Web Real-Time Communication)是一个开源项目(2010年5月,Google以6820万美元收购VoIP软件开发商Global IP Solutions的GIPS引擎,并改为名为“WebRTC”),旨在让Web开发者能够基于Web浏览器轻易快捷开发出丰富的实时多媒体应用,而无需下载安装任何插件,Web开发者也无需关注多媒体的数字信号处理过程,只需编写简单的Javascript程序即可实现。W3C等组织正在制定Javascript 标准API。同时,Google也希望和致力于让WebRTC的技术成为HTML5标准之一。

可以通过《Getting Started with WebRTC》对webtrc有个更清晰的认识,由于网络上已经有很多涉及webrtc技术的文章,这里就不再详细讨论了,更多相关资料:

什么是Licode?

Licode是基于webRTC技术之上的开源项目,通过更便捷(easy,fast and scalable)的接口你可以快速搭建出基于webRTC技术的网络视频会议系统,或者与此类似的系统。你可以通过Try it!对Licode有个更为直观的认识。Licode的GitHub地址:https://github.com/ging/licode

image

初识Licode架构

官方给出的Licode架构如下图:

image

Note:因为有动画效果,点击这里查看更多细节http://lynckia.com/licode/architecture.html

Licode由四个模块组成:

  • Erizo:基于webRTC针对视频会议场景的一对多组件,官方叫法为:MCU(Multipoint Control Unit)
  • Erizo API:Erizo的NodeJs版本
  • Erizo Controller:负责管理(manage)视频会议sessions
  • Nuve:负责管理(manage)服务器资源(会议房间、与会用户、加入凭证等)

Mac X下搭建Licode测试环境

通过官方文档http://lynckia.com/licode/install.html是无法把Licode安装到Mac Yosimite上的,github上的安装脚本是针对Mac Mountain Lion的,google了很久,终于发现了一种方法 — 通过在mac上安装虚拟机的方式(虚拟机上在运行Ubuntu12.04 LTS)完美解决之,不容易啊:

At this point I’m afraid the Mac OS building scripts are very outdated. To test Licode I suggest you to use our Vagrantfile located in extras/vagrant
You can find more information about vagrant in https://www.vagrantup.com

We haven’t ruled out updating the scripts for Mac, but at this point we are focused on other issues. Sorry about that.

Vagrant的介绍、安装和基本的用法,这里不赘述了,直接参考下这里吧:Vagrant的介绍,需要安装的box名称为:

# Every Vagrant virtual environment requires a box to build off of.
  config.vm.box = "precise32" 
  # The url from where the 'config.vm.box' box will be fetched if it
  # doesn't already exist on the user's system.
  config.vm.box_url = "http://files.vagrantup.com/precise32.box"

Vagrant初始化成功后,会在当前目录下生成Vagrantfile文件,直接将Licode项目$ROOT/extras/vagrant/下的两个文件:Vagrantfile和bootstrap.sh复制到当前目录下,然后执行vagrant up命令,耐心等待编译完成,然后执行以下命令:

# This step will initialize all Licode components.
./licode/scripts/initLicode.sh
# This step will initialize all Licode components.
./licode/scripts/initBasicExample.sh

执行成功之后,通过chrome浏览器 connect to “localhost:3001” and test your basic videoconference example:

image


  • 3
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值