Closed daoma90 closed 3 years ago
Hi @daoma90
You have a little mistake in your code. Please change ConnectyCube.videoChat.onRemoteStreamListener
to ConnectyCube.videochat.onRemoteStreamListener
. All letters must be in lower case.
Oh god, now I feel like a dummy! :D
Thanks!
I'm trying to set up the onRemoteStreamListener and I get a type error.
TypeError: Cannot set property 'onRemoteStreamListener' of undefined
I'm currently just trying to console log the values from onRemoteStreamListener. The initListeners function is run in a useEffect with no dependencies.
The other video chat listeners are working. I can listen for calls, and I can listen to accepted calls. But when I add
ConnectyCube.videoChat.onRemoteStreamListener = onRemoteStreamListener;
I get a crash.If there is any more information I should add, please let me know.