fig12-300x180.jpg  

 
<aspectRatio>landscape</aspectRatio>
  
<android>
    <manifestAdditions>
        <![CDATA[
            <manifest>
                <uses-permission android:name="android.permission.CAMERA"/>
            </manifest>
        ]]>
    </manifestAdditions>
</android>

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
var camW:uint = 320 * 2;
var camH:uint = 240 * 2;
  
if (Camera.isSupported)
{
    info_txt.text = " 相機不支援";
    var video:Video = new Video(camW,camH);
  
    video.x = stage.stageWidth / 2 - video.width / 2;
    video.y = 50;
    addChild(video);
    var camera:Camera = Camera.getCamera();
    camera.setMode(camW, camH, 10);
    video.attachCamera(camera);
}
else
{
    info_txt.text = "相機不支援";
}

創作者介紹

資訊園

shadow 發表在 痞客邦 PIXNET 留言(1) 人氣()


留言列表 (1)

發表留言
  • turtle
  • 請問版大是否有碰到黑屏的狀況?