muaz-khan / RTCMultiConnection

RTCMultiConnection is a WebRTC JavaScript library for peer-to-peer applications (screen sharing, audio/video conferencing, file sharing, media streaming etc.)
https://muazkhan.com:9001/
MIT License
2.57k stars 1.37k forks source link

detect screen sharing end #7

Open Ijatsu opened 10 years ago

Ijatsu commented 10 years ago

Hi !

Every time I start screen sharing, then stop it with the chrome's button "stop sharing", both participants never receive any kind of event "onstreamended" or "onclose" ect...

Is there a way to detect it or is it a bug?

muaz-khan commented 10 years ago

I just tested following demo and it seems working.

Can you please test again? Hoping that v2.1.7 works. Maybe you need to reload page multiple times to clear old cache.

Almarane commented 9 years ago

Hi

I have the same issue. When I use connection.streams[screenID].stop(), it never raises event "onstreamended". The stream just goes black, and nothing else happens. I can't reload the page, since I use it to toggle on and off screen sharing for a Skype-like browser app on Chrome and Firefox.