Video is not visible

Hello all,

I am using openvidu to develop video call application. I wrote my own backend using openvidu-java-client library and I am able to get token from it.

I cloned the tutorials project from github (following docs) and used insecure-angular-js application and changed the token fetching process from my backend.

Everything is working fine. When the user joins the session, the video is not seen.

Let’s say, if userA joins sessionA and userB joins sessionA, userA can see his own video and same for userB but the div is only shown with name but the video is not shown.

The image is:

error

Please help me out.

The logs in console are:

It looks like something wrong with your backend. Try with the original openvidu-insecure-js and test if this is fixed.

If it is, you have to debug your backend code.

Cheers

Thanks a lot @CSantosM for your time.

Sure, I will try that.
I am using the same code from Github.

I only comment out this piece of code from my backend.

String serverData = "{\"serverData\": \"" + httpSession.getAttribute("loggedUser") + "\"}";

Is this the reason? Other than that everything is same as this code.

Hi @CSantosM,

I used the openvidu-insecure-js without my backend but it’s still same. Can you please help me out?

I don’t know what openvidu deployment are you using @surajgautam, please point to our dev environment

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

@CSantosM Hi there, when I used the url that you provided, I can see both of the videos. But when I use my deployment, I am facing the same issue.

I am using this docker compose file to run in my AWS EC2 instance. I am able to get token from it. (no firewall issue).

openvidu:
container_name: openvidu
image: openvidu/openvidu-server-kms:2.15.0
environment:
OPENVIDU_SECRET: MY_SECRET
DOMAIN_OR_PUBLIC_IP: 18.220.67.235
ports:
- “4443:4443”

If https://demos.openvidu.io server is working for you, then you have a problem deploying your server.

Please follow the deployment steps and be sure required ports are open. Getting the token is not a warranty that all the required ports are open.

@micael.gallego Thanks a lot for your instant reply.

This is my development environment and hence I used openvidu/openvidu-server-kms:2.15.0 docker image according to docs.

The inbound rule is set to allow ALL traffic and ALL port.

I have self-signed certificate. I can open this https//:18.220.67.235:4443 however.

Development environment not only implies the deployment where you are developing your application. Development environment refers to a local environment ready to be run with a simple command.

Production environment refers to a deployment publicly accessible by final users over the Internet.

In this case you are mixing things up. You are trying to run a development deployment of OpenVidu in AWS and trying to access it as it was a production deployment, as a final user from outside the AWS network.

If you want to use an AWS deployment as your dev environment, then follow regular deployment instructions: https://docs.openvidu.io/en/latest/deployment/deploying-aws/

But if you want to save infrastructure money, I recommend you develop your app in your local network : https://docs.openvidu.io/en/latest/deployment/#openvidu-for-development