private void readVideoTimePeriodsPacket(ISourceInfo source, ITimePeriod tp, IVideoInfo vi) { try { VideoDownloadCmd cmd = new VideoDownloadCmd(new DownloadInfoParam(source, tp, vi, null)); cmd.VideoTimePeriodsEvent += onVideoTimePeriodsEvent; cmd.GetTimePeriods(); } catch (Exception ex) { Console.WriteLine("Read Video Time Periods Packet Error! {0}({1}) - {2} : {3}", vi.VideoName, vi.VideoId, vi.StreamId, ex.ToString()); } }
private void initTimePeriods() { _downCmd.GetTimePeriods(); }