Media source members¶
void AddSource(string preferredAlias, string source, bool local);¶
Description- Adds a media source to the plugin based on the given parameters.
'preferredAlias'- The desired alias for the media source. This may be renamed if there is a naming conflict.
'source'- An absolute path to the media file to create the media source with.
'local'- 'true' if the 'source' path is local to the server, 'false' if it remote.
Example lua usage
-- Add a local image file
mediascreenplugin:addsource('cool picture', 'C:\\Users\\John Citizen\\photo.jpg', true)
-- Add a remote web page
mediascreenplugin:addsource('cooler web page', 'www.coolest_page_ever.com', false)