gfodor / p2pcf

Low cost, low effort P2P WebRTC serverless signalling using Cloudflare Workers
MIT License
952 stars 53 forks source link

Listen for a stream removed #20

Open JoseIsra opened 1 year ago

JoseIsra commented 1 year ago

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