# Unified Plan - can't see video

**URL:** <https://react-native-webrtc.discourse.group/t/unified-plan-cant-see-video/1705>\
**Category:** General040642add70aa006ef56b5af5b5acae3\
**Created:** [February 3, 2023, 8:26am UTC](https://react-native-webrtc.discourse.group/t/unified-plan-cant-see-video/1705 "2023-02-03T08:26:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickmccomb](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/nickmccomb/32/693_2.png) [@nickmccomb](https://react-native-webrtc.discourse.group/u/nickmccomb)\
**Post date:** [February 3, 2023, 8:26am UTC](https://react-native-webrtc.discourse.group/t/unified-plan-cant-see-video/1705/1 "2023-02-03T08:26:49Z")

</div>

I can hear audio on both devices but can’t see video on either device. I have set _ **zOrder** _ properly, so that’s not the issue. My ICE connections are all successful, my _ **connectionstatechange** _ listener shows the connection state as connected.

I think i’m just adding the wrong thing to RTCView streamURL:

```auto
<RTCView
  mirror={true}
  objectFit={'cover'}
  streamURL={remoteStream.toURL()}
  zOrder={1}
/>

```

I add local stream by doing the following:

```auto
const stream = await mediaDevices.getUserMedia({
   audio: true,
   video: true
});

// add tracks to peer connection stream
stream.getTracks().forEach(track => {
   peerConnection.addTrack(track, stream);
});

setLocalStream(stream);

```

I set the remote streams for each device by doing the following:

```auto
peerConnection.addEventListener('track', event => {
   if (event?.streams) {
      setRemoteStream(new MediaStream(event.streams[0]));
   }
});

```

Am i adding the wrong thing to _ **setRemoteStream** _ in the event listener above?  
Any help would be greatly appreciated.

Thank you.

---

<div class="post-metadata">

**Author:** ![Romick2005](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/romick2005/32/701_2.png) [@Romick2005](https://react-native-webrtc.discourse.group/u/Romick2005)\
**Post date:** [February 17, 2023, 11:23am UTC](https://react-native-webrtc.discourse.group/t/unified-plan-cant-see-video/1705/2 "2023-02-17T11:23:21Z")

</div>

Have you tried to replace  
`setRemoteStream(new MediaStream(event.streams[0]));`  
with  
`setRemoteStream(event.streams[0]);`

---

<div class="post-metadata">

**Author:** ![nodahikaru](https://avatars.discourse-cdn.com/v4/letter/n/9d8465/32.png) [@nodahikaru](https://react-native-webrtc.discourse.group/u/nodahikaru)\
**Post date:** [May 29, 2023, 2:33pm UTC](https://react-native-webrtc.discourse.group/t/unified-plan-cant-see-video/1705/3 "2023-05-29T14:33:03Z")

</div>

@nickmccomb Can you share full example here? I have similar problems.
