Exemple #1
0
        private void Button1_Click(object sender, EventArgs e)
        {
            //List<RemotePlaybackFileInfo> FileInfo = new List<RemotePlaybackFileInfo>();
            //FileInfo.Add(new RemotePlaybackFileInfo
            //{
            //    StartTimeStamp = VideoCurrencyModule.PubMethod.DateTimeToUnixTimestamp(DateTime.Now.AddHours(-12)),
            //    EndTimeStamp = VideoCurrencyModule.PubMethod.DateTimeToUnixTimestamp(DateTime.Now.AddHours(-11)),
            //});
            //FileInfo.Add(new RemotePlaybackFileInfo
            //{
            //    StartTimeStamp = VideoCurrencyModule.PubMethod.DateTimeToUnixTimestamp(DateTime.Now.AddHours(-11)),
            //    EndTimeStamp = VideoCurrencyModule.PubMethod.DateTimeToUnixTimestamp(DateTime.Now.AddHours(-10)),
            //});
            //FileInfo.Add(new RemotePlaybackFileInfo
            //{
            //    StartTimeStamp = VideoCurrencyModule.PubMethod.DateTimeToUnixTimestamp(DateTime.Now.AddHours(-10)),
            //    EndTimeStamp = VideoCurrencyModule.PubMethod.DateTimeToUnixTimestamp(DateTime.Now.AddHours(-4)),
            //});

            //FileInfo.Add(new RemotePlaybackFileInfo
            //{
            //    StartTimeStamp = VideoCurrencyModule.PubMethod.DateTimeToUnixTimestamp(DateTime.Now.AddHours(-4)),
            //    EndTimeStamp = VideoCurrencyModule.PubMethod.DateTimeToUnixTimestamp(DateTime.Now.AddHours(-1)),
            //});

            DateTime timStart = DateTime.Now.AddDays(-1);
            DateTime timEnd   = DateTime.Now.AddDays(1);
            string   strPath  = @"G:\Working\Currency\VideoPlayControl\VideoPlayControlTests\bin\Debug\Test\FILE_MAP_09";
            List <RemotePlaybackFileInfo>  Temp_lst    = PubMethod.GetRemotePlaybackFileInfo_SKN(strPath, timStart, timEnd);
            VideoChannelRemotePlaybackInfo channelInfo = new VideoChannelRemotePlaybackInfo
            {
                ChnnelInfo = new PublicClassCurrency.CameraInfo
                {
                    Channel    = 1,
                    CameraName = "通道1"
                },
                StartTime     = timStart,
                EndTime       = timEnd,
                PlaybackFiles = Temp_lst,
            };

            remoteBackplayInfoControl1.SetRemotePlaybackInfo(channelInfo);
            remoteBackplayControl1.SetRemotePlaybackInfo(channelInfo);
            //remoteBackplayControl1.SetCurrentPositionDateTime(DateTime.Now.AddHours(-3));
            channelRemoteBackplayInfo1.SetRemotePlaybackInfo(channelInfo);
        }