Webcam not working with adobe air

hey frnds,
i'm trying to capture webcam snaps and storing it on local desktop.
Below code of capuring snap is working with flex but same code not working in adobe air.
I'm using Adobe Flash builder beta 2
is any setting is required to use webcam with adobe air?
i'm using following code
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                       xmlns:s="library://ns.adobe.com/flex/spark"
                       xmlns:mx="library://ns.adobe.com/flex/halo" creationComplete="init();">
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
        <![CDATA[
            import mx.controls.Alert;
            import mx.core.UIComponent;
            import flash.media.Camera;
            import flash.media.Video;
            private function videoDisplay_creationComplete() : void
                var camera:Camera = Camera.getCamera();
                if (camera)
                    videoDisplay.attachCamera(camera);                   
                else
                    Alert.show("Oops, we can't find your camera.");
            private function capture_click() : void
                var snap:BitmapData = new BitmapData(320, 240, true);
                var snapBmp:Bitmap = new Bitmap(snap);
                snapBmp.width = 320;
                snapBmp.height = 240;
                if(snapshotHolder.numChildren > 0)
                    snapshotHolder.removeChildAt(0);
                snapshotHolder.addChild(snapBmp);               
                snap.draw(videoDisplay);               
    ]]>
    </fx:Script>
    <mx:HBox>
        <s:Panel title="Video">
            <mx:VideoDisplay id="videoDisplay" creationComplete="videoDisplay_creationComplete();" width="320" height="240" />       
        </s:Panel>
        <s:Panel title="Snapshot">
            <mx:UIComponent id="snapshotHolder" width="320" height="240" />
        </s:Panel>       
    </mx:HBox>
    <mx:HBox>
        <mx:Button label="reload camera" click="videoDisplay_creationComplete();"/>
        <mx:Button label="capture" click="capture_click();"/>  
    </mx:HBox>
</s:WindowedApplication>
Camera is connected but cannot see anything inair,
plz guide me in this.
thx in advanced,

I seem to have the same problem. When creating an web application it works fine, but when creating a desktop application it doesn't. I can't figure out what the problem is.
Does anyone know?

Similar Messages

  • Webcam and Whiteboard not working with Adobe AIR with Adobe Flash Builder

    Hi,
    I am trying to build a  simple chat service using Adobe Flash Builder target for desktop AIR( my final objective is to port it to android). My adobe AIR version is 2.5.0 and below is my source code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication 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" xmlns:rtc="http://ns.adobe.com/rtc">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    <rtc:AdobeHSAuthenticator id="auth" userName="Yy" protocol="rtmfp"/>
    </fx:Declarations>
    <rtc:ConnectSessionContainer id="session" authenticator="{auth}" roomURL="https://collaboration.adobelivecycle.com/yytan1987/myfirstroom" width="100%" height="100%">
    <mx:HBox width="100%" height="100%">
    <mx:VBox width="25%" height="100%">
    <rtc:WebCamera width="100%" height="50%"/>
    <rtc:SimpleChat width="100%" height="50%"/>
    </mx:VBox>
    <rtc:SharedWhiteBoard width="75%" height="100%"/>
    </mx:HBox>
    </rtc:ConnectSessionContainer>
    </s:WindowedApplication>
    Basically when i debug it with AIR, the chat is working properly but the webcam and whiteboard just don't work....I really don't know what's wrong with it already...Appreciate it if anyone can help,thanks!!
    Regards

    Hi,
    My take is , is your autopromote tuned on for the room. I mean whats
    your user role when an user enters the room(who is not host), is it 10
    or 50. If its 10 i.e. viewer , then he cant use his own cam etc. You
    need to take a look at the logs when an user enters and if its 10 and
    you want to give him these permissions, turn autopromote on from the
    devconsole for the room to make his role 50 i.e. publisher.
    I just now downloaded 2.5.1 AIR and created a new project with your
    source and I am able to use everything.
    Thanks
    Hironmay Basu

  • -webkit-linear-gradient not working with Adobe Air 3.0

    Hi -
    I recently downloaded Adobe Air 3.0 after reading that gradients are now supported (http://www.adobe.com/devnet/air/ajax/articles/air_and_webkit.html), but I have not been able to successfully implement them. For example, I have the following CSS class defined:
    .gradient_test {
         background-image: -webkit-linear-gradient(#68AB34, #3D721B);
         padding: 5px;
         color: #FFF;
    This should (and does in Chrome, Safari, etc) create a linear gradient going from light to dark green. But in Air it just appears as if no background has been applied to the selector. Am I missing some unique way to be able to apply gradients in Adobe Air 3.0?
    Thanks,
    Zach

    I don't know why this hasn't been addressed. I'm seeing the exact same problem. I've tried every permutation, but haven't been able to generate a gradient using any existing standard for webkit or otherwise (even though it's allegedly supported).
    -Matthew
    EDIT: I discovered that when the app is compiled, the gradients work fine. This one is driving my crazy, because I want to be able to test them. I get a mix of CSS support, depending on how the app is run.
    From Dreamweaver CS3 "Preview" - My CSS doesn't show gradients and shows embedded web fonts.
    From ADL - My CSS fails almost entirely, but some if it gets loaded.
    From the compiled AIR file: fortunately, everything seems to display correctly, but it's really a bad scenario for development / testing. Not sure what to do.

  • IOS app touch input not working with Adobe AIR

    I believe the problem here is my touch input but I'm not positive.
    This is my first iOS application. I'm making the game for both Android and iOS and it works perfect on Android, however when I sent it out ot my iPhone testers, they were unable to get past my "Tap to Play" screen.
    I'm using mouse events for the touch/click and this is no problem on Android and all of my research says touch events work fine for iPhones as well. Is there another way I should be handling this event?
    Below is the code that loads the next swf. Again, it works perfect on PC, and multiple Android devices.
    TouchToPlay.addEventListener(MouseEvent.CLICK, page1);
    function page1(event: MouseEvent)
         MovieClip(stage.getChildAt(0)).loadThisScreen("Menu.swf");
    Like stated above, it seems as if iOS doesn't/isn't recognizing the MouseEvent. Why is this?

    A major difference is Android supports Flash up to 11.2, so you can be getting away with it for that.
    For mobile, there's absolutely no reason not to simply convert to using TouchEvent.
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/TouchEvent .html
    They work almost identical, simple CONST changes between (MOUSE_DOWN is TOUCH_BEGIN, etc).
    What MouseEvent doesn't support is gestures, so why would you use an event model with less features like MouseEvent over Touch?

  • Webcam not working for Macbook Air 2013 after upgrading to OSX Mavericks? Yahoo/ Google/Skype cam chats not working. Facetime works though. Any updates of Mavericks released to fix this?

    Webcam not working for Macbook Air 2013 after upgrading to OSX Mavericks? Yahoo/ Google/Skype cam chats not working. Facetime works though. Any updates of Mavericks released to fix this?

    I have a MacBook Pro Retina display: 15.4-inch late 2015 with OS X Mavericks install, only on second week. 
    Insight works on FaceTime, Skype, but yahoo program does not show insight cam in dropped down.
    Now when I got my new MacBook Pro, I down loaded all new Skype (worked tested), FaceTime (Worked Tested), Yahoo (not worked)
    Fix:
    With the new Maverick you have to use there messager program Version 8.0 (4218). Once I add my yahoo account video works again.
    It also supported AOL, AIM, Google Talk, Jabber.
    Guess I miss it frist time... hope this helps...

  • Why does my webcam not work with Skype - can anyone help?

    Why does my webcam on Mac Book air not work with Skype - can anyone help?

    Did you set the Skype Audio/Video preferences to use the camera?

  • AcroPDF ActiveX print functions are not working with Adobe Reader 9.2 / Actobat Reader 9.3

    AcroPDF ActiveX print functions are not working with Reader 9.2/9.3. Tried ActiveX print functions like printPages(), printAll(), printWithDialog(), none of them is working. Tried on platforms: XP 32 bit and Win7 32 bit. These print functions all work fine with Adobe Reader 9.1.0. or 8.2.0 or 8.1.0 on XP 32 bit or Win7 32 bit.
    The way I have my setup: I have created a C/C++ project with AcroPDF MFC ActiveX classes. I have created an AcroPDF object in there, and then calling it's LoadFile() function passing a pdf file in the parameter. Then calling the printPages() or printAll() function. With Adobe Reader 9.1.0. or 8.2.0 or 8.1.0, printing is starting through the default printer without any problem. As soon as I update the reader version to 9.2 or more, the same code stops working.
    Is anybody noticing any similar issue? Any info on this will be highly appreciated. Thank you!

    Unfortunately printWithDialog() is also not working. Actually none of the print functions like Print(), printWithDialog(), printPages(), printPagesFit(), printAll(), printAllFit() are working. All of them works fine though with older reader.
    BTW, what security related changes are there for printPages() and printAll()? Can you please elaborate on that? Is there any workaround?

  • Verison MIFI is not working with MacBook Air

    Can't get the Mifi working with my Air.  Says is is working but can't open any internet site.  Help!!

    Is there a TC involved here somewhere?
    Check the network values that the airport has obtained.. does it include router (gateway) and dns. if not add them manually.

  • Satellite A215-S7444 built-in webcam not working with MSN / Skype

    Hi, I've just bought my laptop and right after installing the newest MSN and Skype, the video is not working with these programs. I tried to configure the video settings inside MSN and it told that "windows cannot connect to this webcam. It's in currently in use or not plugged in". The webcam is built-in, a Chicony USB 2.0.
    Any hints ??

    Hi there,
    maybe you should download the webcam software for your machine from the toshiba driver download site and install it. The webcam works but the software sometimes behaves really weird so you just have to reinstall it. Maybe its an good idea to uninstall the old software before...
    Greetings

  • Why the Apple products does not work with Adobe flash player?

    Could be better if the Apple products work with Adobe Flash Player, I know that Steve does not like to work with them, but I think will be necessary soon.

    From Adobe's own site:
    *** NOTE: FLASH PLAYER IS NO LONGER BEING UPDATED FOR NEW DEVICE CONFIGURATIONS. FLASH PLAYER WILL NOT BE SUPPORTED ON ANY ANDROID VERSION BEYOND ANDROID 4.0.x ***
    While Flash Player remains on Google Play for installation on Android devices that are certified by the manufacturer, installing Flash Player on an uncertified device may result in unexpected behavior and can potentially destabilize your device. A list of certified devices can be found at http://www.adobe.com/go/certifieddevices. Flash Player WILL NOT be supported on any device shipped with or upgraded to an Android version beyond Android 4.0.x
    Further comments on what is the case on Android devices is irrelevant. Adobe has dropped further development of Flash for mobile devices and Apple has made no indications that they have any plans to do so themselves, so it is highly unlikely that there will ever be a native Flash player for any iOS device.
    'nuff said on the matter. Regards.

  • Download link not working in Adobe AIR app.

    I wanted to let users browse my site as a desktop application,
    but didn't have the time to write an application from scratch. SO tried following trick. Created a simple Adobe AIR application with a single page. This page redirects to my website and hence loads the website in the AIR window.
    Everything is working fine except that the download links are not working. The download doesn't start. Nothing happens. What is the solution here? Any help is appreciated.

    I am now facing the same problem. I wrote a servlet .
    code like this
             response = (HttpServletResponse) faces.getExternalContext().getResponse();
             response.setContentType("application/x-download");
             String agent = request.getHeader("USER-AGENT");
             boolean isIE=false;            
            if (null != agent && agent.indexOf("MSIE")!=-1) { 
                isIE=true;
            if (isIE) {
                fileName = URLEncoder.encode(fileName, "UTF-8");
            } else {
                fileName = new String(fileName.getBytes("utf-8"), "ISO-8859-1");
            response.setHeader("Content-Disposition","attachment;filename="+fileName);
            ServletOutputStream os = response.getOutputStream();
            byte b[]=new byte[1024];
            int n;
            while((n=in.read(b))!=-1){
                os.write(b,0,n);
           in.close();
           os.close();
    and i open a new window refer to above jsp ,also i set a breakPoint at os.close(),the program has passed through,but nothing happened in the window.
    If i use IE or FF ,the browser will open a small window to allow me select whether open or  save the file.So can anybody give me some advice.Is it because air using webkit engine and the engine does not do this kind of job?
            Thanks.

  • Please Help! Drag and drop does not work in Adobe AIR 3.1 (FlashBuilder 4.6)

    I am working on a PC is made of air and flashbuilder 4.6.
    Drag and drop application does not work in Flash Builder 4.6.
    However, the same source will work with Flash Builder 4.5.
    Please help me.
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                  xmlns:s="library://ns.adobe.com/flex/spark"
                                  xmlns:mx="library://ns.adobe.com/flex/mx"
                                  backgroundColor="#323232" width="100%" height="100%"
                                  initialize="init(event)"
                                  nativeDragEnter="onDragEnter(event)"
                                  nativeDragDrop="onDragDrop(event)">
              <fx:Script>
              <![CDATA[
                        import mx.events.FlexEvent;
                        protected function init(event:FlexEvent):void
                                  addEventListener(NativeDragEvent.NATIVE_DRAG_ENTER, onDragEnter);
                                  addEventListener(NativeDragEvent.NATIVE_DRAG_DROP, onDragDrop);
                        private function onDragEnter(event:NativeDragEvent):void
                                  if (event.clipboard.hasFormat(ClipboardFormats.FILE_LIST_FORMAT))
                                            NativeDragManager.acceptDragDrop(this);
                        private function onDragDrop(event:NativeDragEvent):void
                                  var arr:Array;
                                  arr = Array(event.clipboard.getData(ClipboardFormats.FILE_LIST_FORMAT));
                                  startImage.source = (arr[0] as File).url;
                ]]>
              </fx:Script>
              <s:layout>
                        <s:VerticalLayout/>
              </s:layout>
              <s:BorderContainer id="bc" borderStyle="solid" width="200" height="80%"/>
              <s:Image id="startImage" width="100%" height="100%"
                                             horizontalAlign="center" verticalAlign="middle"/>
      </s:WindowedApplication>

    Thank you answers, but it was not the answer I wanted.
    [Problem]
    * Flash Builder 4.5.1(updater) or Flash Builder 4.6
    - If you have installed on pc, does not work adobe air drag and drop
    [Solution]
    1. Reinstalling the Windows 7 (32bit).
    2. Install Flash Builder 4.5.
    3. Flash Builder 4.5.1 updater and Flash Builder 4.6 does not install.
       (Instead of using Flex SDK 4.6 is set up)
    In addition, Windows7 64bit environment does not work drag and drop.
    Is there another solution?

  • Working with adobe air on linux

    I asking myself if Adobe development team, lets us an open source code to develop latest versions of Adobe Air (beginning from 2.6) on Linux.
    Best Regards!

    No, your laptop is far, far from ideal to run Premiere Pro and After Effects. You would probably be OK with Photoshop and Illustrator. You say you want "smooth" and while you can do that with a laptop that does not break the bank, your current HP is lacking in more area that one.
    Premiere Pro benefits from a strong NVidia graphics card (yours has HD4000 only), lots of cpu cores (i.e. quad core + hyperthreading support), and 16GB or RAM or more to get a quality editing experience for typical HVACHD media projects without having to pre-render everything on the timeline.
    If you really want to know how it would work on your HP, you can download and try the free for 30-days evaluation copy of CC 2014 applications and actually try it for yourself with your media and your workflow.
    Finally, the web site www.ppbm7.com is rich with information regarding what size of PC you need to what media and a whole lot more.
    Regards,
    Jim

  • Yoga 2 Pro: Webcam not working with Skype?

    Hi all, weird problem. For some reason skype cannot load the webcam built into the Yoga 2 Pro.
    It works in the Windows 8 camera app just fine. 
    I formatted and everything and it will just not work. 
    IT WAS WORKING two days ago, that's why I'm so confused.  I've installed the drivers on the support page and have had 0 luck. 
    I'm not sure if this is a permission thing or what..
    Any help is greatly appreciated.

    Unfortunately I've reinstalled the driver after uninstalling it from the device manager 10 times. I also formatted and reinstalled, but that didn't fix anything.
    The camera works for the camera app + the webcam test online. I've tried rollback on the drivers, and installing earlier versions of skype with no luck.
    Very strange, all it does is show the loading sign, and never loads. 
    This is the desktop version of skype btw. I'm going to try it with the non-dekstop version tonight and see if it works. 
    EDIT: Is there any other camera source besides 'Lenovo EasyCamera'? Their are two drivers on the drivers page, which one is recommended?

  • The "Adobe Reader 11.0.08 security update - All languages" is not working with "Adobe Reader 11.0 - Multilingual (MUI) installer" using msiexec when creating an msi package. is there going to be a release of Adobe Reader 11.0.08 update - Multilingual (MUI

    Is it possible to create an msi package if the product you are upgrading is Multilingual (MUI) and the update(msp) you are applying is not Multilingual (MUI) but "All languages"?

    Please download the latest Adobe Reader patch from the below mentioned location, it will work with MUI installer.
    ftp://ftp.adobe.com/pub/adobe/reader/
    ~Deepak

Maybe you are looking for

  • Problema Bootcamp e Yosemite

    Salve a tutti, voglio installare windows 8.1 utilizzando l'assistente Boot Camp sul mio iMac retina con Fusion Drive da 1TB senza alcuna partizione aggiuntiva. Pur seguendo tutte le procedure, arrivato alla finestra di partizione, una volta avviata l

  • FIFA 13 failed to install after download, I deleted its waiting Icon on IPad2 during download on ITunes, pls help

    I mistakenly deleted the fifa13 waiting icon while I was downloading the game via iTunes on my PC after full download the game keep failing to install on ipad2 via iTunes. Please help me out with alternative.

  • BPM           Package SWF_XI_ADAPTER missing two objects

    Hi , we are running XI SR1 or SP09 and Workflow Adapter for XI Appl-> component BC-BMT-WFM are missing Workflow template WS77200005 and Standard task TS77207918. I found it out when I tried to make activation of Process Definition in transaction SXI_

  • Trouble installing Adobe Muse

    Hello. I can't seem to install Adobe Muse on my computer. I keep getting this error message: The application could not be installed because the installer file is damaged. Try obtaining a new installer file from the application author. I have tried un

  • Problem in navigation

    Hi Oracle gurus, I have 3 Text items, but when I use Tab, the cursor goes from first to the third text box. I want it to go to the 2nd one. What property should I set? Please help me on this regard. Thanks and Regards, Basskey.