webRTC-io / webRTC.io

An abstraction layer for webRTC. Aim is to simplify the HTML5 web standard webRTC in a similar manner to socket.io w/ websockets. Highly experimental technology
1.6k stars 293 forks source link

End Video Conf without closing browser tab #8

Open shanlalit opened 11 years ago

shanlalit commented 11 years ago

Hello,

Thanks for webRTC.io

In my application I have two buttons to Join/Start Call and another to End the call.

We need an implementation by which user can end the call without closing the browser tab and if required he can re-join the meeting by clicking the Join/Start Call button again in the same tab. Currently we have implemented this using our own WebRTC implementation which is using Socket.io.

I have tried to implement the socket('close') as a different method "hang_up" (code same as 'close') but I'm facing couple of issues -

For a moment just ignore what I tried to implement, instead suggest couple of options to hang-up and Re-join the call without closing the browser tab.

I'm using chrome Version 23.0.1271.6 dev (Ubuntu) and Chromium 21.* on Mac.

Thanks Lalit

Jorger commented 11 years ago

Hi, I have the same problem, I wish through a button, you can end the call, but despite that "destroy" the video is still transmitting, it would be helpful to know how to solve this problem, webrtc.io is fantastic and I managed very well implemented, so only I have this problem.

Thanks for attention

Jorger commented 11 years ago

Hi, I have not managed to solve the problem of end the video call, via a button, the chat in which I am using webrtc.io runs on a popup, so to cancel the call I close the window, but the webcam still running, but no video output at times causes Chrome to crash, by the time the solution is temporary.

I would appreciate knowing if you've managed to solve this problem, thanks for attention.

shanlalit commented 11 years ago

Hi Jorger, I have suspended my project, so can't give you any updates as of now.

However I would recommend using http://easyrtc-wp.com/prod/ instead of webrtc.io

Jorger commented 11 years ago

Hi, I found a possible solution in the code there is an array called rtc.streams, which contains the value of localStream through the stop() option:

rtc.streams [0]. Stop ();

The camera is released, is a temporary solution, but it helps the camera does not lit.

I found information about this problem in: https://code.google.com/p/chromium/issues/detail?id=140444

Thank you for your attention

shanlalit commented 11 years ago

Thanks Jorger, for posting your solution on this issue.