Search code examples
getusermediaios11

iOS 11 Public beta 5 getUserMedia not working


I'm trying to experiment with the getUserMedia API that should be enabled in the ios11 beta as this questions seems to suggest: question

I'm trying to setup the same on my iPad with the latest public beta (5) but I can't get it to work. The error I get is:

NotAllowedError (DOM Exception 35): The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.

A popup that asked for permission never appears so I didn't deny this, I don't know what is going wrong. I tried enabling/disabling the experimental feature 'Remove Legacy WebRTC API' in the browser settings, but this has no effect either.

Do I need the developer beta to access this feature?

Thanks!


Solution

  • getUserMedia requires HTTPS unless you use the "allow media capture on insecure sites" shown in the first screenshot of this webkit blog post