/// <summary> /// Resets player variables /// </summary> private void resetPlayer() { // If we have an image mounted, unmount it if (mountedPlayback) { queuedMedia.UnMount(); mountedPlayback = false; } // reset player variables if (GUIGraphicsContext.IsFullScreenVideo) { GUIGraphicsContext.IsFullScreenVideo = false; } activeMedia = null; queuedMedia = null; _playerState = MoviePlayerState.Idle; _resumeActive = false; _forcePlay = false; listenToExternalPlayerEvents = false; donePlayingCustomIntros = false; customIntrosPlayed = 0; ClearPlayProperties(); logger.Debug("Reset."); }
private void btnExit_Click(object sender, EventArgs e) { timer1.Enabled = false; StopGraph(); CloseDVDInterfaces(); RemoveHandlers(); if (mediaToPlay != null) { mediaToPlay.UnMount(); } this.Dispose(); }