public WmpPlayerController(MpvMediaPlayer player, Window playerWindow)
        {
            this.Player       = player;
            this.PlayerWindow = playerWindow;

            player.MediaPlayerInitialized += (o, e) => {
                Loop = true;

                Player.Host.OnMediaLoaded += Player_MediaOpened;
                if (playerWindow != null)
                {
                    playerWindow.Closing += Window_Closing;
                }
                IsPlayingNotifier = new PropertyChangeNotifier(player.Host, MpvMediaPlayerHost.IsPlayingProperty);
                IsPlayingNotifier.ValueChanged += IsPlayingNotifier_ValueChanged;
                //Player.LostFocus += Player_LostFocus;
            };
        }
 public WmpPlayerController(MpvMediaPlayer player) : this(player, null)
 {
 }