Kurento安装与入门12——Show DataChannel

Show DataChannel

本示例允许用户在文本框中输入任意文字,输入的文字将以字幕的形式显示在传回的视频中。

官网文档 [Show DataChannel[1]

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

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

本示例需要 kms-datachannelexample 模块的支持,通过以下命令来安装(部分情况下,需要重启才能使该模块生效):

 sudo apt-get install kms-datachannelexample

进入目录,编译执行

cd kurento-tutorial-java/kurento-show-data-channel
git checkout 6.6.0
mvn clean compile exec:java

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

运行截图:
图片描述

猜你喜欢

转载自www.cnblogs.com/10manongit/p/12923503.html