我最近了解了数据流和 C#。我已经练习构建一个简单的服务器客户端登录程序,如下所示:
public static TcpClient SocketCLiente = new TcpClient();
NetworkStream _serverStream = default(NetworkStream);
public static string IPServer="127.0.0.1";
byte[] outStream = System.Text.Encoding.ASCII.GetBytes(this._txtUserName.Text + "%" + this.txtPassword.Text + "$");
_serverStream.Write(outStream, 0, outStream.Length);
这适用于文本,但如果我想将视频流式传输到客户端怎么办?如何通过 LAN 将实时视频从我的网络摄像头流式传输到 ac# 应用程序?