static void ReceiveCallback(IAsyncResult ar) { UdpRevicer self = (UdpRevicer)ar.AsyncState; IPEndPoint remote = null; byte[] receiveBytes = self.client.EndReceive(ar, ref remote); self.Received.Invoke(self, remote, receiveBytes); }
void ur_Received(UdpRevicer self, System.Net.IPEndPoint arg2, byte[] data) { if (!_isPlay) return; ur.beginReceive(); RTPModel pkg = new RTPModel(data); queue.Enqueue(FrameHelper.getFrame(pkg.payload)); recvFrameed.Invoke(this, pkg.SequenceNumber, pkg.TimeStamp); }
void ur_Received(UdpRevicer self, System.Net.IPEndPoint arg2, byte[] data) { if (!_isPlay) { return; } ur.beginReceive(); RTPModel pkg = new RTPModel(data); queue.Enqueue(FrameHelper.getFrame(pkg.payload)); recvFrameed.Invoke(this, pkg.SequenceNumber, pkg.TimeStamp); }
public ClientPlayer() { ur = new UdpRevicer(); ur.Received += new Action <UdpRevicer, System.Net.IPEndPoint, byte[]>(ur_Received); }
public ClientPlayer() { ur = new UdpRevicer(); ur.Received += new Action<UdpRevicer, System.Net.IPEndPoint, byte[]>(ur_Received); }