Optional
configOptional
descriptionA description that appears alongside name
in the list of plugins, and in the COGS plugins directory
Optional
eventsEvents that trigger COGS behaviors or can trigger actions in this plugin
Optional
fromOptional
toOptional
iconAn icon shown alongside name
, in the COGS navigation bar, and in the COGS plugins directory
The icon can be either:
./
Optional
indexThe HTML entrypoint for the plugin
Defaults to /
which includes /index.html
Optional
mediaThe types of COGS media actions supported
Optional
audio?: trueOptional
images?: trueOptional
video?: trueOptional
minThe minimum COGS version required
Follows semantic versioning with semver
e.g. `4.12.0
A short human-readable name
Optional
stateState that can be set by COGS behaviors
Optional
storeCOGS-managed key/value data store settings
Allows certain key/value pairs to be saved to disk in the project folder alongside the plugin. Any key that is not listed here can still be used.
Optional
items?: { Optional
persistWhen true
saves this key/value pair to the project folder when the value changes
and restores the value when the project is next loaded.
This option is only available for COGS plugins, not for custom Media Master content.
e.g. 1.0.0
Optional
windowIf set, shows a popup window to the user where you can show the HTML content of your plugin
By default a window is not shown to the user The window can later be opened/closed from the Javascript running in the plugin Only valid for plugins, not for Media Master custom content
Optional
visible?: booleanWhether the window is initially visible
Generated using TypeDoc
cogs-plugin-manifest.json
is a JSON manifest file describing the content of a COGS plugin or COGS Media Master custom content.It should be saved in the root of a folder in the
plugins
orclient_content
folder in your COGS projectThe COGS plugins directory contains a number of plugins you can use out of the box