# Check remote video

**URL:** <https://react-native-webrtc.discourse.group/t/check-remote-video/1087>\
**Category:** Help\
**Created:** [January 5, 2021, 5:23pm UTC](https://react-native-webrtc.discourse.group/t/check-remote-video/1087 "2021-01-05T17:23:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adrian](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Adrian](https://react-native-webrtc.discourse.group/u/Adrian)\
**Post date:** [January 5, 2021, 5:23pm UTC](https://react-native-webrtc.discourse.group/t/check-remote-video/1087/1 "2021-01-05T17:23:14Z")

</div>

Hi.

Is there anyway to check if something did not work and the remote video is not being recieved?  
I had an error in my code: I wasn´t adding all the Icecandidates and the video did not appear.  
The error was fixed but I would like to know how to validate the remote video or communication.

I don’t see any difference in event.stream on onaddstream.  
It has the same information when it works and when it doesn’t work

In Web I use:

if (!(remoteVideo.readyState \<= HTMLMediaElement.HAVE\_CURRENT\_DATA || remoteVideo.paused || remoteVideo.currentTime \<= 0)) {  
console.log(“Video OK”);  
}

---

<div class="post-metadata">

**Author:** ![JeromeMaquoi](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JeromeMaquoi](https://react-native-webrtc.discourse.group/u/JeromeMaquoi)\
**Post date:** [January 21, 2021, 10:10am UTC](https://react-native-webrtc.discourse.group/t/check-remote-video/1087/2 "2021-01-21T10:10:43Z")

</div>

Have you found a solution? I have an issue for remote stream. Sometimes it shows but it depends on if the devices are on the same Wifi or wifi + mobile network. The remote stream does not appear and I want to know why so I’m interested in checking if the remote stream is ok or not 🙂

---

<div class="post-metadata">

**Author:** ![adekunle11](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/adekunle11/32/463_2.png) [@adekunle11](https://react-native-webrtc.discourse.group/u/adekunle11)\
**Post date:** [June 12, 2021, 10:35pm UTC](https://react-native-webrtc.discourse.group/t/check-remote-video/1087/3 "2021-06-12T22:35:51Z")

</div>

Hello, you need TURN servers to connect outside LAN…

STUN servers only work within the same connection, i’m guessing thats why you have this issue

```auto
iceServers: [
                { urls: ['stun:stun1.l.google.com:19302'] },
                {
                username: 'UDmiIontMhqXlxnMlarXDAAAAAF-x2KhBZGVrdW5sZTE=',
                credential: 'c531d2e62ac140004',
                credentialType: 'password',
                urls: [
                    "turn:us-turn4.example.com:80?transport=udp",
                    "turn:us-turn4.example.com:3478?transport=udp",
                    "turn:us-turn4.example.com:80?transport=tcp",
                    "turn:us-turn4.example.com:3478?transport=tcp",
                    "turns:us-turn4.example.com:443?transport=tcp",
                    "turns:us-turn4.example.com:5349?transport=tcp"
                ]
                }
            ]

```
