private void disposeCmd() { if (_downCmd != null) { _downCmd.BytesLengthEvent -= onBytes; _downCmd.ErrorEvent -= onErrorStatus; _downCmd.VideoTimePeriodsEvent -= onVideoTimePeriodsReceived; _downCmd.VideoBaseEvent -= onVideoBasePacketReceived; _downCmd.VideoStreamEvent -= onVideoStream; _downCmd.Dispose(); } _downCmd = null; }
private void onVideoTimePeriodsEvent(VideoDownloadCmd vd, VideoTimePeriodsPacket packet) { send(ParamCode.TimePeriods, VideoTimePeriodsPacket.Encode(packet)); vd.Dispose(); }