Video Chat ActiveX Control

Connect

 

To establish a connection to a Video Receiver's computer. The Video Receiver's computer must called Listen method.

Public Function Connect(
    ByVal strIPAddress As String, _
    ByVal iPortNo As Integer
    ) as Integer

 

Parameter
strIPAddress - the server ip address
iPort No - the server port no.

Return Value
1 - starting send the video/audio stream, but it will not guarantee the server computer received the stream.
2 - video device not installed
3 - audio device not installed
4 - network problem
5 - unknown error


Example

   

Visual Basic Syntax
VideoChatSender1.VideoDevice=0
VideochatSender1.AudioDevice=0
VideochatSender1.VideoFormat =0
VideochatSender1.FrameRate = 15
VideochatSender1.VideoBitrate = 50000
VideochatSender1.AudioComplexity = 0
VideochatSender1.AudioQuality = 0
VideochatSender1.SendVideoStream = True
VideochatSender1.SendAudioStream = True
iresult = VideochatSender1.Connect("192.168.1.12", 7000)