{"action":"closed","issue":{"url":"https://api.github.com/repos/webrtc/samples/issues/591","labels_url":"https://api.github.com/repos/webrtc/samples/issues/591/labels{/name}","comments_url":"https://api.github.com/repos/webrtc/samples/issues/591/comments","events_url":"https://api.github.com/repos/webrtc/samples/issues/591/events","html_url":"https://github.com/webrtc/samples/issues/591","id":97149189,"number":591,"title":"webkitGetUserMedia adapter fails in WebKit browsers other than Chrome","user":{"login":"lquinn","id":1836352,"avatar_url":"https://avatars.githubusercontent.com/u/1836352?v=3","gravatar_id":"","url":"https://api.github.com/users/lquinn","html_url":"https://github.com/lquinn","followers_url":"https://api.github.com/users/lquinn/followers","following_url":"https://api.github.com/users/lquinn/following{/other_user}","gists_url":"https://api.github.com/users/lquinn/gists{/gist_id}","starred_url":"https://api.github.com/users/lquinn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lquinn/subscriptions","organizations_url":"https://api.github.com/users/lquinn/orgs","repos_url":"https://api.github.com/users/lquinn/repos","events_url":"https://api.github.com/users/lquinn/events{/privacy}","received_events_url":"https://api.github.com/users/lquinn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-24T21:18:16Z","updated_at":"2015-07-27T13:47:59Z","closed_at":"2015-07-27T13:47:59Z","body":"The demo at https://webrtc.github.io/samples/src/content/getusermedia/gum/ fails right now on BlackBerry 10 devices because the JavaScript assumes that Chrome is the only WebKit-based browser that supports navigator.webkitGetUserMedia:\r\n\r\n```javascript\r\n} else if (navigator.webkitGetUserMedia) {\r\n  webrtcUtils.log('This appears to be Chrome');\r\n\r\n  webrtcDetectedBrowser = 'chrome';\r\n\r\n  // the detected chrome version.\r\n  webrtcDetectedVersion =\r\n    parseInt(navigator.userAgent.match(/Chrom(e|ium)\\/([0-9]+)\\./)[2], 10);\r\n```\r\n\r\nA TypeError is thrown because \"Chrom(e|ium)\" does not appear in the BB10 User-Agent.\r\n\r\nThe sample works on BlackBerry 10.3.2 when I use Web Inspector to override the User-Agent and masquerade as Chrome.\r\n\r\nCould we make webrtcDetectedVersion a bit more robust? There are other WebKit-based browsers out there that would probably trip over this too."}}