Ping. Anyone have any suggestions for this or anywhere else to look?
The easiest way would be to compile a video player that attaches itself to the camera as a separate SWF and load that using the HTML object tag. Your other option would be to move the video on the stage as your HTML content moves around.
I don't think that the way you are trying to do it can work.
Thanks for your reply, I have tried your suggestion with mixed results which I will come onto shortly. One thing it did not occur to me to mention originally, as my query was just related to positionig of the object, was that the camera is set for publishing a stream on a Flash Media Server which seems to be complicating things a bit.
Any further pointers would be helpful, either on positioning the Video object in AIR (as that all works but is outside of the document flow) or loading a SWF into the page in a way that allows both local camera and remote network access. Currently I am just embedding the <object> code into the body of my main page for testing purposes.
Thanks in advance.
Check the Security.sandboxType value in the embedded SWF. It should be "localTrusted", in which case you should be able to access both local and remote resources.
As to positioning the Video player, this would require creating a div (or other page element) of the same size as the video and tracking the position of this element on the page. Whenever the position changes, you move the video on the stage (by resetting the video x and y properties). I don't know how much lag in positioning you would run into when the user scrolls the page, especially if the video was playing...
A third option, of course, is to rethink the UI so that you have separate display areas for the HTML and the video.
Forgot to reply at the timebut I went for creating a shadow div and listening for positioning events which then update the video object.It seems to work just fine so thanks for the tip.