public virtual void Initialize(MediaWorkflowStateType stateType, IPlayer player)
 {
     _mediaWorkflowStateType = stateType;
     _subtitlePlayer         = player as ISubtitlePlayer;
     _chapterPlayer          = player as IChapterPlayer;
     _titlePlayer            = player as ITitlePlayer;
     _subtitleMenuItems      = new ItemsList();
     _chapterMenuItems       = new ItemsList();
     _titleMenuItems         = new ItemsList();
 }
Exemplo n.º 2
0
        public bool NextChapter()
        {
            IChapterPlayer player = GetCurrentPlayer() as IChapterPlayer;

            if (player == null || !player.ChaptersAvailable)
            {
                return(false);
            }
            // Can skip to next only if current chapter is not the last
            if (player.CurrentChapter == player.Chapters.Last())
            {
                return(false);
            }
            player.NextChapter();
            return(true);
        }
Exemplo n.º 3
0
        public bool PreviousChapter()
        {
            IChapterPlayer player = GetCurrentPlayer() as IChapterPlayer;

            if (player == null || !player.ChaptersAvailable)
            {
                return(false);
            }
            // Can skip to previous only if current chapter is not the first
            if (player.CurrentChapter == player.Chapters.First())
            {
                return(false);
            }
            player.PrevChapter();
            return(true);
        }
 public virtual void Initialize(MediaWorkflowStateType stateType, IPlayer player)
 {
   _mediaWorkflowStateType = stateType;
   _subtitlePlayer = player as ISubtitlePlayer;
   _chapterPlayer = player as IChapterPlayer;
   _titlePlayer = player as ITitlePlayer;
   _subtitleMenuItems = new ItemsList();
   _chapterMenuItems = new ItemsList();
   _titleMenuItems = new ItemsList();
 }
 public void Initialize(MediaWorkflowStateType stateType, IPlayer player)
 {
     _mediaWorkflowStateType = stateType;
       _player = player as IChapterPlayer;
       _chapterMenuItems = new ItemsList();
 }