【问题标题】:Ext.device.Camera.capture doesn't work on sencha touch 2.4.1 and cordova 2.9.1Ext.device.Camera.capture 不适用于 sencha touch 2.4.1 和 cordova 2.9.1
【发布时间】:2015-06-07 01:21:27
【问题描述】:

我在我的 sencha 应用程序中使用 Ext.device.Camera.capture 函数和 cordova for ios 但它不起作用,相机没有显示。

在 app.js 中,我需要“Ext.device.Camera”

这是代码

Ext.device.Camera.capture({
        success: function(image) {
            console.log(image);
        },
        failure: function(){
            Ext.Msg.alert("Errore", "Errore nel salvataggio della foto, per favore riprovare.");
        },
        quality: 85,
        width: 1280,
        height: 1713,
        destination: 'file',
        encoding: 'jpg'
});

n 控制台日志我得到'http://www.sencha.com/img/sencha-large.png'

【问题讨论】:

    标签: cordova extjs camera touch capture


    【解决方案1】:

    我忘记取消注释 app.json 中的 cordova 导入行

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-10-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多