gfodor / p2pcf

Low cost, low effort P2P WebRTC serverless signalling using Cloudflare Workers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Listen for a stream removed

JoseIsra opened this issue · comments

HI, I can see according to the examples that the "addStream" method works when you are starting your camera and this event is listened to thanks the "track" event like : "p2pcf.on('track', ..etc)" . My question is what is the event or how can i handle the event when a user turns off the camera. I have tried with the "removeStream" method but it's not working. Maybe i missing something. Thank you so much