Esempio n. 1
0
        public static bool CallPlayMedia(MediaCenterEnvironment mediaCenterEnvironment, Microsoft.MediaCenter.MediaType type, object media, bool queue)
        {
            string file = media.ToString();

            Logger.ReportVerbose("Calling MediaCenterEnvironment.PlayMedia: " + file);
            return(mediaCenterEnvironment.PlayMedia(type, media, queue));
        }
Esempio n. 2
0
        public void Start()
        {
            Dictionary <string, object> properties = new Dictionary <string, object>();

            properties["Application"] = this;

            if (session != null)
            {
                session.GoToPage("resx://EyeCandy/EyeCandy.Resources/Default", properties);
                MediaCenterEnvironment.PlayMedia(MediaType.Video, @"http://jolt-media/scratch2/charlieo/Phelps400mIndividualMedley.wmv", false);
            }
            else
            {
                Debug.WriteLine("GoToMenu");
            }
        }
Esempio n. 3
0
 public void Launch(AddInHost host)
 {
     try
     {
         if (this.executionInfo.Media != null && this.executionInfo.Media.Count > 0)
         {
             bool flag = true;
             foreach (MediaInfo mediaInfo in this.executionInfo.Media)
             {
                 MediaCenterEnvironment centerEnvironment = AddInHost.Current.MediaCenterEnvironment;
                 MediaType?mediaType = mediaInfo.MediaType;
                 int       num1      = mediaType.HasValue ? (int)mediaType.GetValueOrDefault() : -1;
                 string    url       = mediaInfo.Url;
                 int       num2      = !flag ? 1 : 0;
                 centerEnvironment.PlayMedia((MediaType)num1, (object)url, num2 != 0);
                 flag = false;
             }
             MediaExperience mediaExperience = AddInHost.Current.MediaCenterEnvironment.MediaExperience;
             if (mediaExperience != null)
             {
                 mediaExperience.GoToFullScreen();
             }
         }
         if (VmcExecuteAddIn.ExecutionEngine != null)
         {
             VmcExecuteAddIn.session = new HistoryOrientedPageSession();
             ((PageSession)VmcExecuteAddIn.session).GoToPage("resx://Advent.VmcExecute/Advent.VmcExecute.Resources/MainPage");
             VmcExecuteAddIn.ExecutionEngine.BeginExecute();
         }
         else
         {
             if (!this.executionInfo.Page.HasValue)
             {
                 return;
             }
             AddInHost.Current.MediaCenterEnvironment.NavigateToPage(this.executionInfo.Page.Value, (object)null);
         }
     }
     catch (Exception ex)
     {
         VmcExecuteAddIn.LogError(ex.ToString());
         throw;
     }
 }
 public static bool CallPlayMedia(MediaCenterEnvironment mediaCenterEnvironment, Microsoft.MediaCenter.MediaType type, object media, bool queue)
 {
     Logger.ReportVerbose("Calling MediaCenterEnvironment.PlayMedia");
     return(mediaCenterEnvironment.PlayMedia(type, media, queue));
 }
 public static bool CallPlayMedia(MediaCenterEnvironment mediaCenterEnvironment, Microsoft.MediaCenter.MediaType type, object media, bool queue)
 {
     Logger.ReportVerbose("Calling MediaCenterEnvironment.PlayMedia");
     return mediaCenterEnvironment.PlayMedia(type, media, queue);
 }
 public static bool CallPlayMedia(MediaCenterEnvironment mediaCenterEnvironment, Microsoft.MediaCenter.MediaType type, object media, bool queue)
 {
     string file = media.ToString();
     Logger.ReportVerbose("Calling MediaCenterEnvironment.PlayMedia: " + file);
     return mediaCenterEnvironment.PlayMedia(type, media, queue);
 }