OnvifGetStreamUri1MediaCommand constructor

OnvifGetStreamUri1MediaCommand()

Implementation

OnvifGetStreamUri1MediaCommand() {
  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-setup-stream',
        defaultsTo: 'RTP-Unicast',
        valueHelp: 'stream type',
        allowed: [
          'RTP-Unicast',
          'RTP-Multicast'
        ], // ['UDP', 'TCP', 'RTSP', 'HTTP'],
        help: 'Defines if a multicast or unicast stream is requested')
    ..addOption('stream-setup-transport-protocol',
        defaultsTo: 'RTSP',
        valueHelp: 'transport protocol',
        allowed: ['UDP', 'TCP', 'RTSP', 'HTTP'],
        help:
            'Defines the network protocol for streaming, either UDP=RTP/UDP, RTSP=RTP/RTSP/TCP or HTTP=RTP/RTSP/HTTP/TCP');
}