Module Loading Questions
Posted: 06 May 2016 10:35
I created an out-of-tree module which is similar to the netsync plugin. Thus I placed it in the same category (CAT_ADVANCED, SUBCAT_ADVANCED_MISC, interface capability).
The main functionality is working fine but I'd like to improve the following points:
The main functionality is working fine but I'd like to improve the following points:
- The module only gets activated when I start VLC with --extraintf=xyz. But its settings page is shown in the Advanced category whether the module is activated or not. This is quite counterintuitive, imo. The nicest solution would be to activate the module by default. I would then have a "Enabled" setting on the settings page of the module which determines if the loaded module should actually do something. Is it possible to configure an interface module in such a way that it gets loaded in any case (without explicitly loading it with the --extraintf=xyz command line option)?
- An alternative approach to make things more intuitive would be to show the module's settings page only if the module has been activated (with --extraintf=xyz).
- If the module is active it gets initialized only once at startup. When I change any of its settings, a restart of VLC is required so that the changed settings come into effect. How can my module be notified about changed settings, so that it can re-initialize itself?