Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3753806
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:26:54+00:00 2026-05-19T09:26:54+00:00

I just can’t believe I’ve found NOTHING on google, I’m starting to think that

  • 0

I just can’t believe I’ve found NOTHING on google, I’m starting to think that may be a DUMB question, but I have to ask.

I WANT to get the MAXIMUM RESOLUTION supported by a webcam, how can I do that?

This is my actual code:

 // Maximum amount of bandwidth that the current 
 // outgoing video feed can use, in bytes per second.
 var bandwidth:int = 0; 
 var quality:int = 100; // This value is 0-100 with 1 being the lowest quality. 


 var cam:Camera = Camera.getCamera();
 if(cam==null)
  writeErrorPopup(NOCAMERA_ERR);
 else
 {
  cam.addEventListener(StatusEvent.STATUS,statusHandler);
  function statusHandler(evt:StatusEvent):void
  {
   if(cam.muted)
   {   
    writeErrorPopup(CAMPERMISSION_ERR);
   }
   else
   {   
    trace(cam.width);
   }
  }    

 cam.setQuality(bandwidth, quality);
 //cam.setMode(640,480,30,false); 
 // setMode(videoWidth, videoHeight, video fps, favor area)

What I have understood is:

  • default setMode of any webcam sets its resolution to 160×120, and infact the trace returns me the 160×120 value.

  • if I uncomment the 640×480 setmode the trace returns me the 640×480 value, which is OK, but this is a static value, I want to understand WHICH is the webcam resolution..

any hint?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T09:26:54+00:00Added an answer on May 19, 2026 at 9:26 am

    There’s one way to find out:

    Camera.setMode sets the height and width of the camera to the nearest possible value matching your requested resolution. So if you pick a 4:3 aspect ratio and set the size to, say, 8192×6144, you should be able to get the highest possible resolution of the camera. Just to make sure, you could also try a 16:9 or 16:10 ratio and see which returns the best result.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A simple question I just can't find the answer... I have view A and
I just can't figure this out. I have a script that gets data from
I just can't find a simple answer to this simple question I have from
I just can't get the ajax service to work. A simple class to $.get(http://google.com)
I just can't figure it out.. but i got a feeling the problem is
I just can't figure out why i get the error message, I have tried
I just can't work this one out. I have a table with a column
I just can't seem to get localization to work. I have a class library.
This ought to be simple but I just can't figure this one out: The
I have a warning and just can't work out how to make it go

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.