Github user douglasmoraisdev commented on the issue:

    https://github.com/apache/cordova-plugin-camera/pull/282
  
    
    > The code you link to (step 4 of the guide) doesn't use 
cordova-plugin-camera's JS API. It uses:
    
    @filmaj, yes, you're right. But this is a html5 web codage, if you apply 
this codelab to your cell phone, you will need to (or choose) to use the 
cordova-plugin-camera.
    
    For use...
    ```
    navigator.getUserMedia = navigator.getUserMedia ||
        navigator.webkitGetUserMedia || navigator.mozGetUserMedia;
    ```
    ... on mobile, you need the plugin and permissions on camera.
    
    I found the same problem testing this project:
    https://github.com/eface2face/iOSRTCApp
    
    It's a diferent implementation than the Codelabs, and this uses the 
cordova-plugin-camera too. On a Android 7.0 device, i can't access the camera 
(black screen).
    
    This is just an example. I found the problem this way, but I see this 
affect the new Android 7.0 (SDK 24 and 25) and upcoming versions because of the 
new permissions-related changes. You can read more about this at:
    
Https://developer.android.com/about/versions/nougat/android-7.0-changes.html#perm
 (changes on permissions section).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to