示例#1
0
 public override void Initialize(MediaWorkflowStateType stateType, IPlayer player)
 {
     base.Initialize(stateType, player);
     _retroPlayer      = player as LibRetroPlayer;
     _contextMenuItems = new ItemsList();
     _stateIndexItems  = new ItemsList();
 }
        public IPlayer GetPlayer(MediaItem mediaItem)
        {
            LibRetroMediaItem retroItem = mediaItem as LibRetroMediaItem;

            if (retroItem == null)
            {
                return(null);
            }
            var player = new LibRetroPlayer();

            player.SetMediaItem(retroItem);
            return(player);
        }