outputmanaged Lua Interface¶
get¶
Get a pointer to the OutputManaged object
- Arguments:
- any ptr Pointer to Module object
- Returns:
- outputmanaged ptr Pointer to casted OutputManaged object
Example
ptr = outputmanaged:.get(ptr)
getConfig¶
Get the configuration object for the plugin
- Arguments:
- any ptr Pointer to OutputManaged object
- Returns:
- table obj Map with configurations
Example
obj = outputmanaged:.getConfig(ptr)
saveConfig¶
Save the configuration object for the plugin
- Arguments:
- any ptr Pointer to OutputManaged object
- table new_config Map with configurations
Example
outputmanaged:.saveConfig(ptr,new_config)
getName¶
Get the plugin name
- Arguments:
- any ptr Pointer to OutputManaged object
- Returns:
- string name Plugin Name
Example
name = outputmanaged:.getName(ptr)
loadHandlersFromConfig¶
Load the default handler from the instance config
Arguments:
Example
outputmanaged:.loadHandlersFromConfig()
addHandler¶
Adds output source handler
- Arguments:
- outputmanaged ptr Pointer to OutputManaged object
- string name Unique name of the output handler
- string source Source URI (or string array lo load playlist, only video files and not directories)
- string sink Name of the sink to get (default is output)
- table config Configuration of the outputHandler
- Returns:
- OutputHandler ptr **
Example
ptr = outputmanaged:.addHandler(ptr,name,source,sink,config)
removeHandler¶
Manually removes output handler from the registered handlers
- Arguments:
- string name Unique name of the output handler
Example
outputmanaged:.removeHandler(name)