Open quangkieu opened 9 years ago
Other work around would be sending message using easyXDM https://github.com/oyvindkinsey/easyXDM/ to transfer the image back to comsumer
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
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.
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
I just found this xmlrpc with bash shell so we do not need external server anymore http://www.acooke.org/cute/XMLRPCwith0.html
Except webcam
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