Actionscript 3 如何使用flash actionscript 3访问android设备前置摄像头

Actionscript 3 如何使用flash actionscript 3访问android设备前置摄像头,actionscript-3,flash,camera,Actionscript 3,Flash,Camera,嗨,朋友们,我已经使用flash as3为web应用程序创建了一个摄像头应用程序。它工作正常,并使用camera.getCamera()的camera类;现在我想为android创建同样的应用程序。我有android设备,只有前置摄像头。因此,我在我的设备上运行的应用程序是相同的。我看不到摄像机的显示屏。我是否可以使用任何选项访问设备上的前置摄像头 摄像机索引是定义后摄像机或前摄像机的编号。第一个索引可以是后摄像头,第二个索引可以是前摄像头,反之亦然 如果让我猜的话,我会说你用了 愿这对你有帮助

嗨,朋友们,我已经使用flash as3为web应用程序创建了一个摄像头应用程序。它工作正常,并使用camera.getCamera()的camera类;现在我想为android创建同样的应用程序。我有android设备,只有前置摄像头。因此,我在我的设备上运行的应用程序是相同的。我看不到摄像机的显示屏。我是否可以使用任何选项访问设备上的前置摄像头

摄像机索引是定义后摄像机或前摄像机的编号。第一个索引可以是后摄像头,第二个索引可以是前摄像头,反之亦然

如果让我猜的话,我会说你用了

愿这对你有帮助

使用! Camera.getCamera()的说明说明如下:

Parameters
name:String (default = null) — Specifies which camera to get, as determined from the array returned by the names property. For most applications, get the default camera by omitting this parameter. To specify a value for this parameter, use the string representation of the zero-based index position within the Camera.names array. For example, to specify the third camera in the array, use Camera.getCamera("2"). 
因此,如果你想要第二个摄像头,请使用

摄像头。获取摄像头(“1”)