public void Show(string path) { Show(); var wih = new WindowInteropHelper(this); IntPtr hwnd = wih.Handle; _playerIntPtr = NativePlayer.GetRtspPlayer(path, null, null, null, 10000, hwnd); if (_playerIntPtr != IntPtr.Zero) { //ShowFfmpeg(path); NativePlayer.Play(_playerIntPtr); } else { Close(); } }