Esempio n. 1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            _playFactory = PlayAdapter.CreatePlayFactory(NavigationContext);
            _playFactory.PlayMessageAction += SetPlayMessage;

            Play();
        }
Esempio n. 2
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            _playFactory = PlayAdapter.CreatePlayFactory(NavigationContext);
            _playFactory.PlayMessageAction += SetPlayMessage;

            Play();
        }
Esempio n. 3
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            Window.Current.CoreWindow.PointerMoved += CoreWindow_PointerMoved;
            rootGrid.PointerPressed += CoreWindows_PointerPressed;

            _playToManager.SourceRequested += playToManager_SourceRequested;
            _playToManager.SourceSelected  += playToManager_SourceSelected;

            _playFactory = PlayAdapter.CreatePlayFactory(e.Parameter);
            _playFactory.PlayMessageAction        += SetPlayMessage;
            _playFactory.PlayErrorAction          += SetPlayError;
            _playFactory.HttpFailOrTimeoutAction  += HttpFailOrTimeout;
            _playFactory.DacPlayInfo.programSource = (int)DACPageType;

            Play();
            DisplayActive();
        }
Esempio n. 4
0
        public static IPlayFactory CreatePlayFactory(object parameter)
        {
            IPlayFactory playFactory = null;

            if (parameter is LiveListItem)
            {
                playFactory = new PlayLiveFactory(parameter);
            }
            else if (parameter is DownloadInfo)
            {
                playFactory = new PlayDownloadFactory(parameter);
            }
            else
            {
                playFactory = new PlayVodFactory(parameter);
            }

            return(playFactory);
        }
Esempio n. 5
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            Window.Current.CoreWindow.PointerMoved += CoreWindow_PointerMoved;
            rootGrid.PointerPressed += CoreWindows_PointerPressed;

            _playToManager.SourceRequested += playToManager_SourceRequested;
            _playToManager.SourceSelected += playToManager_SourceSelected;

            _playFactory = PlayAdapter.CreatePlayFactory(e.Parameter);
            _playFactory.PlayMessageAction += SetPlayMessage;
            _playFactory.PlayErrorAction += SetPlayError;
            _playFactory.HttpFailOrTimeoutAction += HttpFailOrTimeout;
            _playFactory.DacPlayInfo.programSource = (int)DACPageType;

            Play();
            DisplayActive();
        }