Saving camera image then loading it later

0 favourites
  • 2 posts
From the Asset Store
Progress\Loading Bar. Now Load you game like a Professional.
  • Hi all,

    Firstly, I hope I've posted this in the right forum.

    Secondly, here I go...

    I'm using the UserMedia object to enabled the camera and take a photo, I then use the UserMedia.snapshotURL in conjunction with another 'destinationSprite' that I have in my project. I use destinationSprite.loadimage from usermedia.snapshoturl and can save a copy of the snapshot temporarily -- all good so far.

    HOWEVER, where things break down is when I then try to'save_photo') and then later system.load('save_photo'). I can't seem to get the captured image back to be displayed on a sprite via sprite.loadimage(). Should I be able to via this method? I read in the manual that doesn't save UserMedia STREAMS however, I would have thought if I TRANSFERED the snapshot to a sprite that at least a sprite's content could be saved and loaded correctly?

    I've also tried using the Browser object and downloading the captured image, however, I'm not sure how to reference that file when I use destinationSprite.loadimage(http:// localfile system?)

    If anyone has had any relivant experiences in this domain, I'd love to hear from you!

    Thanks :)


  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • ...Beuller...? :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)