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 6773513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:40:37+00:00 2026-05-26T15:40:37+00:00

Im am using the sample from expression encoder 4 for capturing the monitor. This

  • 0

Im am using the sample from expression encoder 4 for capturing the monitor. This all works fine but i want to capture the secondary monitor. Does anyone know how to change this?

        // Starts new job for preview window
        job = new LiveJob();

        // Aquires audio and video devices
        Collection<EncoderDevice> devices = EncoderDevices.FindDevices(EncoderDeviceType.Video);
        EncoderDevice video = devices.Count > 0 ? devices[0] : null;
        for (int i = 1; i < devices.Count; ++i)
            devices[i].Dispose();
        devices.Clear();

        devices = EncoderDevices.FindDevices(EncoderDeviceType.Audio);
        EncoderDevice audio = devices.Count > 0 ? devices[0] : null;
        for (int i = 1; i < devices.Count; ++i)
            devices[i].Dispose();
        devices.Clear();

        // Checks for a/v devices
        if (video != null && audio != null)
        {
            // Create a new device source. We use the first audio and video devices on             the system
            deviceSource = job.AddDeviceSource(video, audio);

            // Make this source the active one

            job.ActivateSource(deviceSource);
        }
        else
        {
            error = true;
        }

Thanks

EDIT: Forgot to mention that it only finds 1 video device. ex: i cant do this

 EncoderDevice video = devices[1];
  • 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-26T15:40:38+00:00Added an answer on May 26, 2026 at 3:40 pm
     deviceSource.ScreenCaptureSourceProperties = new ScreenCaptureSourceProperties()
                {
                    Left = x,
                    Top = y,
                    Width = w,
                    Height = h,
                };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to continuously sample from my PC's audio line in using C# (then
I am using the example from TheElements sample code provided with the iPhone SDK
Here is a sample code to retrieve data from a database using the yield
I am using some code which was originally taken from the Apple sample ViewTransitions
I've built an iPhone application using the parsing code from the TopSongs sample iPhone
im using a simple test script from http://www.tuxradar.com/practicalphp/8/11/0 like this <?php $fp = fopen(foo.txt,
I haved generated simple CRUD application from seam-gen using seam generate-ui command, but the
I downloaded a sample code from here: http://gallery.expression.microsoft.com/ShowHideWithFlip Now my problem is that i'm
I am trying to harvest all inclusion directives from a PHP file using a
I am using the Dynamic Linq Library / Sample from Microsoft to do ordering

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.