Example #1
0
        public InternalDirectShowPlayer(ILogManager logManager, IHiddenWindow hiddenWindow, IPresentationManager presentation, ISessionManager sessionManager, IPlaybackManager playbackManager, ITheaterConfigurationManager config, IIsoManager isoManager, IUserInputManager inputManager, IZipClient zipClient, IHttpClient httpClient, IConnectionManager connectionManager)
        {
            _logger            = logManager.GetLogger("InternalDirectShowPlayer");
            _hiddenWindow      = hiddenWindow;
            _presentation      = presentation;
            _sessionManager    = sessionManager;
            _httpClient        = httpClient;
            _connectionManager = connectionManager;
            _playbackManager   = playbackManager;
            _config            = config;
            _isoManager        = isoManager;
            _inputManager      = inputManager;
            _zipClient         = zipClient;

            _config.Configuration.InternalPlayerConfiguration.VideoConfig.SetDefaults();
            _config.Configuration.InternalPlayerConfiguration.AudioConfig.SetDefaults();
            _config.Configuration.InternalPlayerConfiguration.SubtitleConfig.SetDefaults();
            _config.Configuration.InternalPlayerConfiguration.COMConfig.SetDefaults();

            //use a static object so we keep the libraries in the same place. Doesn't usually matter, but the EVR Presenter does some COM hooking that has problems if we change the lib address.
            if (_privateCom == null)
            {
                _privateCom = new URCOMLoader(_config, _zipClient);
            }

            EnsureMediaFilters();
        }
        public InternalDirectShowPlayer(ILogManager logManager, IHiddenWindow hiddenWindow, IPresentationManager presentation, ISessionManager sessionManager, IPlaybackManager playbackManager, ITheaterConfigurationManager config, IIsoManager isoManager, IUserInputManager inputManager, IZipClient zipClient, IHttpClient httpClient, IConnectionManager connectionManager)
        {
            _logger = logManager.GetLogger("InternalDirectShowPlayer");
            _hiddenWindow = hiddenWindow;
            _presentation = presentation;
            _sessionManager = sessionManager;
            _httpClient = httpClient;
            _connectionManager = connectionManager;
            _playbackManager = playbackManager;
            _config = config;
            _isoManager = isoManager;
            _inputManager = inputManager;
            _zipClient = zipClient;

            _config.Configuration.InternalPlayerConfiguration.VideoConfig.SetDefaults();
            _config.Configuration.InternalPlayerConfiguration.AudioConfig.SetDefaults();
            _config.Configuration.InternalPlayerConfiguration.SubtitleConfig.SetDefaults();
            _config.Configuration.InternalPlayerConfiguration.COMConfig.SetDefaults();

            //use a static object so we keep the libraries in the same place. Doesn't usually matter, but the EVR Presenter does some COM hooking that has problems if we change the lib address.
            //if (_privateCom == null)
            //    _privateCom = new URCOMLoader(_config, _zipClient);
            URCOMLoader.Instance.Initialize(_config, _zipClient, logManager);

            EnsureMediaFilters();
        }
Example #3
0
        public UserInputManager(IPresentationManager presentationManager, INavigationService navigationService, IHiddenWindow hiddenWindow, ILogManager logManager)
        {
            _presentationManager = presentationManager;
            _navigationService   = navigationService;
            _hiddenWindow        = hiddenWindow;

            _presentationManager.WindowLoaded += MainWindowLoaded;
            _logger = logManager.GetLogger(GetType().Name);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="NVlcPlayer" /> class.
        /// </summary>
        /// <param name="hiddenWindow">The hidden window.</param>
        /// <param name="logManager">The log manager.</param>
        /// <param name="playbackManager">The playback manager.</param>
        public NVlcPlayer(IHiddenWindow hiddenWindow, ILogManager logManager, IPlaybackManager playbackManager, ITheaterConfigurationManager config, IUserInputManager userInput, IPresentationManager presentation)
        {
            _hiddenWindow = hiddenWindow;
            _playbackManager = playbackManager;
            _config = config;
            _userInput = userInput;
            _presentation = presentation;

            _logger = logManager.GetLogger(Name);
        }
Example #5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="NVlcPlayer" /> class.
        /// </summary>
        /// <param name="hiddenWindow">The hidden window.</param>
        /// <param name="logManager">The log manager.</param>
        /// <param name="playbackManager">The playback manager.</param>
        public NVlcPlayer(IHiddenWindow hiddenWindow, ILogManager logManager, IPlaybackManager playbackManager, ITheaterConfigurationManager config, IUserInputManager userInput, IPresentationManager presentation)
        {
            _hiddenWindow    = hiddenWindow;
            _playbackManager = playbackManager;
            _config          = config;
            _userInput       = userInput;
            _presentation    = presentation;

            _logger = logManager.GetLogger(Name);
        }
 public InternalDirectShowPlayer(ILogManager logManager, IHiddenWindow hiddenWindow, IPresentationManager presentation, IUserInputManager userInput, IApiClient apiClient, IPlaybackManager playbackManager, ITheaterConfigurationManager config, IIsoManager isoManager)
 {
     _logger = logManager.GetLogger("DirectShowPlayer");
     _hiddenWindow = hiddenWindow;
     _presentation = presentation;
     _userInput = userInput;
     _apiClient = apiClient;
     _playbackManager = playbackManager;
     _config = config;
     _isoManager = isoManager;
 }
 public InternalDirectShowPlayer(ILogManager logManager, IHiddenWindow hiddenWindow, IPresentationManager presentation, IUserInputManager userInput, IApiClient apiClient, IPlaybackManager playbackManager, ITheaterConfigurationManager config, IIsoManager isoManager)
 {
     _logger          = logManager.GetLogger("DirectShowPlayer");
     _hiddenWindow    = hiddenWindow;
     _presentation    = presentation;
     _userInput       = userInput;
     _apiClient       = apiClient;
     _playbackManager = playbackManager;
     _config          = config;
     _isoManager      = isoManager;
 }
Example #8
0
 public InternalDirectShowPlayer(ILogManager logManager, IHiddenWindow hiddenWindow, IPresentationManager presentation, ISessionManager sessionManager, IApiClient apiClient, IPlaybackManager playbackManager, ITheaterConfigurationManager config, IIsoManager isoManager, IUserInputManager inputManager, IZipClient zipClient, IHttpClient httpClient)
 {
     _logger          = logManager.GetLogger("InternalDirectShowPlayer");
     _hiddenWindow    = hiddenWindow;
     _presentation    = presentation;
     _sessionManager  = sessionManager;
     _apiClient       = apiClient;
     _httpClient      = httpClient;
     _playbackManager = playbackManager;
     _config          = config;
     _isoManager      = isoManager;
     _inputManager    = inputManager;
     _zipClient       = zipClient;
 }
 public InternalDirectShowPlayer(ILogManager logManager, IHiddenWindow hiddenWindow, IPresentationManager presentation, ISessionManager sessionManager, IApiClient apiClient, IPlaybackManager playbackManager, ITheaterConfigurationManager config, IIsoManager isoManager, IUserInputManager inputManager, IZipClient zipClient, IHttpClient httpClient)
 {
     _logger = logManager.GetLogger("InternalDirectShowPlayer");
     _hiddenWindow = hiddenWindow;
     _presentation = presentation;
     _sessionManager = sessionManager;
     _apiClient = apiClient;
     _httpClient = httpClient;
     _playbackManager = playbackManager;
     _config = config;
     _isoManager = isoManager;
     _inputManager = inputManager;
     _zipClient = zipClient;
 }
Example #10
0
        public FullscreenVideoPage(IUserInputManager userInputManager, IPlaybackManager playbackManager, INavigationService nav, IPresentationManager presentation, IConnectionManager connectionManager, IImageManager imageManager, ILogger logger, IHiddenWindow hiddenWindow)
        {
            _userInputManager = userInputManager;
            _playbackManager  = playbackManager;
            _nav               = nav;
            _presentation      = presentation;
            _connectionManager = connectionManager;
            _imageManager      = imageManager;
            _logger            = logger;
            _hiddenWindow      = hiddenWindow;

            InitializeComponent();

            IsMouseIdle = false;
        }
        public FullscreenVideoPage(IUserInputManager userInputManager, IPlaybackManager playbackManager, INavigationService nav, IPresentationManager presentation, IConnectionManager connectionManager, IImageManager imageManager, ILogger logger, IHiddenWindow hiddenWindow)
        {
            _userInputManager = userInputManager;
            _playbackManager = playbackManager;
            _nav = nav;
            _presentation = presentation;
            _connectionManager = connectionManager;
            _imageManager = imageManager;
            _logger = logger;
            _hiddenWindow = hiddenWindow;

            InitializeComponent();

            IsMouseIdle = false;
        }
Example #12
0
        public FullscreenVideoPage(IUserInputManager userInputManager, IPlaybackManager playbackManager, INavigationService nav, IPresentationManager presentation, IApiClient apiClient, IImageManager imageManager, ILogger logger, IServerEvents serverEvents, IHiddenWindow hiddenWindow)
        {
            _userInputManager = userInputManager;
            _playbackManager  = playbackManager;
            _nav          = nav;
            _presentation = presentation;
            _apiClient    = apiClient;
            _imageManager = imageManager;
            _logger       = logger;
            _serverEvents = serverEvents;
            _hiddenWindow = hiddenWindow;

            InitializeComponent();

            IsMouseIdle = false;
        }
        public FullscreenVideoPage(IUserInputManager userInputManager, IPlaybackManager playbackManager, INavigationService nav, IPresentationManager presentation, IApiClient apiClient, IImageManager imageManager, ILogger logger, IServerEvents serverEvents, IHiddenWindow hiddenWindow)
        {
            _userInputManager = userInputManager;
            _playbackManager = playbackManager;
            _nav = nav;
            _presentation = presentation;
            _apiClient = apiClient;
            _imageManager = imageManager;
            _logger = logger;
            _serverEvents = serverEvents;
            _hiddenWindow = hiddenWindow;

            InitializeComponent();

            IsMouseIdle = false;
        }
        public NavigationService(IThemeManager themeManager, Func<IPlaybackManager> playbackManagerFactory, IPresentationManager presentationManager, ITheaterConfigurationManager config, Func<ISessionManager> sessionFactory, IApplicationHost appHost, IInstallationManager installationManager, IImageManager imageManager, ILogger logger, Func<IUserInputManager> userInputManagerFactory, IHiddenWindow hiddenWindow, IConnectionManager connectionManager)
        {
            _themeManager = themeManager;
            _playbackManagerFactory = playbackManagerFactory;
            _presentationManager = presentationManager;
            _config = config;
            _sessionFactory = sessionFactory;
            _appHost = appHost;
            _installationManager = installationManager;
            _imageManager = imageManager;
            _logger = logger;
            _userInputManagerFactory = userInputManagerFactory;
            _hiddenWindow = hiddenWindow;
            _connectionManager = connectionManager;

            presentationManager.WindowLoaded += presentationManager_WindowLoaded;
        }
Example #15
0
        public NavigationService(IThemeManager themeManager, Func <IPlaybackManager> playbackManagerFactory, IPresentationManager presentationManager, ITheaterConfigurationManager config, Func <ISessionManager> sessionFactory, IApplicationHost appHost, IInstallationManager installationManager, IImageManager imageManager, ILogger logger, Func <IUserInputManager> userInputManagerFactory, IHiddenWindow hiddenWindow, IConnectionManager connectionManager)
        {
            _themeManager           = themeManager;
            _playbackManagerFactory = playbackManagerFactory;
            _presentationManager    = presentationManager;
            _config                  = config;
            _sessionFactory          = sessionFactory;
            _appHost                 = appHost;
            _installationManager     = installationManager;
            _imageManager            = imageManager;
            _logger                  = logger;
            _userInputManagerFactory = userInputManagerFactory;
            _hiddenWindow            = hiddenWindow;
            _connectionManager       = connectionManager;

            presentationManager.WindowLoaded += presentationManager_WindowLoaded;
        }
Example #16
0
 public DirectShowPlayer(ILogger logger, IHiddenWindow hiddenWindow, InternalDirectShowPlayer playerWrapper)
 {
     _logger        = logger;
     _hiddenWindow  = hiddenWindow;
     _playerWrapper = playerWrapper;
 }
 public DirectShowPlayer(ILogger logger, IHiddenWindow hiddenWindow, InternalDirectShowPlayer playerWrapper,
     IntPtr applicationWindowHandle, ISessionManager sessionManager, ITheaterConfigurationManager mbtConfig,
     IUserInputManager input, IApiClient apiClient,  IZipClient zipClient, IHttpClient httpClient)
 {
     _logger = logger;
     _hiddenWindow = hiddenWindow;
     _playerWrapper = playerWrapper;
     _applicationWindowHandle = applicationWindowHandle;
     _sessionManager = sessionManager;
     _httpClient = httpClient;
     _input = input;
     _input.KeyDown += HiddenForm_KeyDown;
     //_input.
     _mbtConfig = mbtConfig;
     _apiClient = apiClient;
 }
        public UserInputManager(IPresentationManager presenationManager, INavigationService navigationService, IHiddenWindow hiddenWindow, ILogManager logManager)
        {
            _presenationManager = presenationManager;
            _navigationService = navigationService;
            _hiddenWindow = hiddenWindow;

            _presenationManager.WindowLoaded += MainWindowLoaded;
            _logger = logManager.GetLogger(GetType().Name);
        }
        public DirectShowPlayer(ILogger logger, IHiddenWindow hiddenWindow, InternalDirectShowPlayer playerWrapper,
            IntPtr applicationWindowHandle, ISessionManager sessionManager, ITheaterConfigurationManager mbtConfig,
            IUserInputManager input, IApiClient apiClient,  IZipClient zipClient, IHttpClient httpClient)
        {
            _logger = logger;
            _hiddenWindow = hiddenWindow;
            _playerWrapper = playerWrapper;
            _applicationWindowHandle = applicationWindowHandle;
            _sessionManager = sessionManager;
            _httpClient = httpClient;
            _input = input;
            _input.KeyDown += HiddenForm_KeyDown;
            //_input.
            _mbtConfig = mbtConfig;
            _apiClient = apiClient;

            _mbtConfig.Configuration.InternalPlayerConfiguration.VideoConfig.SetDefaults();
            _mbtConfig.Configuration.InternalPlayerConfiguration.AudioConfig.SetDefaults();
            _mbtConfig.Configuration.InternalPlayerConfiguration.SubtitleConfig.SetDefaults();
            _mbtConfig.Configuration.InternalPlayerConfiguration.COMConfig.SetDefaults();

            //use a static object so we keep the libraries in the same place. Doesn't usually matter, but the EVR Presenter does some COM hooking that has problems if we change the lib address.
            if (_urCom == null)
                _urCom = new URCOMLoader(_mbtConfig, zipClient);
        }
 public DirectShowPlayer(ILogger logger, IHiddenWindow hiddenWindow, InternalDirectShowPlayer playerWrapper)
 {
     _logger = logger;
     _hiddenWindow = hiddenWindow;
     _playerWrapper = playerWrapper;
 }