Results 1 to 3 of 3

Thread: Webcam Access

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2025
    Posts
    38

    Webcam Access

    VFW is old school and will not handle "modern" webcam resolution above 640 or access due to compression methods. Is there sample code to work with these newer Win and Webcams? Sample code for Quartz DirectShow or other available?

  2. #2
    PowerPoster VanGoghGaming's Avatar
    Join Date
    Jan 2020
    Location
    Eve Online - Mining, Missions & Market Trading!
    Posts
    2,623

    Cool Re: Webcam Access

    You could use the CameraCaptureUI Class.

    The Windows.Media.Capture.CameraCaptureUI class provides a built-in, full-window camera user interface for Windows applications. It allows developers to quickly capture photos or videos without having to design custom UI elements or manage low-level camera hardware.
    Since it's a WinRT class, it requires the WinRT TypeLib, everything should be pretty straightforward.

  3. #3
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    7,656

    Re: Webcam Access

    There's Quartz-based samples if you search the forum but that's nearly as old as VFW. Media Foundation would be the option if you didn't want to use RT. -Franky- made a sample if you don't mind DispCallFunc hell, or just tell an LLM to make a sample and it should only need minor changes to work with oleexp.tlb (or WDL in twinBASIC).

Posting Permissions

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



Click Here to Expand Forum to Full Width