public void Close() { if (!isLoaded) { return; } isLoaded = false; player.Close(); overlay.Close(); tracker.Close(); position.Disable(); /* Update the frame */ // frame.Child.Hide(); // frame.Child.Show(); frame.QueueDraw(); //To make sure the frame stops showing the last image from the closed video frame.Ratio = Player.DefaultAspectRatio; SilentDisablePlayPauseButton(); UpdateSpeedControls(1); SetControlsSensitivity(false); }
public void Close() { if (!isLoaded) { return; } isLoaded = false; player.Close(); position.Disable(); tracker.Close(); overlay.Close(); /* Update the frame */ frame.Ratio = Player.DefaultAspectRatio; frame.Hide(); //To keep the frame from showing the last video image that was being played SilentDisablePlayPauseButton(); UpdateSpeedControls(1); SetControlsSensitivity(false); }