Results 1 to 2 of 2

Thread: Ezvidcap.ocx - can you switch camera sources at run time?

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Location
    Charlotte, NC
    Posts
    1

    Ezvidcap.ocx - can you switch camera sources at run time?

    I've tried to change the driver index number, but even though I have two cameras connected, the control doesn't switch between the two cameras. The only way I have found to switch is to open the source dialog and manually select the other camera driver.

    But I need to change camera sources in the program. Can anyone help?

    -Eric

  2. #2
    Hyperactive Member
    Join Date
    Jun 2002
    Location
    Tulsa,Ok
    Posts
    262
    Are you talking about switching between Composite and TV and the like, if so you do it like this.

    VB Code:
    1. Private Sub Command1_Click()
    2.  
    3.    ezVidCap1.DriverIndex = VFW_DEFAULT
    4.  
    5. End Sub
    6.  
    7. Private Sub Command2_Click()
    8.  
    9.    ezVidCap1.DriverIndex = VFW_INDEX_1
    10.  
    11. End Sub


    This will switch the inputs.

    Jerel

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