html video flash,Javascript: HTML5 Video.src = Flash?

漆雕誉
2023-12-01

I hope this thread finds everyone healthy!

getUserMedia is not supportd in IE so i have used (successfully) flash fallback to stream user webcam though flash.

For face detection i am using headtrackr.js, which expects you are streaming webcam though a video element and in my case i am using flash instead of video element.

My question is how can change source of a video element to get it's stream from flash stream?

I tried the following which didn't work...

var flashInput = document.getElementById('XwebcamXobjectX');

var videoInput = document.getElementById('videoInput');

var videoInput.src = flashInput;

I hope somebody answers. Thanks!

 类似资料: