Problem in ScreenSharing in WEBRTC using MERN STACK
I’m making a simple google meet type application using MERN STACK. I have connected the user’s they can communicate over each other through video calling. But when User A tries to screenshare i’m adding the tracks & the stream of it to user B. I just want that whenever my tracks are added user B will receive the remote stream and then that stream will be added in the srcObject but here my ontrack function is not working IDK why. IF somebody can help me out it will be great. Thanks a lot in advance!!! Provding my code snippet.