1

One to one video call

本示例主要展示了kurento的视频软电话功能。

官网文档One to one video call

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

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

进入目录,编译执行

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

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

双方都注册一个名字,然后其中一方输入另一方的名字开始呼叫,被呼叫的一方确认后就可以开始通话了

  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

如果成功的话,画面应该是这样的

clipboard.png


nintha
160 声望32 粉丝

QAQ