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 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;

            _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);
        }
Ejemplo n.º 4
0
 public DirectShowPlayer(ILogger logger, IHiddenWindow hiddenWindow, InternalDirectShowPlayer playerWrapper)
 {
     _logger        = logger;
     _hiddenWindow  = hiddenWindow;
     _playerWrapper = playerWrapper;
 }