8

Building a mobile web app and trying to take advantage of the new WebRTC features that dropped with iOS 11, but I seem unable to access the microphone, at least from my XCode iOS 11 simulator (iPhone X)

All requests to navigator.mediaDevices.getUserMedia({ audio: true }) and all other constraint combinations I try result in an OverconstrainedError with error message: Invalid constraint

I've also verified that the simulator has correct input and output audio devices set. Safari also has rights to microphone and camera in the iOS settings.

To beat a dead horse I have also tried enabling all experimental features in the iOS settings menu for safari to make sure I hadn't missed anything.

Has anyone been able to successfully get the safari mobile browser to collect microphone input in the simulator?

Tom Wyllie
  • 2,020
  • 13
  • 16
Jackson Stone
  • 131
  • 1
  • 8
  • 2
    Have you found a solution so far? If yes, would you mind to create an answer to your question? – igorpavlov Mar 30 '18 at 21:07
  • I am having the same issue for ( repo: https://github.com/stephenlb/webrtc-sdk ) on the github repo https://github.com/stephenlb/webrtc-sdk/issues/48 WebRTC SDK the **simulator is not simulating!!!** – Stephen Blum Apr 03 '18 at 23:16
  • No, no solution yet @igorpavlov – Jackson Stone Apr 04 '18 at 14:07
  • 4
    @JacksonStone I checked with some people and it is *impossible* to test in iOS Simulator. The simulator does not simply has access to camera/mic. Also check https://stackoverflow.com/questions/25486080/how-to-access-ios-simulator-camera – igorpavlov Apr 04 '18 at 16:49
  • Thank you @igorpavlov this answers the question. Apple-- – Stephen Blum Apr 05 '18 at 16:26

0 Answers0