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); }
public bool Stop() { if (mVideoSource != null) { IBackPlayer player = mVideoSource as IBackPlayer; if (player != null) { return(player.Pause()); } else { return(mVideoSource.Stop()); } } return(false); }