Added functionality in apprtc demo to close the capture device on hangup.
BUG=1589 R=juberti@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2018004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4540 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
a05653b2c1
commit
83ffb0dd5c
@ -312,6 +312,7 @@
|
||||
function onHangup() {
|
||||
console.log('Hanging up.');
|
||||
transitionToDone();
|
||||
localStream.stop();
|
||||
stop();
|
||||
// will trigger BYE from server
|
||||
socket.close();
|
||||
|
Loading…
x
Reference in New Issue
Block a user