ObsTriggerMediaInputActionCommand constructor
ObsTriggerMediaInputActionCommand()
Implementation
ObsTriggerMediaInputActionCommand() {
argParser
..addOption(
'input-name',
valueHelp: 'string',
help: 'Name of the media input',
)
..addOption(
'input-uuid',
valueHelp: 'string',
help: 'UUID of the media input',
)
..addOption(
'media-action',
mandatory: true,
allowed: [
'none',
'play',
'pause',
'stop',
'restart',
'next',
'previous',
],
allowedHelp: {
'none': 'No action',
'play': 'Play the media input',
'pause': 'Pause the media input',
'stop': 'Stop the media input',
'restart': 'Restart the media input',
'next': 'Go to next item (if applicable)',
'previous': 'Go to previous item (if applicable)',
},
help: 'The action to trigger on the media input',
);
}