You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/06/23 12:24:04 UTC

[GitHub] [cordova-plugin-inappbrowser] SameerCHS opened a new issue #740: Unable to access Camera for video recording feature of URL

SameerCHS opened a new issue #740:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/740


   # Bug Report
   
   ## Unable to access the camera while accessing the https://webcamtests.com/ URL for android and iOS ionic application
   
   ### It must allow access to the Camera for record the video
   
   
   
   ### It is not accessing the camera for any of the website like https://webcamtests.com/ 
   
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   I am working on one of the Ionic project and need to access client's website which access the camera and record the video. If we run the Website on browser, it ask for permission to access the camera and if we grant the permission, it will record the video and if we denied the permission we are facing same issue what we are facing for In-App-Browser Lib.
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   ```
   import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
   
   constructor(private iab: InAppBrowser) { }
   
   openBrowser(){
       const browser = this.iab.create('https://webcamtests.com/','_blank','location=no');
     }
   ```
   
   It is opening the browser in the application however when we visit the websites which are using the camera, it shows Steam is not available error or not able to access your camera. Native permissions(Application level) for accessing the camera are already granted.
   
   For only android it is working by adding following code in src/android/InAppChromeClient.java file(However don't know is it really only way to do this or not)
   ```
   @Override
   @TargetApi(Build.VERSION_CODES.LOLLIPOP)
   public void onPermissionRequest(PermissionRequest request) {
   request.grant(request.getResources());
   }
   ```
   
   ###Some error logs 
   Android(If we not modify src/android/InAppChromeClient.java)
   ```
   [ERROR:web_contents_delegate.cc(175)] WebContentsDelegate::CheckMediaAccessPermission: Not supported.
   ```
   IOS
   ```
   -  <_UIKBCompatInputView: 0x105455200; frame = (0 0; 0 0); layer = <CALayer: 0x282eb0fc0>> returned 0 width, assuming UIViewNoIntrinsicMetric
   - Unbalanced calls to begin/end appearance transitions for <UIViewController: 0x105347880>
   - Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
   ```
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   All the android, iOS mobile devices 
   
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   In-App-Browser 
   Cordova v9.0.0 (cordova-lib@9.0.1)
   Ionic v4
   Node v12.12.0
   NPM v6.14.1
   Development using MAC OS
   Andorid Studio 3.5.2
   XCode 11.3.1
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [X] I searched for existing GitHub issues
   - [X] I updated all Cordova tooling to most recent version
   - [X] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] timbru31 commented on issue #740: Unable to access Camera for video recording feature of URL

Posted by GitBox <gi...@apache.org>.
timbru31 commented on issue #740:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/740#issuecomment-648713160


   You've already opened #706 - one issue is enough.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-inappbrowser] timbru31 closed issue #740: Unable to access Camera for video recording feature of URL

Posted by GitBox <gi...@apache.org>.
timbru31 closed issue #740:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/740


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org