コード例 #1
0
 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;
 }
コード例 #2
0
 private void onVideoTimePeriodsEvent(VideoDownloadCmd vd, VideoTimePeriodsPacket packet)
 {
     send(ParamCode.TimePeriods, VideoTimePeriodsPacket.Encode(packet));
     vd.Dispose();
 }