示例#1
0
 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());
     }
 }
示例#2
0
 private void initTimePeriods()
 {
     _downCmd.GetTimePeriods();
 }