//public URCOMLoader PrivateCom //{ // get // { // return _privateCom; // } //} public InternalDirectShowPlayer( ILogManager logManager , MainBaseForm hostForm //, IPresentationManager presentation //, ISessionManager sessionManager , IApplicationPaths appPaths , IIsoManager isoManager //, IUserInputManager inputManager , IZipClient zipClient , IHttpClient httpClient, IConfigurationManager configurationManager) { _logger = logManager.GetLogger("InternalDirectShowPlayer"); _hostForm = hostForm; //_presentation = presentation; //_sessionManager = sessionManager; _httpClient = httpClient; _config = configurationManager; _isoManager = isoManager; //_inputManager = inputManager; _zipClient = zipClient; var config = GetConfiguration(); config.VideoConfig.SetDefaults(); config.AudioConfig.SetDefaults(); config.SubtitleConfig.SetDefaults(); config.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(appPaths.ProgramDataPath, _zipClient, logManager, configurationManager); EnsureMediaFilters(appPaths.ProgramDataPath); }
public DirectShowPlayerBridge(ILogManager logManager , MainBaseForm hostForm , IApplicationPaths appPaths , IIsoManager isoManager , IZipClient zipClient , IHttpClient httpClient, IConfigurationManager configurationManager, IJsonSerializer json) { _json = json; _logger = logManager.GetLogger("DirectShowPlayerBridge"); _player = new InternalDirectShowPlayer(logManager, hostForm, appPaths, isoManager, zipClient, httpClient, configurationManager); }
public DirectShowPlayer( InternalDirectShowPlayer playerWrapper , MainBaseForm hostForm , ILogger logger , DirectShowPlayerConfiguration config , IHttpClient httpClient) { _playerWrapper = playerWrapper; _hostForm = hostForm; _logger = logger; _config = config; _httpClient = httpClient; _hostForm.GraphNotify += _hostForm_GraphNotify; _hostForm.DvdEvent += _hostForm_DvdEvent; }