ANDROID CAMERA DISPLAYED IN APP * Finally figured a way to do it *

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • For years I have been asking for an object to Have the Android Camera appear in our mmf2.5 dev apps, to no avail.
    For years I have searched this forum for any clue to make it work.
    As Android changed, so did permissions and such. Which ended up making it even harder to figure out a way to do it.

    Well, fellow Clickers. I have found a way to do this. It is a Odd and round about way, but it works flawlessly.

    HOW TO IMPLEMENT A CAMERA DISPLAY INTO YOUR APPS:

    1) You need a URL with Camera Abilities for Android. You can use this one I made for everyone to test with. Please login to see this link.

    2) Use WEBVIEW 2 for your Display Screen in app

    3) Use the ANDROID CAMERA to trigger the Permission needed to use your Camera in your device you are testing on ( Make sure you have the Camera Permission set in your runtime )

    4) Direct WEBVIEW 2 to the url I provided I.E. Start of Frame, Click a button, etc...


    That's about it

    Now just compile your app and run it.

    Below is a sample implemented with buttons and such.

    Please login to see this media element.

    Hope this helps you out!!!

  • Making your own Webpage work for Camera options.

    Your Webpage must be HTTPS compliant with google.
    This will allow HTML Android Camera code to run.

    I have not yet added record features. I am thinking to trigger a screen record function next via a Webpage. Stay tuned...

  • Crazy part is if I render this with the Latest Fusion and the Latest Android. Nothing. If I Render it with an older Fusion and a older Android. Success!
    Now here is where it gets interesting. If I render it with the latest Fusion and the older android code, that has recently been downloaded. Still doesn't work.

    Something tells me the Older Android downloaded now has been fiddled with from Google to prevent old ways of doing things from happening.

  • Anyone Create a Display surface for the Android camera for Fusion yet?
    As stated, I was able to do this for awhile using the WEBVIEW2 Object, until Google changed things yet again.
    So I assume, it wouldn't be that big of a problem to do considering it was already done with extensions already available.

    Thanks in advance!

  • Anyone Create a Display surface for the Android camera for Fusion yet?
    As stated, I was able to do this for awhile using the WEBVIEW2 Object, until Google changed things yet again.
    So I assume, it wouldn't be that big of a problem to do considering it was already done with extensions already available.

    Thanks in advance!

    Hi,

    This is my internal test camerafx application for android. It use Gl surface to texture and use camera ;
    First of all try to build if it's working for you here it's working nice on Galaxy 21; Waiting for Galaxy 24 to test it :)

    After copying file on Extensions/Unicode for Acamerafx.mfx file
    And copy Data\Runtime\Android Acamerafx.zip

    Open Fusion and create android poject, insert Acamerafx object ; do nothing with events

    Build options are API 32 , minimum version 4.4 , Target version 12.

    Use opengl2 option , orientation portait...
    Keep Package name to : com.yourcompany.yourapplication

    ** And tell me if it's working.... for you

    Extension:


  • Works FLAWLESS! Do you plan on Releasing this on the clickstore? I want one I can use in my projects. X)

  • Ok i will work on this in priority ...i have a huge todo list , what options do you want really in this extension ?

    Resizable.

    Overlays with fusion objects.
    I.E. ACAMERAFX01 can be layered to background. Fusion Strings and objects over top of ACAMERAFX Object Display Surface!

    Brightness and Contrast control
    I.E. Able to link to Counters in Fusion to control the brightness and Contrast levels

    *************************************************************************
    If possible,

    Face / Body Tracking if possible.
    I.E. SLS Stick figure or at minimal Eye and mouth tracking like Tiktok has the dog face. Basically the user of fusion could use Objects as graphics for the tracking. X position / y position of detected left eye .X position / y position of detected right eye.
    X position / y position of detected nose . X position / y position of detected Mouth.

    Plus, whatever you think! To me, this is Ground Breaking for fusion! I remember years ago, people wanting this like crazy and was told it can't be done.
    Sure, what I made was a wonky exploit of Android but it proved it could be done.
    What you made is PRICELESS!

    Again bud, Excellent work bringing Fusion into the realm of being amazing again. Clickteam needs to hire you on Directly.
    Your Beta Object ACAMERAFX01 is 1,000 times better then the Android Camera Object in Fusion. The Android Camera Object, that is in fusion is a joke. To me, it is just a shortcut icon.

    Edited once, last by VBEinc (December 18, 2022 at 6:45 AM).

  • Hope i can finish this job correctly :)

    Size is now equal to object size you can adjust the size;
    Camera mode ; back camera or front camera
    buttons or other control views are now front of camera screen;

    Please login to see this attachment.

    The rest need work but doable like contrast gamma or the other shader.

  • This is awesome Gigatron
    Is it possible to get/select different rear cameras? my phone has 4 rear cameras for zoom etc

    I can detect the number of cameras have 4 on S21; I'am reading goolgle camera source code.. slowly :)
    so hope i will done something exploitable on Fusion ;

    - Can now set different camera..
    - Contrast factor or other shader float uniform can be changed from event editor
    - Screen shot is now working nice ;

    Regards

    Edited 3 times, last by Gigatron (December 18, 2022 at 4:43 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!