teleline / ScriptCam

20 stars 19 forks source link

Flash component erroneously favors frame rate #15

Open timrprobocom opened 9 years ago

timrprobocom commented 9 years ago

In your Flash component (scriptcam.swf), in both cases where you call Camera.setMode, you set the favorArea parameter to false, thereby overriding the default. What that means is that the Camera component will choose the largest size that advertises 30 fps. In virtually every case, when a user specifies 800x600, they want 800x600, regardless of frame rate. As a writer of camera drivers, I try to be honest: if the camera will only do 20 fps at 800x600, I say so. Users complained because ScriptCam was picking a smaller size and scaling.

I was able to patch the .swf file to change this.