Kurento 一对一视频通话录音 Java

Kurento one to one video call recording Java

我想在服务器上录制流媒体,因为我将 K​​urento 媒体服务器安装为 https://www.kurento.org/docs/6.0.0/installation_guide.html#kurento-media-server-installation

然后按照这个 https://www.kurento.org/docs/6.0.0/tutorials/java/tutorial-5-one2one-adv.html

但是对于 6.4.0 版,我的服务器开始时为

root@webrtc:~/kurento-java/kurento-tutorial-java/kurento-one2one-call-recording# mvn compile exec:java
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Kurento Java Tutorial - One2One Call Advanced 6.4.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) @ kurento-one2one-call-recording ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ kurento-one2one-call-recording ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create-timestamp (get-build-timestamp) @ kurento-one2one-call-recording ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ kurento-one2one-call-recording ---
[INFO] Executing: /bin/sh -c cd '/root/kurento-java/kurento-tutorial-java/kurento-one2one-call-recording' && 'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: /root/kurento-java/kurento-tutorial-java/kurento-one2one-call-recording
[INFO] Storing buildNumber: 343b64978ee5659dde884ffeaf3dba61d48db9ea at timestamp: 1459320863044
[INFO] Storing buildScmBranch: master
[INFO] 
[INFO] --- exec-maven-plugin:1.4.0:exec (default) @ kurento-one2one-call-recording ---
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ kurento-one2one-call-recording ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 326 resources
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ kurento-one2one-call-recording ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- exec-maven-plugin:1.4.0:java (default-cli) @ kurento-one2one-call-recording ---

   .------------------------------------.
   |                                    |
   |   | |/ /  _ _ _ ___ _ _| |_ ___    |
   |   | ' < || | '_/ -_) ' \  _/ _ \   |
   |   |_|\_\_,_|_| \___|_||_\__\___/   |
   |                                    |
   '------------------------------------'
                    version 6.4.0

11:54:29.135 [OneCallRecApp.main()] INFO  - o.k.t.one2onecallrec.One2OneCallRecApp   -
                Starting One2OneCallRecApp on webrtc with PID 2784 (/root/kurento-java/kurento-tutorial-java/kurento-one2one-call-recording/target/classes started by root in /root/kurento-java/kurento-tutorial-java/kurento-one2one-call-recording)
11:54:29.148 [OneCallRecApp.main()] DEBUG - o.k.t.one2onecallrec.One2OneCallRecApp   -
                Running with Spring Boot v1.3.0.RELEASE, Spring v4.2.3.RELEASE
11:54:29.150 [OneCallRecApp.main()] INFO  - o.k.t.one2onecallrec.One2OneCallRecApp   -
                No profiles are active
11:54:30.353 [     pool-1-thread-1] INFO  - o.h.validator.internal.util.Version      -
                HV000001: Hibernate Validator 5.2.2.Final
11:54:34.651 [OneCallRecApp.main()] INFO  - org.kurento.commons.UrlServiceLoader     -
                Config file is null (usually this means that config file doesn't exist). Using default url ws://127.0.0.1:8888/kurento
11:54:34.653 [OneCallRecApp.main()] DEBUG - o.kurento.client.internal.KmsUrlLoader   -
                Executing getKmsUrlLoad(88bf57a7-d8f1-4154-b796-ba8b99e1d744) in KmsUrlLoader
11:54:34.655 [OneCallRecApp.main()] DEBUG - o.kurento.client.internal.KmsUrlLoader   -
                Obtaining kmsUrl=ws://127.0.0.1:8888/kurento from config file or system property
11:54:34.657 [OneCallRecApp.main()] INFO  - org.kurento.client.KurentoClient         -
                Connecting to kms in ws://127.0.0.1:8888/kurento
11:54:34.717 [OneCallRecApp.main()] DEBUG - o.kurento.jsonrpc.client.JsonRpcClient   -
                 Enabling heartbeat with an interval of 240000 ms
11:54:34.728 [     pool-3-thread-1] DEBUG - o.k.j.client.JsonRpcClientWebSocket      -
                [KurentoClient]  Connecting webSocket client to server ws://127.0.0.1:8888/kurento
11:54:37.709 [OneCallRecApp.main()] INFO  - o.k.t.one2onecallrec.One2OneCallRecApp   -
                Started One2OneCallRecApp in 9.722 seconds (JVM running for 26.297)

现在,如何在 http 上访问它? http://localhost:8080/ 没有任何响应。

您无法通过端口 8080 访问它,因为自 12 月中旬以来,默认情况下所有教程都在 https://<ip>:8443 中提供。自 Chrome 47 起,getUserMedia 请求仅通过安全源支持。尽管 http://localhost:<port> 被认为是安全的,但我们决定不通过不安全的协议提供任何教程,只是为了防止用户因此在控制台中出现错误。