Exemple #1
0
 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);
         }
     }
 }
Exemple #2
0
 private void AdaptiveSrcManager_AdaptiveSourceOpenedEvent(AdaptiveSource sender, AdaptiveSourceOpenedEventArgs args)
 {
     // Not used yet
 }
 private void mediaElement_AdaptiveSourceOpened(AdaptiveSource sender, AdaptiveSourceOpenedEventArgs args)
 {
     adaptiveSource = args.AdaptiveSource;
 }