gpt4 book ai didi

java - Kurento一对一视频通话录音Java

转载 作者:行者123 更新时间:2023-12-01 10:08:36 27 4
gpt4 key购买 nike

我想在服务器上录制流媒体,因为我将 K​​urento 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/没有响应任何内容。

最佳答案

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

关于java - Kurento一对一视频通话录音Java,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36302263/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com