udah hampir berbulan – bulan ga di apdet lagi nih blog, lagi keranjingan nyari-nyari piti di dunia asli 
to the point aja lah, udah 3 bulan ini gw lagi improvisasi sama yang nama nya webcam di gabung pake php, udah nanya sana sini tapi semua jawaban programmer sama, yaitu TIDAK BISA…


setelah searching hasil nya qetemu, ternyata memang tidak bisa, harus lah menggunakan FLASH yang di gabung sama action scripts berikut code asal caplok yang bakalan di implementasiin..
var camera:Camera = Camera.getCamera();
var video:Video = new Video();
video.attachCamera(camera);
addChild(video);
Pertama, mari kita atur resolusi kamera dan video untuk contoh. Kode ini akan setup kamera default dan contoh default video. defaultnya adalah 320 × 240 px
var bandwidth:int = 0; // Specifies the maximum amount of bandwidth that the current outgoing video feed can use, in bytes per second. To specify that Flash Player video can use as much bandwidth as needed to maintain the value of quality , pass 0 for bandwidth . The default value is 16384.
var quality:int = 50; // this value is 0-100 with 1 being the lowest quality. Pass 0 if you want the quality to vary to keep better framerates
var camera:Camera = Camera.getCamera();
camera.setQuality(bandwidth, quality);
camera.setMode(320,240,15,true); // setMode(videoWidth, videoHeight, video fps, favor area)
// Now attach the webcam stream to a video object.
var video:Video = new Video();
video.attachCamera(camera);
addChild(video);
var bandwidth:int = 0; // Specifies the maximum amount of bandwidth that the current outgoing video feed can use, in bytes per second. To specify that Flash Player video can use as much bandwidth as needed to maintain the value of quality , pass 0 for bandwidth . The default value is 16384.
var quality:int = 100; // this value is 0-100 with 1 being the lowest quality. Pass 0 if you want the quality to vary to keep better framerates
var camera:Camera = Camera.getCamera();
camera.setQuality(bandwidth, quality);
camera.setMode(320,240,30,false); // setMode(videoWidth, videoHeight, video fps, favor area)
var video:Video = new Video();
video.attachCamera(camera);
addChild(video);
kalao scritps di atas agak sedikit ribet, kalau mau yang simple nih
Continue reading →