Kurento安装与入门07——Advanced One to one video call

本文介绍了一对一视频通话的进阶实现方式,通过添加滤镜和录像回放功能提升用户体验。基于Kurento框架,文章详细记录了从源码获取到部署运行的全过程,并指导如何使用WebRTC进行视频通话。

Advanced One to one video call

本示例是上一个示例的进阶版,添加了滤镜和录像回放功能

官网文档 Advanced One to one video call

首先从github上获取代码(如果已经获取可以跳过,获取的代码已经包括后面的示例代码了)

 git clone https://github.com/Kurento/kurento-tutorial-java.git

进入目录,编译执行

cd kurento-tutorial-java/kurento-one2one-call-advanced
git checkout 6.6.0
mvn clean compile exec:java

然后在浏览器中打开 https://localhost:8443/,如果是虚拟机安装的话可以在物理机中打开https://<虚拟机IP地址>:8443/ 。浏览器要求支持WebRTC 功能,Chrome, Firefox都是支持的。

双方都注册一个名字,然后其中一方输入另一方的名字开始呼叫,被呼叫的一方确认后就可以开始通话了,通话结束后点击 Play Rec按钮可以观看录像

  1. User A is registered in the server with his name

  2. User B is registered in the server with her name

  3. User A wants to call to User B

  4. User B accepts the incoming call

  5. The communication is established and media is flowing between User A and User B

  6. One of the users finishes the video communication

  7. One of the users play the recorded media

clipboard.png

另外滤镜显示的卡通图像是允许自定义的,默认的地址是

 https://localhost:8443/img/mario-wings.png

如果需要自己指定,在运行程序的时候加上参数app.server.url ,如

mvn compile exec:java -Dapp.server.url=https://app_server_host:app_server_port
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值