+ Reply to Thread
Results 1 to 1 of 1

Thread: webcam record help

  1. #1
    x00x is offline VB.NET Forum Newbie x00x is on a distinguished programming path ahead
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Jun 2009
    Posts
    1
    Reputation
    0

    Question webcam record help

    I'm sorry I really don't know where is the most suitable place to put this topic
    I'm working on a webcam application using AVICAP class API available in the Windows operating system using vb.net, I'm facing a problem when I am doing limit to the duration of a capture operation by using the fLimitEnabled and wTimeLimit members of the CAPTUREPARMS structure

    I wrote this code:

    Private Sub form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim CAP_PRAMS As New CAPTUREPARMS()

    SendMessage(hWnd, WM_CAP_GET_SEQUENCE_SETUP, Len(CAP_PRAMS), CAP_PRAMS)

    With CAP_PRAMS
    CAP_PRAMS.fLimitEnabled = True
    CAP_PRAMS.wTimeLimit = 5
    End With

    SendMessage(hWnd, WM_CAP_SET_SEQUENCE_SETUP, Len(CAP_PRAMS), CAP_PRAMS)

    SendMessage(hWnd, WM_CAP_SEQUENCE, 0, 0)

    SendMessage(hWnd, WM_CAP_FILE_SAVEAS, 0, _
    "C:\Video1.avi")
    End Sub

    ok, the problem is when I run this code it gives me video file with time recorded 0 sec, it is just an image with avi extention
    and I want it to be video file with 5 sec time duration
    please tell me where is the problem
    thnx in advance
    Last edited by x00x; 06-26-2009 at 10:26 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

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