I am confused why
Modernizr.getusermedia
is undefined, but when I type in
!!navigator.webkitGetUserMedia
it returns true. I am using Chrome and I know webrtc is supported... so why does Modernizr say its undefined.
The Modernizr that I downloaded with bower has the getusermedia.js file in it with the line:
Modernizr.addTest('getusermedia', !!Modernizr.prefixed('getUserMedia', navigator));
getUserMedia
isn't a core test in Modernizr so it is not included by default.
When you setup your own download on the Modernizr website you can select it to include it but Bower loads the default.
Bower just clones the Git repo to you local machine so when you want none core tests you'll have to do some extra work.
To add that test also include the file feature-detects/webrtc/getusermedia.js
in your page or add the contents of that script to another script on the page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With