我有一个 Java 应用程序,我正在 Linux 机器上运行 Kurento 媒体服务器。我正在尝试运行该应用程序。我可以访问该网页,查看本地流是否正常工作,但远程流永远不会通过——在 Chrome 或 Firefox 上。
日志
网页控制台显示:
10:24:54.361 [ http-nio-80-exec-7] DEBUG - o.k.tutorial.groupcall.CallHandler - Incoming message from user 'Alex': {"id":"receiveVideoFrom","sender":"Alex","sdpOffer":"v=0\r\no=- 3371483860$
10:24:54.362 [ http-nio-80-exec-7] INFO - o.k.tutorial.groupcall.UserSession - USER Alex: connecting with Alex in room myroom
10:24:54.362 [ http-nio-80-exec-7] DEBUG - o.k.tutorial.groupcall.UserSession - PARTICIPANT Alex: configuring loopback
10:24:54.363 [ http-nio-80-exec-7] DEBUG - o.k.c.i.c.RemoteObjectInvocationHandler - Invoking method public abstract java.lang.String org.kurento.client.SdpEndpoint.processOffer(java.lang.String$
10:24:54.378 [ http-nio-80-exec-7] DEBUG - o.k.j.client.JsonRpcClientWebSocket - Req-> {"id":3,"method":"invoke","params":{"object":"23f96b3d-fb8f-48f8-a009-14efec6e93be_MediaPipeline/1b9ed8$
10:24:54.711 [ http-nio-80-exec-7] DEBUG - o.k.j.client.JsonRpcClientWebSocket - <-Res {"id":3,"result":{"value":"v=0\r\no=- 3371483860089944829 0 IN IP4 0.0.0.0\r\ns=Kurento Media Server\r\$
10:24:54.712 [ http-nio-80-exec-7] DEBUG - o.k.tutorial.groupcall.UserSession - USER Alex: Sending message {"id":"receiveVideoAnswer","name":"Alex","sdpAnswer":"v=0\r\no=- 33714838600899448$
10:24:59.107 [ http-nio-80-exec-8] DEBUG - o.k.tutorial.groupcall.CallHandler - Incoming message from new user: {"id":"joinRoom","name":"Alex","room":"559a3b4683c8c"}
10:24:59.108 [ http-nio-80-exec-8] INFO - o.k.tutorial.groupcall.CallHandler - PARTICIPANT Alex: trying to join room 559a3b4683c8c
10:24:59.108 [ http-nio-80-exec-8] DEBUG - o.k.tutorial.groupcall.RoomManager - Searching for room 559a3b4683c8c
10:24:59.108 [ http-nio-80-exec-8] DEBUG - o.k.tutorial.groupcall.RoomManager - Room 559a3b4683c8c not existent. Will create now!
10:24:59.108 [ http-nio-80-exec-8] DEBUG - o.k.j.client.JsonRpcClientWebSocket - Req-> {"id":4,"method":"create","params":{"type":"MediaPipeline","constructorParams":{},"sessionId":"d25998a6$
10:24:59.111 [ http-nio-80-exec-8] DEBUG - o.k.j.client.JsonRpcClientWebSocket - <-Res {"id":4,"result":{"value":"8f687144-a7ac-41fc-8e8e-da8c52617786_MediaPipeline","sessionId":"d25998a6-86$
10:24:59.112 [ http-nio-80-exec-8] INFO - org.kurento.tutorial.groupcall.Room - ROOM 559a3b4683c8c has been created
10:24:59.112 [ http-nio-80-exec-8] DEBUG - o.k.tutorial.groupcall.RoomManager - Room 559a3b4683c8c found!
10:24:59.112 [ http-nio-80-exec-8] INFO - org.kurento.tutorial.groupcall.Room - ROOM Alex: adding participant Alex
10:24:59.112 [ http-nio-80-exec-8] DEBUG - o.k.j.client.JsonRpcClientWebSocket - Req-> {"id":5,"method":"create","params":{"type":"WebRtcEndpoint","constructorParams":{"mediaPipeline":"8f687$
10:24:59.115 [ http-nio-80-exec-8] DEBUG - o.k.j.client.JsonRpcClientWebSocket - <-Res {"id":5,"result":{"value":"8f687144-a7ac-41fc-8e8e-da8c52617786_MediaPipeline/baa692bd-f82d-4714-9ac9-a$
10:24:59.115 [ http-nio-80-exec-8] DEBUG - org.kurento.tutorial.groupcall.Room - ROOM 559a3b4683c8c: notifying other participants of new participant Alex
10:24:59.116 [ http-nio-80-exec-8] DEBUG - org.kurento.tutorial.groupcall.Room - PARTICIPANT Alex: sending a list of 0 participants
10:24:59.116 [ http-nio-80-exec-8] DEBUG - o.k.tutorial.groupcall.UserSession - USER Alex: Sending message {"id":"existingParticipants","data":[]}
10:24:59.117 [ http-nio-80-exec-8] DEBUG - o.k.tutorial.groupcall.CallHandler - Incoming message from user 'Alex': {"id":"leaveRoom"}
10:24:59.117 [ http-nio-80-exec-8] DEBUG - o.k.tutorial.groupcall.RoomManager - Searching for room 559a3b4683c8c
10:24:59.117 [ http-nio-80-exec-8] DEBUG - o.k.tutorial.groupcall.RoomManager - Room 559a3b4683c8c found!
10:24:59.117 [ http-nio-80-exec-8] DEBUG - org.kurento.tutorial.groupcall.Room - PARTICIPANT Alex: Leaving room 559a3b4683c8c
10:24:59.117 [ http-nio-80-exec-8] DEBUG - org.kurento.tutorial.groupcall.Room - ROOM 559a3b4683c8c: notifying all users that Alex is leaving the room
10:24:59.117 [ http-nio-80-exec-8] DEBUG - o.k.tutorial.groupcall.UserSession - PARTICIPANT Alex: Releasing resources
10:24:59.118 [ http-nio-80-exec-8] DEBUG - o.k.c.i.c.RemoteObjectInvocationHandler - Invoking method public abstract void org.kurento.client.KurentoObject.release(org.kurento.client.Continuation$
10:24:59.122 [ http-nio-80-exec-8] DEBUG - o.k.c.i.c.RemoteObjectInvocationHandler - Invoking method public abstract void org.kurento.client.KurentoObject.release(org.kurento.client.Continuation$
10:24:59.123 [ pool-1-thread-1] DEBUG - o.k.j.client.JsonRpcClientWebSocket - Req-> {"id":6,"method":"release","params":{"object":"8f687144-a7ac-41fc-8e8e-da8c52617786_MediaPipeline/baa69$
10:24:59.127 [ http-nio-80-exec-8] DEBUG - org.kurento.tutorial.groupcall.Room - Room 559a3b4683c8c closed
10:24:59.128 [ http-nio-80-exec-8] INFO - o.k.tutorial.groupcall.RoomManager - Room 559a3b4683c8c removed and closed
我不知道视频是否没有通过,因为是开放端口的问题。
如果我正在尝试做 Hello World 应用程序,我会得到以下信息
Loading complete ...
Starting video call ...
spec: {"audio":true,"video":{"mandatory":{"maxWidth":640,"maxFrameRate":15,"minFrameRate":15}}}
chrome: {"audio":true,"video":{"mandatory":{"maxWidth":640,"maxFrameRate":15,"minFrameRate":15}}}
Created SDP offer
Local description set
ICE negotiation completed
Invoking SDP offer callback function 10.5.104.13
Received sdpAnswer from server. Processing ...
SDP answer received, setting remote description
任何人,任何想法?
谢谢