Security Error Running Videobooth.js
4 replies to this topic
Posted 08 February 2012 - 02:23 PM
var frame = buffer.getImageData(0, 0, bufferCanvas.width, bufferCanvas.height);
Unable to get image data from canvas because the canvas has been tainted by cross-origin data.
videobooth.js:195Uncaught Error: SECURITY_ERR: DOM Exception 18
Why does this occur, and is there a workaround?
Posted 11 February 2012 - 03:26 PM
This occurs if you're not using localhost to serve the files. Are you using a local server?
Posted 12 February 2012 - 09:20 AM
I'm running it by clicking the .html file in Windows Explorer, so the location field contains file:///C:/Users/Larry/Documents/web_%20pages/Head_First_HTML5_Programming/chapter8/videobooth.html.
I'll try running it on localhost and get back to you.
Thanks very much.
Edited by seltzerl, 12 February 2012 - 09:21 AM.
Posted 28 February 2012 - 08:41 AM
Great!! glad to hear it :-)
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users