![]() ![]() You should use one of predefined sub-categories as well. The configuration categories and sub-categories specify where the module will appear in the preferences UI dialog. You should use one of the predefined categories for configuration. Score 0 is a special case.Ĭonfiguration categories and sub-categories Score should be an integer, and related to other scores in the same category. See the major types of capabilities of VLC. If VLC needs a type of module ("I need a decoder"), VLC will load all modules matching this capability in a decreasing score order until one modules's Open() function (see later) returns VLC_SUCCESS.If VLC needs to load a specific name, it will load it by its name and VLC directly opens this module.Now is the time to re-read how VLC loads modules. It could be an access, a demux, a decoder, an interface, etc. ![]() The capability determines the type of module we are dealing with. This defines a module of "interface" capability and a score of 0. Msg_Info(intf, "Good bye %s!", sys->who) Īdd_string("hello-who", "world", "Target", "Whom to say hello to.", false)Īnd now some explanations about the code.Ī VLC media player module must include a description of itself, and the parameters it accepts. Msg_Err(intf, "Nobody to say hello to!") Intf_thread_t *intf = (intf_thread_t *)obj Ĭhar *who = var_InheritString(intf, "hello-who") * Internal state for an instance of the module */ * Hello world interface VLC module example Let's start with a small example module in the C language: VLC supports many different combinations of operating systems and architectures. For instance, a Windows 32-bit module will only work with Windows 32-bit versions of VLC.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |