How do I download a image in the webcam example?

Get help using Construct 2

Post » Thu Jun 30, 2016 9:35 am

Hello,
I making test with the webcam example compiling with xdk.
When I open the project on android mobile is working good. But I´m not being able to save the snapshoot to the mobile´s gallery.
When you make a picture:----Load image from :UserMedia.SnapshotURL..........This works ok.
But when I try to download: invoke download from UserMedia.SnapshotURL........nothing happen.
Anyone could help?
Thanks :)
MY APPS ON GOOGLEPLAY
ImageImageImage
B
39
S
14
Posts: 100
Reputation: 2,923

Post » Thu Jun 30, 2016 5:39 pm

I don't know that Construct supports this naturally. You would have to build a custom plugin using something like this: https://github.com/mlocati/js-webcam-screenshot
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,414
Reputation: 4,822

Post » Thu Jun 30, 2016 7:39 pm

Thanks for answering. So it is not going to be easy. :)
MY APPS ON GOOGLEPLAY
ImageImageImage
B
39
S
14
Posts: 100
Reputation: 2,923

Post » Thu Jun 30, 2016 7:58 pm

Ok, it was not that hard. I had never used the file chooser objet. With this is solved.
MY APPS ON GOOGLEPLAY
ImageImageImage
B
39
S
14
Posts: 100
Reputation: 2,923

Post » Fri Jul 01, 2016 3:06 pm

Very nice :) Share your solution, so others can follow.
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,414
Reputation: 4,822

Post » Fri Jul 08, 2016 12:11 pm

That´s rigth, when I finish this proyect I´m going to do my first tutorial. By the moment I still have some issues.
MY APPS ON GOOGLEPLAY
ImageImageImage
B
39
S
14
Posts: 100
Reputation: 2,923


Return to How do I....?

Who is online

Users browsing this forum: DarknessGamingDK and 2 guests