예제 #1
0
 public bool Pause(string name)
 {
     foreach (CHKDVRDevice device in mVideoDevices.Values)
     {
         IBackPlayer play = device.GetPlayer(name) as IBackPlayer;
         if (play != null)
         {
             return(play.Pause());
         }
     }
     return(false);
 }
예제 #2
0
 public bool Stop()
 {
     if (mVideoSource != null)
     {
         IBackPlayer player = mVideoSource as IBackPlayer;
         if (player != null)
         {
             return(player.Pause());
         }
         else
         {
             return(mVideoSource.Stop());
         }
     }
     return(false);
 }