Hacker News new | ask | show | jobs
by Klathmon 3708 days ago
Oh shit really? That's awesome!
1 comments

I think it was Chrome 48. It also doesn't work for localhost.
I think you're mistaken about localhost, this works fine for me on localhost:3000

    navigator.getUserMedia({
        video: true, 
        audio: true
      },
      console.log.bind(console, 'success'),
      console.log.bind(console, 'error')
    );
Chrome v50.0.2661.94 (64-bit) on OS X
Localhost is considered secure context, so it should still work for that...

It won't work with file:/// urls, but localhost is fine.

At least it was for me in 49 a couple weeks ago.

It would be pretty hard to use the API if you couldn't test your code on localhost :P