1

我想在 ionic v1 中访问 WebView 中的摄像头。我试过这段代码: var options = { location: 'no', clearcache: 'yes', toolbar: 'no' };

   $ionicPlatform.ready(function() {
    $cordovaInAppBrowser.open('https://turncameraon.com/', '_blank', options)
      .then(function(event) {
        // success
        //https://gonative.io/success
      })
      .catch(function(event) {
        // error
      });

  });

但是,我没有获得任何插件来使用 webview 代码访问 getUserMedia 权限。如何使用 webview 访问 getUserMedia 权限?

4

0 回答 0