Results 1 to 3 of 3

Thread: Ext.device.Camera.Capture gave Sencha Image

  1. #1

    Default Ext.device.Camera.Capture gave Sencha Image

    I'm trying to take a picture with this code:

    xtype: 'button',
    text: 'Take Picture',
    handler: function () {
    source: 'library',
    Ext.device.Camera.capture({
    success: function (image) {
    alert(image);
    },
    config: {
    quality: 75,
    scope: this,
    destination: 'file',
    encoding: 'jpg',
    height: "auto",
    width: 90
    }
    });
    }

    In the alert the message that is displayed is: http://www.sencha.com/img/sencha-large.png

    Does anyone know why?

    Help please

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    Are you in the browser or in a packaged app?
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3

    Default

    I was in the browser. I found out that the app must be packaged.

    Thanks anyway.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •