I tried connecting the camera to videoDisplay.videoObject - but the videoObject was always null, which throws an error.
To decide that I created a dummy DynamicStreamingVideoObject and passed it as a source
_cam = new DynamicStreamingVideoSource(); <s:VideoDisplay id="mycam" source="_cam" />
then in the creationComplete application handler i did this
var cam:Camera = Camera.getCamera(); mycam.videoObject.attachCamera(cam);
this solved the problem.
source share