[REQUEST] UserMedia Capture - Load image

Discussion and feedback on Construct 2

Post » Sun Jun 15, 2014 12:46 am

@Ashley Why didn't you add an option to select pictures in hard drive instead of use camera?

According to example 5, ignore upload function, just draw on canvas in client-side:

http://dev.w3.org/2009/dap/camera/


Using File API, it's now compatible in most browsers for mobile devices, http://caniuse.com/fileapi


Node-webkit is other story, only for desktops but useful to write and read external files without permission.
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Mon Jun 16, 2014 1:15 am

+1 would like to know this too.
B
18
S
6
Posts: 348
Reputation: 2,633

Post » Mon Jun 16, 2014 3:04 pm

The part of the spec you referenced is an extension to the input element, which isn't really relevant to User Media since it's not a form control. I guess a file-chooser form control could be useful though - I'll look in to it for the next beta.
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,361

Post » Mon Jun 16, 2014 4:39 pm

Ashley wrote:The part of the spec you referenced is an extension to the input element, which isn't really relevant to User Media since it's not a form control. I guess a file-chooser form control could be useful though - I'll look in to it for the next beta.

@Ashley

That's great news! Would be useful for many applications such as map editors, profile pictures/ avatars etc within our games. Right now I use this file reader plugin but it is sort of slow and outdated. It doesn't work with webgl to render a picture from mobile photos into a sprite but works with the standard canvas2d. https://www.scirra.com/forum/plugin-filereader_t67997?&hilit=filereader I don't know if this helps you in any way giving you what input control that is out there right now but thanks for looking into it!
B
18
S
6
Posts: 348
Reputation: 2,633


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 14 guests