I have a XPCOM component which capture live video and play it in Mozilla though Mozilla application window handle.  The video covers XUL element at the same location. I need to show XUL element on top of the video.  If I can get the window handle of a XUL element and connect video with that XUL element, Mozilla will maintain z-order for me.
 
How can I get the window handle of a known XUL element? From _javascript_ or in XPCOM module, either way is fine. 
 
I guess Mozilla is not using CreateWindow API to create XUL element and using its own XP method, there is no such handle to find.
 
The other way will be to keep updating the image src of a XUL element.  program to generate a video stream from a camera and should be able to extract individual frame (using MS DirectShow SDK).  I want to ask a XUL element to play the video in real time as it is captured.  I don't want to write the image to a file on hard disk then set the src attribute to that file.  One of the ideas is to set src="" or dll?, the EXE or DLL will send the image just generated to local web server who will forward it to the XUL element.
 
Is there any other way to do it?
 
Thanks,
 
Michael

Reply via email to