public CffProgressivePage()
        {
            this.InitializeComponent();

            this.navigationHelper = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            var adaptivePlugin = new Microsoft.PlayerFramework.Adaptive.AdaptivePlugin();
            player.Plugins.Add(adaptivePlugin);
            adaptivePlugin.DownloaderPlugin = new Microsoft.Media.AdaptiveStreaming.Dash.CffProgressiveDownloaderPlugin();
        }
        public CffProgressivePage()
        {
            this.InitializeComponent();

            this.navigationHelper            = new NavigationHelper(this);
            this.navigationHelper.LoadState += this.NavigationHelper_LoadState;
            this.navigationHelper.SaveState += this.NavigationHelper_SaveState;

            var adaptivePlugin = new Microsoft.PlayerFramework.Adaptive.AdaptivePlugin();

            player.Plugins.Add(adaptivePlugin);
            adaptivePlugin.DownloaderPlugin = new Microsoft.Media.AdaptiveStreaming.Dash.CffProgressiveDownloaderPlugin();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// This method Register the Dash component .
        /// </summary>
        public bool RegisterDash()
        {
            bool bResult = false;

            if (dashPlugin == null)
                dashPlugin = new Microsoft.PlayerFramework.Adaptive.AdaptivePlugin();
            if (dashPlugin != null)
            {
                bResult = true;
                mediaElement.Plugins.Add(dashPlugin);
            }
            return bResult;
        }