{"action":"created","issue":{"url":"https://api.github.com/repos/scala-js/scala-js-dom/issues/179","labels_url":"https://api.github.com/repos/scala-js/scala-js-dom/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/scala-js/scala-js-dom/issues/179/comments","events_url":"https://api.github.com/repos/scala-js/scala-js-dom/issues/179/events","html_url":"https://github.com/scala-js/scala-js-dom/pull/179","id":119252156,"number":179,"title":"Webrtc api","user":{"login":"coreyauger","id":1414300,"avatar_url":"https://avatars.githubusercontent.com/u/1414300?v=3","gravatar_id":"","url":"https://api.github.com/users/coreyauger","html_url":"https://github.com/coreyauger","followers_url":"https://api.github.com/users/coreyauger/followers","following_url":"https://api.github.com/users/coreyauger/following{/other_user}","gists_url":"https://api.github.com/users/coreyauger/gists{/gist_id}","starred_url":"https://api.github.com/users/coreyauger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreyauger/subscriptions","organizations_url":"https://api.github.com/users/coreyauger/orgs","repos_url":"https://api.github.com/users/coreyauger/repos","events_url":"https://api.github.com/users/coreyauger/events{/privacy}","received_events_url":"https://api.github.com/users/coreyauger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-27T21:53:41Z","updated_at":"2015-12-02T11:06:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scala-js/scala-js-dom/pulls/179","html_url":"https://github.com/scala-js/scala-js-dom/pull/179","diff_url":"https://github.com/scala-js/scala-js-dom/pull/179.diff","patch_url":"https://github.com/scala-js/scala-js-dom/pull/179.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/scala-js/scala-js-dom/issues/comments/161262387","html_url":"https://github.com/scala-js/scala-js-dom/pull/179#issuecomment-161262387","issue_url":"https://api.github.com/repos/scala-js/scala-js-dom/issues/179","id":161262387,"user":{"login":"mseddon","id":4021991,"avatar_url":"https://avatars.githubusercontent.com/u/4021991?v=3","gravatar_id":"","url":"https://api.github.com/users/mseddon","html_url":"https://github.com/mseddon","followers_url":"https://api.github.com/users/mseddon/followers","following_url":"https://api.github.com/users/mseddon/following{/other_user}","gists_url":"https://api.github.com/users/mseddon/gists{/gist_id}","starred_url":"https://api.github.com/users/mseddon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mseddon/subscriptions","organizations_url":"https://api.github.com/users/mseddon/orgs","repos_url":"https://api.github.com/users/mseddon/repos","events_url":"https://api.github.com/users/mseddon/events{/privacy}","received_events_url":"https://api.github.com/users/mseddon/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T11:06:28Z","updated_at":"2015-12-02T11:06:28Z","body":"In fact we don't need `@JSName` here at all.  We add an implicit conversion from the regular navigator object to your extended version:\r\n\r\nCreate a package object for `webrtc`, and in that do:\r\n\r\n```scala\r\nimplicit def toWebRTC(n: org.scalajs.dom.Navigator): NavigatorMediaSream =\r\n    n.asInstanceOf[NavigatorMediaSream]\r\n```\r\n\r\nNow, when you import your `webrtc` package, you can directly call `window.navigator.getUserMedia`.  Scala is awesome :)\r\n"}}