title: How do you record the video from the mobile device camera?
body: <p>I'm able to get video stream from a mobile device camera using the following code but I don't know to record it and play it back right away.</p>
  
  <pre><code>if (Camera.isSupported) {
      var video:Video = new Video(component.width, component.height);
      component.addChild(video);
      var camera:Camera = Camera.getCamera();
      camera.setMode(component.width, component.height, 10);
  }
  else {
      label.text = "Camera not supported";
  }
  </code></pre>
  
  <p>Here is the component I'm using:</p>
  
  <pre><code>&lt;mx:UIComponent id="component" width="50" height="50" /&gt;
  </code></pre>