facebook

Capturing camera/picture data without PhoneGap

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #345414 Reply

    Publio Decio
    Member

    I would like to capture images without PhoneGap, I found reading this article

    http://www.raymondcamden.com/index.cfm/2013/5/20/Capturing-camerapicture-data-without-PhoneGap

    shows that this type of input:

    <input type=”file” capture=”camera” accept=”image/*” id=”takePictureField”>

    I tried to change the attributes of the input at runtime without great results.

    I would like to ask:
    1) if you can change them?
    2) if you can not have in the future are going to implement this new type of input?

    thanks for your attention
    Alessandro

    #345416

    support-michael
    Keymaster

    >I tried to change the attributes of the input at runtime without great results.

    No you can not generally change the type attribute of an <input> element. (At least that has been our experience in the past for similar experiments). As you have indicated there are some cool new capabilities coming to web browsers soon.

    You may consider an experiment using an html widget that includes use a styled <input> element. If you give this a go please share your results. We are always interested in cool new techniques.

    #345425

    Alessandro,

    I have put together a small demo to make use of the feature you mentioned.
    I am not sure if this version of the task will suit your needs.
    FWIW, it was a good exercise.

    You need to replace the initial image file I used with something else from your system.
    Then when you take a picture, it will replace the one in the display.

    Turgut

    See attachment GetPicNoPG.mobi

    Attachments:
    You must be logged in to view attached files.
    #345485

    Publio Decio
    Member

    thanks for the replies and the example working perfectly.
    Continuing my research I found the following article:
      http://www.html5rocks.com/en/tutorials/getusermedia/intro/
    unfortunately that is not yet available at runtime, when will you open up infinite possibilities for our professional developers.

    Merry Christmas to all
    Alessandro

    #349295

    riclf
    Participant

    tguneysu,

    I downloaded and tried to open your .mobi attachment but my program Calibri couldn’t open it. May I ask you to submit it again as a simple zip file ? I would really like to study your sample code. Thanks.

    -Ric

    #349300

    Are you a M1 user ?
    You need the program to load and read the contents of mobi files.

    TG

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Capturing camera/picture data without PhoneGap

You must be logged in to post in the forum log in