Adobe-Runtime-Support
Adobe-Runtime-Support copied to clipboard
[Windows] Some embedded cameras provide no image with AIR
Problem Description
Some embedded cameras provide no image with AIR for Windows devices.
Tested with latest multiple AIR versions, even with latest AIR 33.1.1.476. Issue found with MacBookPro16,1 (A2141) (late 2019) (with Windows 10 x64 installed and launched via Bootcamp without virtualisation) and some other Windows laptops. Tried with different camera modes. Tried with 32-bit and 64-bit AIR bundles. Same problem in all cases.
AIR apps with same laptops works fine with other (non-embedded) cameras. All other applications (non-AIR) works fine with such embedded cameras on that devices.
Related issues: https://github.com/airsdk/Adobe-Runtime-Support/issues/539 https://github.com/airsdk/Adobe-Runtime-Support/issues/53
Steps to Reproduce
Compile and launch code below with "problem" devices (for example here MacBookPro16,1 A2141 late 2019 with Windows 10 x64 installed and launched via Bootcamp and FaceTime HD Camera) .
Application sample just start the camera and attaches it to Video object on stage.
Application example with sources attached. camera_not_work.zip
package {
import flash.display.Sprite;
import flash.media.Camera;
import flash.media.Video;
import flash.events.Event;
public class CameraNotWork extends Sprite {
private var camera:Camera;
private var video:Video = new Video();
public function CameraNotWork() {
camera = Camera.getCamera();
camera.setMode(1280, 960, 30, true);
trace("camera settings:", camera.name, camera.width + "x" + camera.height, camera.fps);
video.attachCamera(camera);
camera.addEventListener(Event.VIDEO_FRAME, videoFrame);//This event will not be dispatches with "problem" cameras
addChild(video);//There is no image provided with "problem" cameras
}
private function videoFrame(e:Event):void {
trace("videoFrame");
}
}
}
Actual Result:
Application trace:
camera settings: FaceTime HD Camera (Built-in) 960x720 30
No camera image output, just white color application (background). No Event.VIDEO_FRAME events dispatches.
Expected Result:
Application trace:
camera settings: FaceTime HD Camera (Built-in) 960x720 30
Camera image output will be added to stage and Event.VIDEO_FRAME events will dispatch.
Known Workarounds
none
Same problem with latest AIR 33.1.1.533 BETA.
With complex AIR application has the same problem with Dell Vostro 7500 Windows 10 x64 laptop with embedded camera usage.
First time it works fine but with second one (without restart) try to camera = Camera.getCamera(); and do the same - no image output, no Event.VIDEO_FRAME events.
Even with latest AIR 33.1.1.713.
With all cases camera LED indicator turned on.
With isolated code sample with Dell Vostro 7500 laptop it works fine. With MacBookPro16,1 A2141 not.
Issue still exists with latest AIR 33.1.1.889.
Issue still exists with latest AIR 51.0.0.2.
@ajwfrost Issue still exists using latest AIR 50.2.4.5.