void AdaptiveSrcManager_AdaptiveSourceOpenedEvent(AdaptiveSource sender, AdaptiveSourceOpenedEventArgs args) { lock (adaptiveSourceLock) { if (SourceUri == null || (args.AdaptiveSource.Uri.Host == SourceUri.Host && args.AdaptiveSource.Uri.PathAndQuery == SourceUri.PathAndQuery)) { ActiveAdaptiveSource = args.AdaptiveSource; if (DownloaderPlugin is ILifetimeAwareDownloaderPlugin) { ((ILifetimeAwareDownloaderPlugin)DownloaderPlugin).OnOpenMedia(args.AdaptiveSource.Uri); } if (OpenedBackground != null) { OpenedBackground(this, EventArgs.Empty); } RunOnProtectedUIThread(() => { if (Opened != null) { Opened(this, EventArgs.Empty); } }, false); } } }
private void AdaptiveSrcManager_AdaptiveSourceOpenedEvent(AdaptiveSource sender, AdaptiveSourceOpenedEventArgs args) { // Not used yet }
private void mediaElement_AdaptiveSourceOpened(AdaptiveSource sender, AdaptiveSourceOpenedEventArgs args) { adaptiveSource = args.AdaptiveSource; }