Adobe-Runtime-Support icon indicating copy to clipboard operation
Adobe-Runtime-Support copied to clipboard

Camera width=-1, height=-1, fps=-1

Open intelearn opened this issue 3 years ago • 0 comments

Problem Description

I have a Windows application that among others uses the camera. I use Adobe Animate although the first version of the application was made with Adobe Flash Professional. I had reports from some laptop users that the camera was not working. I also encountered the same problem with one LENOVO laptop (Ideapad C340 running Windows 11 64bit) with integrated camera. I made some tests and tried to get as much information as I can. The application reports the name of the camera, that permission is granted but it reports -1 as width, -1 as height and -1 as fps whatever setmode I set. The camera is working without problems in other applications (e.g. Camera, ZOOM e.tc.), there aren't any issues regarding policy, the camera is enabled (function key) when I execute my application, there is no restriction from the antivirus, the camera driver is updated. One thing I have noticed is that with other applications (e.g. Camera) the light of the camera goes on but with my application the light never turns on. I have checked it with AIR 33.1.1.795 as well as with 32 but the camera isn't working. I don't think it has to do with the AIR version.

Steps to Reproduce

Make an application that uses the camera. Use a dynamic text box (name dbg_text) to report various information: import flash.media.*; var cam:Camera; dbg_text.text=Camera.names+"\n"+Camera.permissionStatus+"\n"; cam = Camera.getCamera(); // I also tested: cam = Camera.getCamera("0"); dbg_text.text=dbg_text.text+cam.width+" x "+cam.height+", fps:"+cam.fps+"\n"; cam.setMode(320,240,15); dbg_text.text=dbg_text.text+cam.width+" x "+cam.height+", fps:"+cam.fps;

Publish the application and run it on a Windows laptop with camera. When I run it on the LENOVO laptop I mentioned before I get the following: Integrated Camera granted -1 x -1, fps:-1 -1 x -1, fps:-1

intelearn avatar May 20 '22 13:05 intelearn