Registration members¶
- Registration members
- void RegisterFileExtension(string extention, IMediaAdapter adapter);
- List<string> SupportedFileExtensions();
- Comments
void RegisterFileExtension(string extention, IMediaAdapter adapter);¶
Description- Registers a given file 'extension' with the given 'adapter'. Whenever files with the given 'extension' are encountered by the plugin, it will passed to the given adapter for handling,
'extension' - the file extension to register, in the form ".extension_name"
Example lua usage
-- get an adapter, in this case the default adapter adapter = mediascreenplugin.defaultadapter -- register the first supported file extension with the adapter mediascreenplugin:registerfileextension(adapter.supportedfileextensions[0], adapter)
List<string> SupportedFileExtensions();¶
Returns- a list of file extensions that have been registered with the plugin.