header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Ankush
Points:240
Posts:0

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



1
action2n3
Points: 200
Posts:0
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();

2
Rex
Points: 1280
Posts:0
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

3
Ankush
Points: 240
Posts:0
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

4
RedBull
Points: 930
Posts:0
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


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 1+2 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions