2 Replies Latest reply on Sep 13, 2010 5:10 AM by Marc Speck

    Does WebCam on Mac Chrome work?

    Marc Speck

      The code below works fine on Windows 7 Firefox, Mac Firefox, Mac Safari but not in Mac Chrome. The player asks for webcam access but then the videodisplay stays dark and the camera light is not switched on. It does not work with the Chrome FP and the debug FP in Chrome. Is this supposed to work?

      Marc

       

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:mx="library://ns.adobe.com/flex/mx"
                        minWidth="955" minHeight="600"
                        applicationComplete="init(event)"
                        >
           <fx:Script>
                <![CDATA[
                     import mx.controls.Alert;
                     import mx.events.FlexEvent;
                     
                     private function init(event:FlexEvent):void {
                          var camera:Camera = Camera.getCamera()
                          if (camera) {
                               _video.attachCamera(camera)
                          } else {
                               Alert.show("You don't seem to have a camera available!");
                          }
                     }
                ]]>
           </fx:Script>
           <mx:VideoDisplay id="_video" width="100" height="100" />
      </s:Application>