本示例主要展现了kurento的视频软电话功能。html
官网文档One to one video calljava
首先从github上获取代码(若是已经获取能够跳过,获取的代码已经包括后面的示例代码了)git
git clone https://github.com/Kurento/kurento-tutorial-java.git
进入目录,编译执行github
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都是支持的。浏览器
双方都注册一个名字,而后其中一方输入另外一方的名字开始呼叫,被呼叫的一方确认后就能够开始通话了ide
User A is registered in the server with his namespa
User B is registered in the server with her namecode
User A wants to call to User B视频
User B accepts the incoming callserver
The communication is established and media is flowing between User A and User B
One of the users finishes the video communication
若是成功的话,画面应该是这样的