There is a potential problem with this code. Some older webcams only
support 352x288. This code will not find that resolution!

 

Here's a code snippet to check the available modes for your cam.

 

fps=15; //Try other values 
cam = Camera.get(); 
for (w=100;w<1000;w=w+20){
  for (h=100;h<1000;h=h+20){
  cam.setMode(w,h,fps);
  if ((w + "x" + h)==(cam.width + "x" + cam.height)){ 
trace(cam.width + "x" + cam.height + " @ " + cam.fps);
}
}

 

I found this on Fabio Sonnati's blog @
http://flashvideo.progettosinergia.com

 

 

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to