Exemplo n.º 1
0
 public static Rtp GetInstance()
 {
     if (instance == null)
     {
         instance = new Rtp();
     }
     return(instance);
 }
Exemplo n.º 2
0
 public Rtsp(string url)
 {
     RtspUrl      = url;
     RtspUri      = new Uri(RtspUrl, UriKind.Absolute);
     RtspMessages = new RtspCommands(RtspUrl);
     RtspSocket   = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
     RtspEvntArgs = new SocketAsyncEventArgs();
     RtpStream    = Rtp.GetInstance();
     RtspEvntArgs.RemoteEndPoint = new DnsEndPoint(RtspUri.Host, RtspPort);
     RtspEvntArgs.Completed     += RtspEvntArgs_Completed;
     RtspEvntArgs.SetBuffer(0, MaxBufferSize);
     CurrentState = State.Init;
     //RtpStream.DeterminePort(new AsyncCallback(CB));
 }
Exemplo n.º 3
0
 public Rtsp(string url)
 {
     RtspUrl = url;
     RtspUri = new Uri(RtspUrl, UriKind.Absolute);
     RtspMessages = new RtspCommands(RtspUrl);
     RtspSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
     RtspEvntArgs = new SocketAsyncEventArgs();
     RtpStream = Rtp.GetInstance();
     RtspEvntArgs.RemoteEndPoint = new DnsEndPoint(RtspUri.Host, RtspPort);
     RtspEvntArgs.Completed += RtspEvntArgs_Completed;
     RtspEvntArgs.SetBuffer(0, MaxBufferSize);
     CurrentState = State.Init;
     //RtpStream.DeterminePort(new AsyncCallback(CB));
 }
Exemplo n.º 4
0
 public static Rtp GetInstance()
 {
     if (instance == null)
         instance = new Rtp();
     return instance;
 }