10/12/2010 4:21:02 AM
Title:
Video Camera Settings not updated
Hello Friends,
I am publishing a video through a camera and settings are the following:
cam.setMode(160,120,10);
cam.setQuality(0,70);
Bandwidth goes to 200-220 kbits
It started publishing with these settings
I Stopped and started video again with settings:
cam.setMode(640, 480, 70);
cam.setQuality(0, 95);
Bandwidth goes to 2000-2200 kbits
Now i stop and start camera with previous settings:
cam.setMode(160,120,10);
cam.setQuality(0,70);
Bandwidth still reaching to 2000-2200 kbits (not 200-220 kbits, as it was supposed to)
I dont know why its picking up previous settings
What I Mean is -- Camera Settings not updated!!
Hey Guys help me out ASAP.
Thanks and regards
Ankush
Adobe Flex Developer
10/12/2010 6:24:16 AM
Try this make your cam = null before getting camera and get new camera every time.
Means
var camera:Camera = null
if(camera == null)
camera = Camera.getCamera();
10/12/2010 7:35:55 AM
try reading the properties of camera after you set it to see if the change has taken place. Bandwidth change is not immediately reflected because there are packets in the Que for old video. You can check the created video to see if change was successful
10/12/2010 9:23:24 AM
@Rex, I have checked the traces. Its showing correct values but the value of bandwidth are of previous.
@action, I have also tried Camera = null; as you said..
Need some more suitable answers
10/12/2010 10:01:26 AM
you have given bandwidth as 0 which means flash player should decide how much to use. If you are running application on or local system then it could be due to extra bandwidth available. You should verify the file dimensions and size in MB of flv created to see if your changes were implemented. You can also specifying some bandwidth value. It looks weird to me