dirkfirst said:
I didn't even know there was a C# to VB.net converter!
I can't see the code because I don't have VB 6. Can you post the section for sending messages? It would probably be a simple matter of adding a loop and streaming the media.
Here is the website
http://www.kamalpate...tCSharp2VB.aspx
I am not sure if it works tho...
Anyway, I have found a code for the client/server that capture and transmit webcam stream.
I have attached it below for those who are interested in doing it..
The code uses the code below to capture and send the stream
Private Sub TmrStream_Timer()
On Error Resume Next
TakeFrame
End Sub
Public Sub TakeFrame()
On Error Resume Next
Dim Bjpg As String
If Winsock1.State = sckConnected Then
SavePicture Picture1.Picture, App.Path & "\temp.bsrm"
Call ConvertBMPtoJPG(App.Path & "\temp.bsrm", App.Path & "\temp.jsrm", True, 100, False)
DoEvents
Bjpg = GetFile(App.Path & "\temp.jsrm")
DoEvents
Winsock1.SendData Bjpg
End If
End Sub
I think what it does is it uses the timer to capture a picture, convert it to JPEG and then sending it. Is this method effective..?
I came across other methods such as using DirectShow and AVICap..
Why different methods of doing similar tasks..? Which is the more effective way..?