/// <summary> /// Enables the madvr. /// </summary> /// <param name="options">The options.</param> /// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns> //private bool EnableReclock(PlayOptions options) //{ // var video = options.Items.First(); // if (!video.IsVideo) // { // return false; // } // if (!_config.Configuration.InternalPlayerConfiguration.EnableReclock) // { // return false; // } // if (!options.GoFullScreen) // { // return false; // } // return true; //} private void DisposePlayer() { if (_mediaPlayer != null) { InvokeOnPlayerThread(() => { _mediaPlayer.Dispose(); _mediaPlayer = null; //force the object to get cleaned up }); } }
private void DisposePlayer() { if (_mediaPlayer != null) { _currentPlaybackDispatcher.Invoke(() => { _mediaPlayer.Dispose(); _hiddenWindow.WindowsFormsHost.Child = new Panel(); }); } }