{"action":"created","issue":{"url":"https://api.github.com/repos/jhuckaby/webcamjs/issues/255","repository_url":"https://api.github.com/repos/jhuckaby/webcamjs","labels_url":"https://api.github.com/repos/jhuckaby/webcamjs/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/jhuckaby/webcamjs/issues/255/comments","events_url":"https://api.github.com/repos/jhuckaby/webcamjs/issues/255/events","html_url":"https://github.com/jhuckaby/webcamjs/issues/255","id":274229310,"number":255,"title":"Webcam fails in Safari","user":{"login":"splicebison","id":2931939,"avatar_url":"https://avatars3.githubusercontent.com/u/2931939?v=4","gravatar_id":"","url":"https://api.github.com/users/splicebison","html_url":"https://github.com/splicebison","followers_url":"https://api.github.com/users/splicebison/followers","following_url":"https://api.github.com/users/splicebison/following{/other_user}","gists_url":"https://api.github.com/users/splicebison/gists{/gist_id}","starred_url":"https://api.github.com/users/splicebison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/splicebison/subscriptions","organizations_url":"https://api.github.com/users/splicebison/orgs","repos_url":"https://api.github.com/users/splicebison/repos","events_url":"https://api.github.com/users/splicebison/events{/privacy}","received_events_url":"https://api.github.com/users/splicebison/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-15T16:55:08Z","updated_at":"2017-11-16T07:50:29Z","closed_at":null,"author_association":"NONE","body":"Webcam fails in Safari. This is due to line 319:\r\n\r\n`video.src = window.URL.createObjectURL( stream ) || stream;`\r\n\r\nThis can be replaced with:\r\n\r\n`video.srcObject = stream;`\r\n\r\nPlease note, this isn't tested across all browsers."},"comment":{"url":"https://api.github.com/repos/jhuckaby/webcamjs/issues/comments/344842488","html_url":"https://github.com/jhuckaby/webcamjs/issues/255#issuecomment-344842488","issue_url":"https://api.github.com/repos/jhuckaby/webcamjs/issues/255","id":344842488,"user":{"login":"splicebison","id":2931939,"avatar_url":"https://avatars3.githubusercontent.com/u/2931939?v=4","gravatar_id":"","url":"https://api.github.com/users/splicebison","html_url":"https://github.com/splicebison","followers_url":"https://api.github.com/users/splicebison/followers","following_url":"https://api.github.com/users/splicebison/following{/other_user}","gists_url":"https://api.github.com/users/splicebison/gists{/gist_id}","starred_url":"https://api.github.com/users/splicebison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/splicebison/subscriptions","organizations_url":"https://api.github.com/users/splicebison/orgs","repos_url":"https://api.github.com/users/splicebison/repos","events_url":"https://api.github.com/users/splicebison/events{/privacy}","received_events_url":"https://api.github.com/users/splicebison/received_events","type":"User","site_admin":false},"created_at":"2017-11-16T07:50:29Z","updated_at":"2017-11-16T07:50:29Z","author_association":"NONE","body":"To follow up on this, I'd recommend possible something like this (untested):\r\n\r\n`\r\ntry {\r\n  video.srcObject = stream;\r\n} catch ( error ) {\r\n  video.src = URL.createObjectURL( stream );\r\n}\r\n`"}}
{"actor":{"display_login":"splicebison"}}