0 Replies Latest reply on Sep 23, 2011 9:05 AM by andres-l-c

    Problem with <s:VideoDisplay/> component and the webcam


      Hello everybody.

      I’m working in a videoconference system with Flex 4.

      My problem is in the s:VideoDisplay component

      I declare it as follows:


      <s:VideoDisplay id="localVideoDisplay" width="320" height="240"/>


      And then I attach my webcam:


      var camera:Camera = Camera.getCamera(mycamera);

      var localCam:Video = new Video(320,240);




      All works properly but when I try to disconnect de cam by using:




      It doesn’t work. However, this method works perfectly with the mx:VideoDisplay component.

      Does anybody knows how can I do this in a s:VideoDisplay?


      How I can turn off the camera?


      Thanks for your answers.