void AdaptiveSrcManager_AdaptiveSourceClosedEvent(AdaptiveSource sender, AdaptiveSourceClosedEventArgs args) { lock (adaptiveSourceLock) { if (IsOpen && ActiveAdaptiveSource == args.AdaptiveSource) { isStartupBitrateActive = false; ActiveAdaptiveSource = null; if (DownloaderPlugin is ILifetimeAwareDownloaderPlugin) { ((ILifetimeAwareDownloaderPlugin)DownloaderPlugin).OnCloseMedia(args.AdaptiveSource.Uri); } lock (bitrateLog) { bitrateLog.Clear(); } if (ClosedBackground != null) { ClosedBackground(this, EventArgs.Empty); } RunOnProtectedUIThread(() => { if (Closed != null) { Closed(this, EventArgs.Empty); } }, false); } } }
private void AdaptiveSrcManager_AdaptiveSourceClosedEvent(AdaptiveSource sender, AdaptiveSourceClosedEventArgs args) { // Not used yet }