Closed AbhiSri2020 closed 3 years ago
Hi @AbhiSri2020 our sdk architecture does not provide that you have more then one videochat listeners You need to set up all listeners in one place (it can be service) in your app
Hi @AbhiSri2020 do you need help ?
Hi @AbhiSri2020 do you need help ?
@banshiAnton could you please help me to write the listeners for functional components
I am using the sample code provided in the master branch and made some changes so now I have same kind of listeners set up at different screens, as
Parrent has listeners: _onCallListener, _onAcceptCallListener, this._onRejectCallListener, this._onStopCallListener, this._onUserNotAnswerListener, _onRemoteStreamListener and grandchild also has the same listeners except for _onCallListener.
parent's componentDidMount code
grandchild componentDidMount code (_onCallListener is not present here)
and conponentWillUnmount
but when I unmount the grandChild and moved to the parent screen then also grandChild's _onRemoteStreamListener is called instead of the parent's _onRemoteStreamListener.