Ejemplo n.º 1
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;
        }
Ejemplo n.º 2
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);
        }