SetVideoVolume (DVR version only)
Top  Previous  Next

Description

Sets the volume level of the currently open AVI file.

Syntax


[VB]
objActiveDcam.SetVideoVolume Value


[C/C++]
HRESULT SetVideoVolume(short Value);


Data Types
[VB]

Value: Short


Parameters
[C/C++]

Value [out,retval]  
The volume to be set, in percent.  


Return Values

S_OK  
Success  
E_FAIL  
Failure.  

Example


This VB example uses a scroll bar to adjust the video volume.

Private Sub Form_Load()  
HScroll1.Min=0  
HScroll1.Max=100  
ActiveDcam1.OpenVideo "C:\\video1.avi", True  
HScroll.Value=ActiveDcam1.GetVideoVolume  
ActiveDcam1.PlayVideo  
End Sub  
 
Private Sub HScroll1_Scroll()  
ActiveDcam1.SetVideoVolume HScroll1.Value  
End Sub  
 

Remarks


In order for this method to work, the AVI file must be recorded with the sound and opened with the sound option enabled.