0 Replies Latest reply on Nov 13, 2012 8:26 AM by peixd_fms

    air app cannot display camera content (1080p HD) on screen

    peixd_fms

      I have developed a desktop air app with flash builder 4.6. the app can display low-resolution camera content. i use the codes as follows :

       

      var cam:Camera = Camera.getCamera();

      if(cam){

           cam.setMode(cam.width, cam.height, 25);

           var vid:Video = new Video(cam.width, cam.height);

           vid.attachCamera(cam);

      }

       

      then i test the air app with the high-resolution camera, the air app can detect the capture card, but cannot display camera content on screen. then i use the FMLE (flash medida live encoder) with the settings 1920*1080 input size and 25 fps, the HD video works well. if i change the settings, the FMLE cannot display the camera content. So i made a change to my code,

       

      var cam:Camera = Camera.getCamera();

      if(cam){

           cam.setMode(1920, 1080, 25);             //changed

           var vid:Video = new Video(1920, 1080);   //changed

           vid.attachCamera(cam);

      }

       

      unfortunately, the air app still cannot display the high-resolution camera content. Then my question is the air app does not support the high-resolution camera? if not , what is the matter with my air app ?