本示例是上一个示例的进阶版,添加了滤镜和录像回放功能html
官网文档 Advanced 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-advanced git checkout 6.6.0 mvn clean compile exec:java
而后在浏览器中打开 https://localhost:8443/,若是是虚拟机安装的话能够在物理机中打开https://<虚拟机IP地址>:8443/ 。浏览器要求支持WebRTC 功能,Chrome, Firefox都是支持的。浏览器
双方都注册一个名字,而后其中一方输入另外一方的名字开始呼叫,被呼叫的一方确认后就能够开始通话了,通话结束后点击 Play Rec按钮能够观看录像app
User A is registered in the server with his nameide
User B is registered in the server with her nameurl
User A wants to call to User Bspa
User B accepts the incoming callcode
The communication is established and media is flowing between User A and User B
One of the users finishes the video communication
One of the users play the recorded media
另外滤镜显示的卡通图像是容许自定义的,默认的地址是
https://localhost:8443/img/mario-wings.png
若是须要本身指定,在运行程序的时候加上参数app.server.url ,如
mvn compile exec:java -Dapp.server.url=https://app_server_host:app_server_port