Closed Ayman220 closed 3 years ago
answerCall/< ~/src/SocketContext.js:45
42 | }); 43 | 44 | peer.on('stream', (currentStream) => {
45 | userVideo.current.srcObject = currentStream; | ^ 46 | }); 47 | 48 | peer.signal(call.signal);
Apparently I was initializing the stream to null in SocketContext const [stream, setStream] = useState(null);
const [stream, setStream] = useState(null);
fixed by removing the null
null
answerCall/< ~/src/SocketContext.js:45
42 | }); 43 | 44 | peer.on('stream', (currentStream) => {