Temasys / AdapterJS

AdapterJS Javascript Polyfill and Tools for WebRTC - Skylink WebRTC
http://skylink.io/web
Other
429 stars 100 forks source link

AJS-257: Fixes to ensure that navigator.mediaDevices is always defined. #185

Closed oooookk7 closed 8 years ago

oooookk7 commented 8 years ago

Re-opened from #184 due to incorrect branch.


This should fix the issue in IE browsers that navigator.mediaDevices is not defined.

See JIRA Ticket - AJS-257

oooookk7 commented 8 years ago

Tested in both Safari 8.0.6 (Plugin 0.8.866) and IE 9 / 11.

johache commented 8 years ago

@letchoo how about this instead ? Can you test and tell me if that works for you.

Reasoning is as follow: Even if we define mediaDevices, mediaDevices.getUserMedia / requesteMedia will still be undefined. Better not defining anything at all. When we add promises support to IE 11 and less, that issue will be fixed.

oooookk7 commented 8 years ago

Seems fine. Tested with Safari 8.0.6 and IE 9