{"action":"created","issue":{"url":"https://api.github.com/repos/versatica/JsSIP/issues/328","labels_url":"https://api.github.com/repos/versatica/JsSIP/issues/328/labels{/name}","comments_url":"https://api.github.com/repos/versatica/JsSIP/issues/328/comments","events_url":"https://api.github.com/repos/versatica/JsSIP/issues/328/events","html_url":"https://github.com/versatica/JsSIP/issues/328","id":94892597,"number":328,"title":"JSSIP does not appear to call localPeerConnection.close(), causing IE camera to hang.","user":{"login":"nethertek","id":8987575,"avatar_url":"https://avatars.githubusercontent.com/u/8987575?v=3","gravatar_id":"","url":"https://api.github.com/users/nethertek","html_url":"https://github.com/nethertek","followers_url":"https://api.github.com/users/nethertek/followers","following_url":"https://api.github.com/users/nethertek/following{/other_user}","gists_url":"https://api.github.com/users/nethertek/gists{/gist_id}","starred_url":"https://api.github.com/users/nethertek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nethertek/subscriptions","organizations_url":"https://api.github.com/users/nethertek/orgs","repos_url":"https://api.github.com/users/nethertek/repos","events_url":"https://api.github.com/users/nethertek/events{/privacy}","received_events_url":"https://api.github.com/users/nethertek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-14T08:19:24Z","updated_at":"2015-07-21T11:21:24Z","closed_at":null,"body":"Please investigate or point in the right direction without prematurely closing this issue.\r\n\r\nReferences:\r\n\r\nhttps://plugin.temasys.com.sg/demo/samples/web/content/peerconnection/munge-sdp/index.html\r\nhttps://groups.google.com/forum/#!topic/temasys-discuss-webrtcplugin/w1kkdJPo3Y0"},"comment":{"url":"https://api.github.com/repos/versatica/JsSIP/issues/comments/123269007","html_url":"https://github.com/versatica/JsSIP/issues/328#issuecomment-123269007","issue_url":"https://api.github.com/repos/versatica/JsSIP/issues/328","id":123269007,"user":{"login":"ibc","id":16191,"avatar_url":"https://avatars.githubusercontent.com/u/16191?v=3","gravatar_id":"","url":"https://api.github.com/users/ibc","html_url":"https://github.com/ibc","followers_url":"https://api.github.com/users/ibc/followers","following_url":"https://api.github.com/users/ibc/following{/other_user}","gists_url":"https://api.github.com/users/ibc/gists{/gist_id}","starred_url":"https://api.github.com/users/ibc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibc/subscriptions","organizations_url":"https://api.github.com/users/ibc/orgs","repos_url":"https://api.github.com/users/ibc/repos","events_url":"https://api.github.com/users/ibc/events{/privacy}","received_events_url":"https://api.github.com/users/ibc/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T11:21:24Z","updated_at":"2015-07-21T11:21:24Z","body":"In Tryit, when the session ends JsSIP calls `close()` on the `RTCSession` instance, which internally does:\r\n\r\n```javascript\r\n[Log] JsSIP:RTCSession close() +2ms\r\n[Log] rtcninja:RTCPeerConnection close() +2ms\r\n[Log] JsSIP:RTCSession close() | closing local MediaStream +3ms\r\n[Log] rtcninja:Adapter closeMediaStream() | calling stop() on the MediaStream +4ms\r\n```\r\n\r\nSo the peerconnection is clearly closed along with the MediaStream.\r\n\r\nSaid that, in order to the webcam light to turn off the local MediaStream must be closed, which is what JsSIP does.\r\n\r\nThis must be a bug in the plugin, not in JsSIP, not even in the tryit demo."}}