# Video is not visible

**URL:** <https://openvidu.discourse.group/t/video-is-not-visible/1787>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [August 12, 2020, 5:08pm UTC](https://openvidu.discourse.group/t/video-is-not-visible/1787 "2020-08-12T17:08:20Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![surajgautam](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@surajgautam](https://openvidu.discourse.group/u/surajgautam)\
**Post date:** [August 12, 2020, 5:08pm UTC](https://openvidu.discourse.group/t/video-is-not-visible/1787/1 "2020-08-12T17:08:20Z")

</div>

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](https://global.discourse-cdn.com/free1/uploads/openvidu/original/1X/c6a77ae07e9ec932203f42f2fa9d3867d92ef048.png)

Please help me out.

---

<div class="post-metadata">

**Author:** ![surajgautam](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@surajgautam](https://openvidu.discourse.group/u/surajgautam)\
**Post date:** [August 12, 2020, 5:08pm UTC](https://openvidu.discourse.group/t/video-is-not-visible/1787/2 "2020-08-12T17:08:53Z")

</div>

The logs in console are:

 ![console-log](https://global.discourse-cdn.com/free1/uploads/openvidu/original/1X/a64c4d75552062a17e7c34166949017b5ed249af.png)

---

<div class="post-metadata">

**Author:** ![CSantosM](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/csantosm/32/16_2.png) [@CSantosM](https://openvidu.discourse.group/u/CSantosM)\
**Post date:** [August 13, 2020, 7:37am UTC](https://openvidu.discourse.group/t/video-is-not-visible/1787/3 "2020-08-13T07:37:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![surajgautam](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@surajgautam](https://openvidu.discourse.group/u/surajgautam)\
**Post date:** [August 13, 2020, 8:14am UTC](https://openvidu.discourse.group/t/video-is-not-visible/1787/4 "2020-08-13T08:14:44Z")

</div>

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](https://github.com/OpenVidu/openvidu-tutorials/blob/master/openvidu-js-java/src/main/java/io/openvidu/js/java/SessionController.java).

---

<div class="post-metadata">

**Author:** ![surajgautam](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@surajgautam](https://openvidu.discourse.group/u/surajgautam)\
**Post date:** [August 13, 2020, 5:58pm UTC](https://openvidu.discourse.group/t/video-is-not-visible/1787/5 "2020-08-13T17:58:30Z")

</div>

Hi @CSantosM,

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

---

<div class="post-metadata">

**Author:** ![CSantosM](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/csantosm/32/16_2.png) [@CSantosM](https://openvidu.discourse.group/u/CSantosM)\
**Post date:** [August 14, 2020, 7:56am UTC](https://openvidu.discourse.group/t/video-is-not-visible/1787/6 "2020-08-14T07:56:32Z")

</div>

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

url : [https://demos.openvidu.io](https://demos.openvidu.io)  
secret MY\_SECRET

---

<div class="post-metadata">

**Author:** ![surajgautam](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@surajgautam](https://openvidu.discourse.group/u/surajgautam)\
**Post date:** [August 19, 2020, 5:58pm UTC](https://openvidu.discourse.group/t/video-is-not-visible/1787/7 "2020-08-19T17:58:55Z")

</div>

@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”

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [August 19, 2020, 7:07pm UTC](https://openvidu.discourse.group/t/video-is-not-visible/1787/8 "2020-08-19T19:07:49Z")

</div>

If [https://demos.openvidu.io](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.

---

<div class="post-metadata">

**Author:** ![surajgautam](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@surajgautam](https://openvidu.discourse.group/u/surajgautam)\
**Post date:** [August 19, 2020, 7:18pm UTC](https://openvidu.discourse.group/t/video-is-not-visible/1787/9 "2020-08-19T19:18:28Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [August 20, 2020, 9:07am UTC](https://openvidu.discourse.group/t/video-is-not-visible/1787/10 "2020-08-20T09:07:40Z")

</div>

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/](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](https://docs.openvidu.io/en/latest/deployment/#openvidu-for-development)
