Kurento安裝與入門07——Advanced One to one video call

Advanced One to one video call

本示例是上一個示例的進階版,添加了濾鏡和錄像回放功能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

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

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

  3. User A wants to call to User Bspa

  4. User B accepts the incoming callcode

  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
相關文章
相關標籤/搜索