Results 1 to 1 of 1

Thread: [RESOLVED] Recieding Problem

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2009
    Posts
    78

    Resolved [RESOLVED] Recieding Problem

    Recording Problem

    Hi all,

    I was trying to stop recording using a timer but i realized that while recording the timer was unable to count and execute the command (it was executed after i manually stopped the recording).

    So i need another method to automatically stop recording after some seconds.

    I read about WM_CAP_SET_SEQUENCE_SETUP and i need some clarifications.

    Do i need to use the CAPTUREPARMS structure to initialize the flimit and wTimelimit?


    How i`m i going to write the sendmessage(window_handle,WM_CAP_SET_SEQUENCE_SETUP,0,0) so it can take those 2 parameters?

    What i did and i don`t know if its correct:

    This is the structure

    Code:
    Private Structure CAPTUREPARMS
            Dim dwRequestMicroSecPerFrame As String
            Dim fMakeUserHitOKToCapture As Boolean
            Dim wPercentDropForError As Integer
            Dim fYield As Boolean
            Dim dwIndexSize As String
            Dim wChunkGranularity As Integer
            Dim fUsingDOSMemory As Boolean
            Dim wNumVideoRequested As Integer
            Dim fCaptureAudio As Boolean
            Dim wNumAudioRequested As Integer
            Dim vKeyAbort As Integer
            Dim fAbortLeftMouse As Boolean
            Dim fAbortRightMouse As Boolean
            Dim fLimitEnabled As Boolean
            Dim wTimeLimit As Integer
            Dim fMCIControl As Boolean
            Dim fStepMCIDevice As Boolean
            Dim dwMCIStartTime As String
            Dim dwMCIStopTime As String
            Dim fStepCaptureAt2x As Boolean
            Dim wStepCaptureAverageFrames As Integer
            Dim dwAudioBufferSize As String
            Dim fDisableWriteCache As Boolean
            Dim AVStreamMaster As Integer
        End Structure

    Here i create an object of the structure and initialize those 2 parameters to enable a limit and to have 5 sec time limit

    Code:
    Dim caprams As CAPTUREPARMS
    
    caprams.wTimeLimit = 5
    caprams.fLimitEnabled = 1
    Now how i`m i going to write the sendmessage command?????

    Code:
    SendMessage(window_handle, WM_CAP_SET_SEQUENCE_SETUP, ????, ????)
    Regards Chris
    Last edited by stoui333; Sep 6th, 2009 at 06:07 AM.

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