Kurento一对一视频通话录制Java

时间:2016-03-30 07:26:40

标签: java webrtc kurento

我想在服务器上录制流媒体,因为我安装了Kurento Media Server 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/没有回应任何内容。

1 个答案:

答案 0 :(得分:1)

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