[問題] camera開啓

看板Flash作者時間13年前 (2011/10/14 15:17), 編輯推噓2(207)
留言9則, 3人參與, 最新討論串1/2 (看更多)
大家好,我現在在開發一個camera相關的AS程式, 程式執行時會啓動camera,程式如下: this._webcam = Camera.getCamera(); this._webcam.setMode(285, 285, 30); this._video = new Video(this._width, this._height); this._video.attachCamera(this._webcam); this._capture = new Bitmap(new BitmapData(this._width, this._height, false, 0) , PixelSnapping.AUTO, true); 不知道為什麼當我用desktop AIR時程式可以開啓camera, 但如果包在html裡頭,在網頁上就沒辦法開啓camera 連黑色畫面都沒有. 好像完全沒有執行getCamera的程式. (我是用flex) -- ※ 發信站 :批踢踢實業坊(ptt.cc) ◆ From: 60.250.91.193

10/14 15:33, , 1F
加到信任的swf列表裡面?
10/14 15:33, 1F

10/14 16:00, , 2F
先叫用Camera.names來取得camera's name list
10/14 16:00, 2F

10/14 16:00, , 3F
確認是不是有可以使用的webcam
10/14 16:00, 3F
※ 編輯: skyracer 來自: 60.250.91.193 (10/14 17:11)

10/14 17:12, , 4F
請問1F前輩,加到信任的swf的意思是?
10/14 17:12, 4F

10/14 17:52, , 5F

10/14 18:38, , 6F
chengchieh前輩 我加了你說得code 確認有camera
10/14 18:38, 6F

10/14 18:44, , 7F
dsmwang前輩 我把我的網址加進去 仍然無法有camera
10/14 18:44, 7F
※ 編輯: skyracer 來自: 60.250.91.193 (10/14 18:50)

10/14 19:32, , 8F
哦,我以為你是單機測試,你有上傳的話就沒差了
10/14 19:32, 8F

10/14 19:33, , 9F
另外我不是前輩,我是小弱弱
10/14 19:33, 9F
※ 編輯: skyracer 來自: 114.32.58.171 (10/14 21:51)
文章代碼(AID): #1Eb-8Qz4 (Flash)
討論串 (同標題文章)
以下文章回應了本文
完整討論串 (本文為第 1 之 2 篇):
2
9
文章代碼(AID): #1Eb-8Qz4 (Flash)