//StreamHikToStandard _hikToStand; public HikStream(string ip, ushort port, string user, string pass, int channel, bool isSubStream, IntPtr handle) { //_hikToStand = new StreamHikToStandard(); //_hikToStand.HeaderEvent += onHeader; //_hikToStand.StreamEvent += onStandardStream; _serial = new NetDvr.Serial(ip, port, user, pass); realPlay(channel, isSubStream, handle); }
public override void Dispose() { if (_playHandle >= 0) { _serial.StopRealPlay(_playHandle); Console.WriteLine("Stop Play:" + _playHandle); } _playHandle = -1; if (_serial != null) { _serial.Dispose(); } _serial = null; }