Remote Particiapnt Video Not Showing

Hello,
i am going through the document you have recently published v2.15.0 and i am trying to use openvidu-MVC-java in my local environment.I have completed all the steps and i have connected multiple device in my LAN network by indicating OpenVidu Server to use my dev machine LAN IP address as public URL. Whenever i connected with other participants with the participants remote video is not showing. I just couldn’t figure out the issue . i read that in v2.15.0 so many issues were solved. i don’t know what actually happened here. I have provided some images below for better understanding my situation. when the secondary device test the server via secret key the kms event shows failed but when it is tested where the environment is currently running it works fine. Can anyone please help?

We need more information to figure out what is happening.

Could you paste here the browser and openvidu-server logs please?

Server Logs :

2020-07-15 11:52:07,173 DEBG ‘kms’ stdout output:
0:01:27.504419745 8 0x7f90e8078950 DEBUG KurentoWebSocketEventHandler WebSocketEventHandler.cpp:56:sendEvent: Sending event: {“jsonrpc”:“2.0”,“method”:“onEvent”,“params”:{“value”:{“data”:{“componentId”:1,“source”:“ba4ecb7d-4b43-4cb3-9604-1c58ebf9c765_kurento.MediaPipeline/a9590b85-9d14-449f-8a5b-fce6c31f88c9_kurento.WebRtcEndpoint”,“state”:“CONNECTED”,“streamId”:1,“tags”:[],“timestamp”:“1594813927”,“timestampMillis”:“1594813927173”,“type”:“IceComponentStateChange”},“object”:“ba4ecb7d-4b43-4cb3-9604-1c58ebf9c765_kurento.MediaPipeline/a9590b85-9d14-449f-8a5b-fce6c31f88c9_kurento.WebRtcEndpoint”,“type”:“IceComponentStateChange”}}}, sessionId: 77709928-4acc-44cb-a0e2-cdd80eed4709

2020-07-15 11:52:07,174 DEBG ‘openvidu-server’ stdout output:
[INFO] 2020-07-15 11:52:07,174 [AbstractJsonRpcClientWebSocket-reqResEventExec-e2-t2] io.openvidu.server.kurento.core.KurentoParticipantEndpointConfig - KMS event [IceComponentStateChange]: -> endpoint: con_BsO3WsN6sz_str_CAM_FCTG_con_B30NT0Maoh (subscriber) | state: CONNECTED | componentId: 1 | streamId: 1 | timestamp: 1594813927173

2020-07-15 11:52:07,180 DEBG ‘kms’ stdout output:
0:01:27.511803276 8 0x7f90ac016c30 DEBUG KurentoWebSocketEventHandler WebSocketEventHandler.cpp:56:sendEvent: Sending event: {“jsonrpc”:“2.0”,“method”:“onEvent”,“params”:{“value”:{“data”:{“componentId”:1,“source”:“ba4ecb7d-4b43-4cb3-9604-1c58ebf9c765_kurento.MediaPipeline/a9590b85-9d14-449f-8a5b-fce6c31f88c9_kurento.WebRtcEndpoint”,“state”:“READY”,“streamId”:1,“tags”:[],“timestamp”:“1594813927”,“timestampMillis”:“1594813927180”,“type”:“IceComponentStateChange”},“object”:“ba4ecb7d-4b43-4cb3-9604-1c58ebf9c765_kurento.MediaPipeline/a9590b85-9d14-449f-8a5b-fce6c31f88c9_kurento.WebRtcEndpoint”,“type”:“IceComponentStateChange”}}}, sessionId: 77709928-4acc-44cb-a0e2-cdd80eed4709

2020-07-15 11:52:07,182 DEBG ‘openvidu-server’ stdout output:
[INFO] 2020-07-15 11:52:07,181 [AbstractJsonRpcClientWebSocket-reqResEventExec-e2-t2] io.openvidu.server.kurento.core.KurentoParticipantEndpointConfig - KMS event [IceComponentStateChange]: -> endpoint: con_BsO3WsN6sz_str_CAM_FCTG_con_B30NT0Maoh (subscriber) | state: READY | componentId: 1 | streamId: 1 | timestamp: 1594813927180

2020-07-15 11:52:07,985 DEBG ‘kms’ stdout output:
0:01:28.315558409 8 0x7f90e400c4f0 DEBUG KurentoBaseRtpEndpointImpl BaseRtpEndpointImpl.cpp:190:updateConnectionState: ConnectionState changed to ‘CONNECTED’

2020-07-15 11:52:07,986 DEBG ‘kms’ stdout output:
0:01:28.315936604 8 0x7f90c0002240 DEBUG KurentoWebSocketEventHandler WebSocketEventHandler.cpp:56:sendEvent: Sending event: {“jsonrpc”:“2.0”,“method”:“onEvent”,“params”:{“value”:{“data”:{“newState”:“CONNECTED”,“oldState”:“DISCONNECTED”,“source”:“ba4ecb7d-4b43-4cb3-9604-1c58ebf9c765_kurento.MediaPipeline/a9590b85-9d14-449f-8a5b-fce6c31f88c9_kurento.WebRtcEndpoint”,“tags”:[],“timestamp”:“1594813927”,“timestampMillis”:“1594813927984”,“type”:“ConnectionStateChanged”},“object”:“ba4ecb7d-4b43-4cb3-9604-1c58ebf9c765_kurento.MediaPipeline/a9590b85-9d14-449f-8a5b-fce6c31f88c9_kurento.WebRtcEndpoint”,“type”:“ConnectionStateChanged”}}}, sessionId: 77709928-4acc-44cb-a0e2-cdd80eed4709

2020-07-15 11:52:07,989 DEBG ‘openvidu-server’ stdout output:
[INFO] 2020-07-15 11:52:07,988 [AbstractJsonRpcClientWebSocket-reqResEventExec-e2-t2] io.openvidu.server.kurento.core.KurentoParticipantEndpointConfig - KMS event [ConnectionStateChanged]: -> endpoint: con_BsO3WsN6sz_str_CAM_FCTG_con_B30NT0Maoh (subscriber) | oldState: DISCONNECTED | newState: CONNECTED | timestamp: 1594813927984

2020-07-15 11:52:12,376 DEBG ‘kms’ stdout output:
0:01:32.706831593 8 0x7f90ac016c30 DEBUG KurentoWebSocketEventHandler WebSocketEventHandler.cpp:56:sendEvent: Sending event: {“jsonrpc”:“2.0”,“method”:“onEvent”,“params”:{“value”:{“data”:{“componentId”:1,“source”:“ba4ecb7d-4b43-4cb3-9604-1c58ebf9c765_kurento.MediaPipeline/04cfc3d2-adcb-468c-9ff4-e72ac8e77ab1_kurento.WebRtcEndpoint”,“state”:“FAILED”,“streamId”:1,“tags”:[],“timestamp”:“1594813932”,“timestampMillis”:“1594813932375”,“type”:“IceComponentStateChange”},“object”:“ba4ecb7d-4b43-4cb3-9604-1c58ebf9c765_kurento.MediaPipeline/04cfc3d2-adcb-468c-9ff4-e72ac8e77ab1_kurento.WebRtcEndpoint”,“type”:“IceComponentStateChange”}}}, sessionId: 77709928-4acc-44cb-a0e2-cdd80eed4709

2020-07-15 11:52:12,382 DEBG ‘openvidu-server’ stdout output:
[INFO] 2020-07-15 11:52:12,381 [AbstractJsonRpcClientWebSocket-reqResEventExec-e2-t2] io.openvidu.server.kurento.core.KurentoParticipantEndpointConfig - KMS event [IceComponentStateChange]: -> endpoint: con_B30NT0Maoh_str_CAM_UX0b_con_BsO3WsN6sz (subscriber) | state: FAILED | componentId: 1 | streamId: 1 | timestamp: 1594813932375

2020-07-15 11:52:14,087 DEBG ‘kms’ stdout output:
0:01:34.417608778 8 0x7f90c0002240 DEBUG KurentoWebSocketEventHandler WebSocketEventHandler.cpp:56:sendEvent: Sending event: {“jsonrpc”:“2.0”,“method”:“onEvent”,“params”:{“value”:{“data”:{“componentId”:1,“source”:“ba4ecb7d-4b43-4cb3-9604-1c58ebf9c765_kurento.MediaPipeline/007c2d53-906b-4d90-ba41-be42c19c2959_kurento.WebRtcEndpoint”,“state”:“FAILED”,“streamId”:1,“tags”:[],“timestamp”:“1594813934”,“timestampMillis”:“1594813934086”,“type”:“IceComponentStateChange”},“object”:“ba4ecb7d-4b43-4cb3-9604-1c58ebf9c765_kurento.MediaPipeline/007c2d53-906b-4d90-ba41-be42c19c2959_kurento.WebRtcEndpoint”,“type”:“IceComponentStateChange”}}}, sessionId: 77709928-4acc-44cb-a0e2-cdd80eed4709

2020-07-15 11:52:14,092 DEBG ‘openvidu-server’ stdout output:
[INFO] 2020-07-15 11:52:14,091 [AbstractJsonRpcClientWebSocket-reqResEventExec-e2-t2] io.openvidu.server.kurento.core.KurentoParticipantEndpointConfig - KMS event [IceComponentStateChange]: -> endpoint: str_CAM_FCTG_con_B30NT0Maoh (publisher) | state: FAILED | componentId: 1 | streamId: 1 | timestamp: 1594813934086

2020-07-15 11:52:40,346 DEBG ‘kms’ stdout output:
0:02:00.677601107 8 0x7f90ac017360 INFO KurentoWebSocketTransport WebSocketTransport.cpp:346:keepAliveSessions: Keep alive 77709928-4acc-44cb-a0e2-cdd80eed4709

please see the images for the browser log :slight_smile:

Here is another details with different session

Server Logs:

2020-07-15 12:03:50,385 DEBG ‘kms’ stdout output:
0:13:10.710425669 8 0x7f90e80abaf0 DEBUG KurentoWebSocketEventHandler WebSocketEventHandler.cpp:56:sendEvent: Sending event: {“jsonrpc”:“2.0”,“method”:“onEvent”,“params”:{“value”:{“data”:{“newState”:“CONNECTED”,“oldState”:“DISCONNECTED”,“source”:“fa1e2075-d7e2-46d5-8524-28f01ef07358_kurento.MediaPipeline/0c211348-2a8c-4e96-bb47-f007dd61bf70_kurento.WebRtcEndpoint”,“tags”:[],“timestamp”:“1594814630”,“timestampMillis”:“1594814630378”,“type”:“ConnectionStateChanged”},“object”:“fa1e2075-d7e2-46d5-8524-28f01ef07358_kurento.MediaPipeline/0c211348-2a8c-4e96-bb47-f007dd61bf70_kurento.WebRtcEndpoint”,“type”:“ConnectionStateChanged”}}}, sessionId: 77709928-4acc-44cb-a0e2-cdd80eed4709

2020-07-15 12:03:50,386 DEBG ‘openvidu-server’ stdout output:
[INFO] 2020-07-15 12:03:50,383 [AbstractJsonRpcClientWebSocket-reqResEventExec-e2-t26] io.openvidu.server.kurento.core.KurentoParticipantEndpointConfig - KMS event [ConnectionStateChanged]: -> endpoint: con_R01Pyo5FsL_str_CAM_KGJ2_con_TavYRYp2CN (subscriber) | oldState: DISCONNECTED | newState: CONNECTED | timestamp: 1594814630378

2020-07-15 12:03:54,744 DEBG ‘kms’ stdout output:
0:13:15.074918407 8 0x7f90c0002240 DEBUG KurentoWebSocketEventHandler WebSocketEventHandler.cpp:56:sendEvent: Sending event: {“jsonrpc”:“2.0”,“method”:“onEvent”,“params”:{“value”:{“data”:{“componentId”:1,“source”:“fa1e2075-d7e2-46d5-8524-28f01ef07358_kurento.MediaPipeline/c4dc90fc-6319-490a-9255-b1c32a8bd1f1_kurento.WebRtcEndpoint”,“state”:“FAILED”,“streamId”:1,“tags”:[],“timestamp”:“1594814634”,“timestampMillis”:“1594814634743”,“type”:“IceComponentStateChange”},“object”:“fa1e2075-d7e2-46d5-8524-28f01ef07358_kurento.MediaPipeline/c4dc90fc-6319-490a-9255-b1c32a8bd1f1_kurento.WebRtcEndpoint”,“type”:“IceComponentStateChange”}}}, sessionId: 77709928-4acc-44cb-a0e2-cdd80eed4709

2020-07-15 12:03:54,748 DEBG ‘openvidu-server’ stdout output:
[INFO] 2020-07-15 12:03:54,747 [AbstractJsonRpcClientWebSocket-reqResEventExec-e2-t26] io.openvidu.server.kurento.core.KurentoParticipantEndpointConfig - KMS event [IceComponentStateChange]: -> endpoint: con_TavYRYp2CN_str_CAM_ZKfy_con_R01Pyo5FsL (subscriber) | state: FAILED | componentId: 1 | streamId: 1 | timestamp: 1594814634743

2020-07-15 12:03:56,373 DEBG ‘kms’ stdout output:
0:13:16.704328003 8 0x7f90e80abaf0 DEBUG KurentoWebSocketEventHandler WebSocketEventHandler.cpp:56:sendEvent: Sending event: {“jsonrpc”:“2.0”,“method”:“onEvent”,“params”:{“value”:{“data”:{“componentId”:1,“source”:“fa1e2075-d7e2-46d5-8524-28f01ef07358_kurento.MediaPipeline/019418a2-549c-4ee0-9ca6-155258853b7b_kurento.WebRtcEndpoint”,“state”:“FAILED”,“streamId”:1,“tags”:[],“timestamp”:“1594814636”,“timestampMillis”:“1594814636373”,“type”:“IceComponentStateChange”},“object”:“fa1e2075-d7e2-46d5-8524-28f01ef07358_kurento.MediaPipeline/019418a2-549c-4ee0-9ca6-155258853b7b_kurento.WebRtcEndpoint”,“type”:“IceComponentStateChange”}}}, sessionId: 77709928-4acc-44cb-a0e2-cdd80eed4709

2020-07-15 12:03:56,375 DEBG ‘openvidu-server’ stdout output:
[INFO] 2020-07-15 12:03:56,374 [AbstractJsonRpcClientWebSocket-reqResEventExec-e2-t26] io.openvidu.server.kurento.core.KurentoParticipantEndpointConfig - KMS event [IceComponentStateChange]: -> endpoint: str_CAM_KGJ2_con_TavYRYp2CN (publisher) | state: FAILED | componentId: 1 | streamId: 1 | timestamp: 1594814636373

Browser logs please see the image below

Please take a look.

Could you please test it pointing to our demos environment?

url: https://demos.openvidu.io/
secret: MY_SECRET

i have tested the demos environment . it is working just fine as expected. But i did the same going through the steps in openvidu-js-java docs. i followed those steps:

  1. clone the repo.
  2. install maven
  3. Build the code : mvn package exec:java
  4. docker run -p 4443:4443 --rm -e OPENVIDU_SECRET=MY_SECRET openvidu/openvidu-server-kms:2.15.0
  1. Go to (https://localhost:5000/)* to test the app once the server is running. The first time you use the docker container, an alert message will suggest you accept the self-signed certificate of openvidu-server when you first try to join a video-call.

i have completed all the steps but i didn’t come across the the alert message of self signed certificate message. it didn’t show while opening the video though.

i just couldn’t find the missing piece i should use to solve my problem. should i have to go through any other steps besides the docs mentioned? A little help would be great.

[i tried to use this as parameter while starting openvidu server since i didnot get any self signed confirmation message. sudo docker run -p 4443:4443 --rm -e OPENVIDU_SECRET=MY_SECRET -e DOMAIN_OR_PUBLIC_IP=192.168.1.106 -e CERTIFICATE_TYPE=selfsigned openvidu/openvidu-server-kms:2.15.0 . But it didn’t solve the problem]

I am having the same problem with working with openvidu-insecure-angular tutorial. The remote video is not appearing in the video. In the logs the openvidu.io server is disconnecting the stream. I changed the OPENVIDU_SERVER_URL to point to “https://demos.openvidu.io/”. When I did that the remote video appeared.

The link to my post is Peer streams in openvidu-insecure-angular do not appear on Windows browsers.

I ran the openvidu-server-kms:2.15.0 through powershell on a windows box, i.e. command used “docker run -p 4443:4443 --rm -e OPENVIDU_SECRET=MY_SECRET -e DOMAIN_OR_PUBLIC_IP=192.168.1.231 openvidu/openvidu-server-kms:2.15.0”.

What should I look at to further debug this?

Thanks,

Aaron

1 Like

OpenVidu is designed to be deployed in a linux machine.

We provide windows and mac support basically for development in that machine.

If you are deploying OpenVidu development container in a windows box, it is possible that it can not be acceded from other computers in the same network.

If you have a native linux machine connected to the LAN, try to deploy OpenVidu development container there. Or better, try to deploy OpenVidu for production usage as it is ready to be used from Internet.

Regads

Hi thanks for the response. I am currently trying to test openvidu in my linux machine locally. In my local environment i have completed all the steps everything is working fine except the remote participant screen gets blank. From the remote participant machine if i go to the openvidu server dashboard and test the connection IceComponentStateChange keeps failing. i have posted the logs here. if you just give me some closure about what could be done regarding this that would be very much appreciated. Thanks.

In your linux machine you have to deploy OpenVidu for production. Have you done that?

Thank you so much. now its working after deploying OpenVidu for production

1 Like