OnvifGetStreamUriMediaCommand constructor
OnvifGetStreamUriMediaCommand()
Implementation
OnvifGetStreamUriMediaCommand() {
argParser
..addOption('profile-token',
abbr: 't',
valueHelp: 'token',
mandatory: true,
help:
'The ProfileToken element indicates the media profile to use and will define the source and dimensions of the snapshot.')
..addOption('stream-type',
defaultsTo: 'RTP_unicast',
valueHelp: 'type',
allowed: ['RTP-Unicast', 'RTP-Multicast'],
help: 'Defines if a multicast or unicast stream is requested')
..addOption('transport-protocol',
defaultsTo: 'RTSP',
valueHelp: 'type',
allowed: ['UDP', 'TCP', 'RTSP', 'HTTP'],
help: 'Defines if a multicast or unicast stream is requested')
..addFlag('valid-until-connect',
defaultsTo: false,
help:
'Indicates if the Uri is only valid until the connection is established.')
..addFlag('valid-until-reboot',
defaultsTo: false,
help: 'Indicates if the Uri is invalid after a reboot of the device.')
..addOption('timeout',
defaultsTo: 'PT0S', help: 'Duration how long the Uri is valid.');
}