PlayCompleted (DVR version only)
Top  Previous  Next

Description

This event is fired when the playback of the memory sequence or video file is stopped.

Syntax


[VB]
Private Sub objActiveGeni_PlayCompleted(ByVal Frames As Long)


[C/C++]
HRESULT Fire_PlayCompleted(long Frames);


Data Types
[VB]

Frames: long  


Parameters
[C/C++]

Frames  
      The number of frames recorded.


Example


This VB example opens the memory sequence, plays it and uses the PlayCompleted event to turn the live video on.


Private Sub
Play_Click()
ActiveGeni1.OpenVideo "ram"
ActiveGeni1.PlayVideo
End Sub

Private Sub
 ActiveGeni1_PlayCompleted(ByVal Frames As Long)
ActiveGeni1.CloseVideo
ActiveGeni1.Acquire=
True
End Sub
 

Remarks


One of the following conditions must be met, before the PlayCompleted event will be fired:
Playback has stopped automatically, because the specified number of frames has been reached.  
Playback has been stopped explicitly by calling StopVideo.