×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2012
    Posts
    1

    Capturing video with AudioVideoCaptureDevice - no auto focus

    Hello,
    I would like to capture video stream using the AudioVideoCaptureDevice class.
    I have written this code in the code behind associated to a page:

    var resolution = AudioVideoCaptureDevice.GetAvailableCaptureResolutions(CameraSensorLocation.Back)[0];
    var cam = await AudioVideoCaptureDevice.OpenAsync(CameraSensorLocation.Back, resolution);
    viewfinderBrush.SetSource(cam);


    where viewfinderBrush is a VideoBrush control located in the XAML page.

    The stream is displayed on the screen, but there is not autofocus (when getting close to objects, for example ; in the contrary, the built-in camera application constantly auto focuses the lens when in video mode).
    I was not able to find any sample anywhere.

    Any idea ?
    Thank you,
    Michael

  2. #2
    Registered User
    Join Date
    Jun 2013
    Posts
    1

    Re: Capturing video with AudioVideoCaptureDevice - no auto focus

    I have the same problem!
    I am trying to use mCam.FocusAsync() periodically, but it switch On Flash light while focusing and then switch it back.
    I believe there is device properties which enable autofocus since native application is working quite well.

    Does anybody know something about this?

    Thanks!

    Roman

Similar Threads

  1. how to do auto capturing of images
    By symbdev85 in forum General Development Questions
    Replies: 1
    Last Post: 2008-12-03, 10:45
  2. How to use auto focus in j2me?
    By nathanieldai in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2008-11-17, 19:21
  3. auto focus
    By herbstra in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2007-01-04, 15:29
  4. Replies: 2
    Last Post: 2006-02-20, 02:00
  5. Capturing focus lost on a CEikNumberEditor
    By zipher in forum Symbian User Interface
    Replies: 1
    Last Post: 2002-10-15, 21:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •