{"action":"created","issue":{"url":"https://api.github.com/repos/sarandogou/webrtc-everywhere/issues/43","labels_url":"https://api.github.com/repos/sarandogou/webrtc-everywhere/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/sarandogou/webrtc-everywhere/issues/43/comments","events_url":"https://api.github.com/repos/sarandogou/webrtc-everywhere/issues/43/events","html_url":"https://github.com/sarandogou/webrtc-everywhere/issues/43","id":111041947,"number":43,"title":"Can't create RTCIceCandidate?","user":{"login":"jespermjonsson","id":584245,"avatar_url":"https://avatars.githubusercontent.com/u/584245?v=3","gravatar_id":"","url":"https://api.github.com/users/jespermjonsson","html_url":"https://github.com/jespermjonsson","followers_url":"https://api.github.com/users/jespermjonsson/followers","following_url":"https://api.github.com/users/jespermjonsson/following{/other_user}","gists_url":"https://api.github.com/users/jespermjonsson/gists{/gist_id}","starred_url":"https://api.github.com/users/jespermjonsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jespermjonsson/subscriptions","organizations_url":"https://api.github.com/users/jespermjonsson/orgs","repos_url":"https://api.github.com/users/jespermjonsson/repos","events_url":"https://api.github.com/users/jespermjonsson/events{/privacy}","received_events_url":"https://api.github.com/users/jespermjonsson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-12T19:45:49Z","updated_at":"2015-10-13T09:36:03Z","closed_at":null,"body":"Shouldn't it be possible to create ice candidate instances like this:\r\n\r\n```javascript\r\nnew RTCIceCandidate({ candidate: \"candidate:1680186374 2 udp 1686052606 10.0.16.1 37198 typ srflx raddr 10.0.1.10 rport 55221 generation 0\", sdpMLineIndex: 1, sdpMid: \"video\" });\r\n```\r\n\r\nOn OSX 10.10.5 and Safari 9 I only get \"Error calling method on NPObject.\". Opening the console on https://doubango.org/webrtc/samples/web/content/peerconnection-states/ and running the above code even produces this error."},"comment":{"url":"https://api.github.com/repos/sarandogou/webrtc-everywhere/issues/comments/147663606","html_url":"https://github.com/sarandogou/webrtc-everywhere/issues/43#issuecomment-147663606","issue_url":"https://api.github.com/repos/sarandogou/webrtc-everywhere/issues/43","id":147663606,"user":{"login":"jespermjonsson","id":584245,"avatar_url":"https://avatars.githubusercontent.com/u/584245?v=3","gravatar_id":"","url":"https://api.github.com/users/jespermjonsson","html_url":"https://github.com/jespermjonsson","followers_url":"https://api.github.com/users/jespermjonsson/followers","following_url":"https://api.github.com/users/jespermjonsson/following{/other_user}","gists_url":"https://api.github.com/users/jespermjonsson/gists{/gist_id}","starred_url":"https://api.github.com/users/jespermjonsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jespermjonsson/subscriptions","organizations_url":"https://api.github.com/users/jespermjonsson/orgs","repos_url":"https://api.github.com/users/jespermjonsson/repos","events_url":"https://api.github.com/users/jespermjonsson/events{/privacy}","received_events_url":"https://api.github.com/users/jespermjonsson/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T09:36:03Z","updated_at":"2015-10-13T09:36:03Z","body":"It seems that after removing the \"type check\" code from \"RTCIceCandidate::Init\" in npapi/RTCIceCandidate.cc\r\n\r\n```c++\r\nRTCIceCandidate* _candidateInitDict = (RTCIceCandidate*)(RTCIceCandidate::IsInstanceOf(npObj) ? npObj : Utils::NPObjectUpCast(npObj));\r\nif (!_candidateInitDict) {\r\n    CHECK_NPERR_RETURN(NPERR_GENERIC_ERROR);\r\n}\r\n```\r\n\r\nI started working for me, why is this check necessary?"}}