YoutubeTransitionBroadcastCommand constructor

YoutubeTransitionBroadcastCommand()

Implementation

YoutubeTransitionBroadcastCommand() {
  argParser
    ..addOption('broadcast-status',
        allowed: ['complete', 'live', 'testing'],
        valueHelp: 'status',
        mandatory: true,
        allowedHelp: {
          'complete':
              'The broadcast is over. YouTube stops transmitting video.',
          'live':
              'The broadcast is visible to its audience. YouTube transmits video to the broadcast\'s monitor stream and its broadcast stream.',
          'testing':
              'Start testing the broadcast. YouTube transmits video to the broadcast\'s monitor stream. Note that you can only transition a broadcast to the testing state if its contentDetails.monitorStream.enableMonitorStream property is set to true.'
        },
        help:
            'The broadcastStatus parameter identifies the state to which the broadcast is changing. Note that to transition a broadcast to either the testing or live state, the status.streamStatus must be active for the stream that the broadcast is bound to.')
    ..addOption('part',
        defaultsTo: 'id,snippet,contentDetails,status',
        help:
            'The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.')
    ..addOption('id',
        mandatory: true,
        valueHelp: 'id',
        help:
            'The id parameter specifies the unique ID of the broadcast that is transitioning to another status.');
}