Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Camera quality in Flash

Posted on 2009-05-01
6
Medium Priority
?
1,170 Views
Last Modified: 2013-11-08
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
Comment
Question by:coolispaul
  • 3
  • 3
6 Comments
 
LVL 4

Expert Comment

by:TheYan
ID: 24279213
What actionscript are you using?
0
 
LVL 4

Accepted Solution

by:
TheYan earned 1500 total points
ID: 24279297
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
 

Author Comment

by:coolispaul
ID: 24279791
Hi

yeah i tried that - seems the same tho.

Thanks
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:coolispaul
ID: 24279844
as2 by the way

Cheers
0
 
LVL 4

Expert Comment

by:TheYan
ID: 24280010
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
 

Author Comment

by:coolispaul
ID: 24312333
i used setMode and that seemed to do the trick
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
If you are having problems installing printer drivers, or if documents repeatedly get stuck in the print queue even after re-installing the printer drivers, then follow these steps to solve the problems. Please note that the steps are shown both for…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question