• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1208
  • Last Modified:

Camera quality in Flash

Hi , I am using the Camera class in flash to display a webcam feed.

I noticed a significant differnence in the quality between this and quickcam(as an example).
Is there a way to adjust the quality or should it already be as good?

Thanks
0
coolispaul
Asked:
coolispaul
  • 3
  • 3
1 Solution
 
TheYanCommented:
What actionscript are you using?
0
 
TheYanCommented:
Assuming you're using AS3 you need to set the amount of bandwidth and quality parameters:

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);

The maximum quality:
var bandwidth:int = 0;
var quality:int = 100;
var camera:Camera = Camera.getCamera();
camera.setQuality(bandwidth, quality);
0
 
coolispaulAuthor Commented:
Hi

yeah i tried that - seems the same tho.

Thanks
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
coolispaulAuthor Commented:
as2 by the way

Cheers
0
 
TheYanCommented:
Well then the best guess will be to use as3, or let quickcam, or any other app do all the work for you.

Best wishes, Yan
0
 
coolispaulAuthor Commented:
i used setMode and that seemed to do the trick
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now