lawrancej / starterupper

Automate git setup for classroom use
MIT License
0 stars 1 forks source link

webcam.html as local file would not work #25

Open quangkieu opened 9 years ago

quangkieu commented 9 years ago

Could not run the webcam through getUserMedia by running local file. It needs to be served on website like http://myweb.wit.edu/kieuq/New%20folder/webcam.html

quangkieu commented 9 years ago

Other work around would be sending message using easyXDM https://github.com/oyvindkinsey/easyXDM/ to transfer the image back to comsumer

quangkieu commented 9 years ago

After many trials with the easyXDM, because the customer html is on local machine, the message could not be sent or received. Found this very late http://stackoverflow.com/questions/17950598/using-iframe-with-local-files-in-chrome => could not be done

quangkieu commented 9 years ago

the postMessage of HTML5 does not work for local html file either. I wonder how about re-designing the gravatar section of the local file as an iframe from server and we only need to pass the hash email as query to server. then server will handle the webcam, signin, upload to Gravatar. Also small problem, only the primary email could sign in through the rdc if user has multiple emails under 1 account so I think we need to have the email input form.

quangkieu commented 9 years ago

The problem of primary email only happen when requesting profile, not in our case. if we will pass the handle for sign-in process to server, myweb.wit.edu is also support php so we could use the xml rpi of gravatar

quangkieu commented 9 years ago

I just found this xmlrpc with bash shell so we do not need external server anymore http://www.acooke.org/cute/XMLRPCwith0.html

quangkieu commented 9 years ago

Except webcam