I am currently facing a challenge in rendering a video stream from an IP Camera to a three.js texture. I have attempted the following code snippet without success:
....
var video = document.createElement('video');
video.crossOrigin="anonymous";
video.width = 320;
video.height = 240;
video.autoplay = true;
video.loop = true;
//This works, but it is not from an IP Camera
//video.src="http://video.webmfiles.org/big-buck-bunny_trailer.webm";
//This does not work
video.src="http://webcam01.bigskyresort.com/mjpg/video.mjpg";
this._video = video
var texture;
texture = new THREE.Texture( video );
....
Does anyone have a solution to this problem?
Thank you in advance for any assistance!