Sign in to follow this  
jjwallace

User Upload Image

Recommended Posts

Hi guys, I am making an app that overlays a png over a video.

I want the user to insert their face via webcam or upload.

How do i allow user to upload image to phaser?

Is it possible to use webcam?

I am also building resize image UI, unless there is already one.

Share this post


Link to post
Share on other sites

It is possible but it's not Phaser-specific. I would start with this HTML Rocks article about capturing audio and video. Now that you have the video you'd need to upload the image somewhere, find the URL, tell Phaser to load it as an asset, wait for it to finish loading, then add it as a Phaser.Image.

Or, you could probably grab the image directly and add it to Phaser's Cache yourself instead of bouncing it through the loader. That wouldn't save the user's image, though.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.