【问题标题】:Socket connection getting close while creating room on kurento在 kurento 上创建空间时,套接字连接越来越近
【发布时间】:2019-04-04 08:09:45
【问题描述】:

我已经在 WS 上配置了 kurento。它的 Spring Boot 应用程序在 https://localhost:8443 (tomcat) 上运行。

日志:

s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8443 (https)
DEBUG 4730 --- [apterApp.main()] o.s.w.c.s.StandardServletEnvironment     : Adding [server.ports] PropertySource with highest search precedence
INFO 4730 --- [apterApp.main()] com.io.AdapterApp   : Started AdapterApp in 14.041 seconds (JVM running for 29.346)

使用以下命令启动启动应用程序:

sudo mvn compile exec:java Dkms.url=ws://io-storage:8888/kurento

Websocket 在 8888 端口上运行。 (不安全的 WS)。

创建房间时,请求是 ws://io-storage:8888/call

但是当请求发送到 kurento 服务器时出现以下错误

2018-10-31 13:12:23,252181 2009 [0x00007fe37ce5b700]   error KurentoWebSocketTransport WebSocketTransport.cpp:455 openHandler()  Invalid path "/call", closing connection

【问题讨论】:

    标签: reactjs maven spring-boot websocket kurento


    【解决方案1】:

    Kurento 媒体服务器不监听 /call 端点上的 RPC 命令。为什么要请求该 URL?

    只需按照Java tutorials 中的任何一个来使用Java API client;该库为您执行所有 RPC 命令。

    如果您仍然需要在没有库的情况下工作并直接针对 RPC API 进行编程,请查看the protocol docs

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-12-19
      • 2019-02-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多