Saving camera image then loading it later

Get help using Construct 2

Post » Tue May 07, 2013 6:21 am

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 System.save('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 system.save 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 :)

-RemyJay


B
56
S
13
G
1
Posts: 151
Reputation: 4,499

Post » Fri May 10, 2013 3:54 am

...Beuller...? :)
B
56
S
13
G
1
Posts: 151
Reputation: 4,499


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 28 guests