OnvifGetStreamUri2MediaCommand constructor

OnvifGetStreamUri2MediaCommand()

Implementation

OnvifGetStreamUri2MediaCommand() {
  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-type',
        defaultsTo: 'RTP-Multicast',
        valueHelp: 'stream type',
        allowed: ['RTP-Unicast', 'RTP-Multicast'],
        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');
}