コード例 #1
0
        /// <summary>
        /// Prepares the necessary elements to start the playback on the WebPage.
        ///
        /// These elements are:
        /// 1 - The Information payload to be passed to Webpage.
        /// 2 - Clean, if any, garbage left on memory.
        /// 3 - Navigate to VideoUI's Webpage.
        /// </summary>
        private void StartPlayback()
        {
            InformationPayload information = new InformationPayload(Utils.GetProperVideoUIUri(MediaURL));

            GC.Collect();
            GC.WaitForPendingFinalizers();

            Frame.Navigate(typeof(Webpage), information);
        }
コード例 #2
0
        /// <summary>
        /// Navigates to the given Video URL and calls tips presentation as soon as the frame navigates to this WebPage.
        /// </summary>
        /// <param name="e">The navigation events, may containing an InformationPayload.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            if (e.Parameter != null)
            {
                InformationPayload information = (InformationPayload)e.Parameter;

                VideoUIWebpage.Navigate(information.VideoURI);
                Painter.RunUIUpdateByMethod(PresentPage);

                base.OnNavigatedTo(e);
            }
        }
コード例 #3
0
        /// <summary>
        /// Navigates to the given Video URL and calls tips presentation as soon as the frame navigates to this WebPage.
        /// </summary>
        /// <param name="e">The navigation events, may containing an InformationPayload.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            if (e.Parameter != null)
            {
                InformationPayload information = (InformationPayload)e.Parameter;
                CurrentURI = information.VideoURI;
                VideoUIWebpage.Navigate(CurrentURI);

                if ((string)Utils.GetSettingValue(Constants.Settings.ShowTips["varname"]) == Constants.Settings.ShowTips["True"])
                {
                    Painter.RunUIUpdateByMethod(ShowTips);
                }

                base.OnNavigatedTo(e);
            }
        }
コード例 #4
0
        /// <summary>
        /// Prepares the necessary elements to start the playback on the WebPage.
        ///
        /// These elements are:
        /// 1 - The Information payload to be passed to Webpage.
        /// 2 - Navigate to Webpage.
        /// </summary>
        private void StartPlayback()
        {
            InformationPayload information = new InformationPayload(Utils.GetProperVideoUIUri(this.mediaURL));

            this.Frame.Navigate(typeof(Webpage), information);
        }