Пример #1
0
 public CHKDVRBackPlayer GetBackPlayer(string name)
 {
     lock (mVideoDevices.SyncRoot)
     {
         foreach (CHKDVRDevice device in mVideoDevices.Values)
         {
             CHKDVRBackPlayer play = device.GetPlayer(name) as CHKDVRBackPlayer;
             if (play != null)
             {
                 return(play);
             }
         }
     }
     return(null);
 }
Пример #2
0
 public RecordFileInfo[] ListFile(string name)
 {
     lock (mVideoDevices.SyncRoot)
     {
         foreach (CHKDVRDevice device in mVideoDevices.Values)
         {
             CHKDVRBackPlayer play = device.GetPlayer(name) as CHKDVRBackPlayer;
             if (play != null)
             {
                 return(play.ListFile());
             }
         }
     }
     return(null);
 }