YoutubeSetWatermarksCommand constructor

YoutubeSetWatermarksCommand()

Implementation

YoutubeSetWatermarksCommand() {
  argParser
    ..addOption('timing-type',
        valueHelp: 'string',
        allowed: ['offsetFromStart', 'offsetFromEnd'],
        defaultsTo: 'offsetFromStart',
        help:
            'The timing method that determines when the watermark image is displayed during the video playback. If the value is offsetFromStart, then the offsetMs field represents an offset from the start of the video. If the value is offsetFromEnd, then the offsetMs field represents an offset from the end of the video.')
    ..addOption('offsetMs',
        valueHelp: 'int',
        defaultsTo: '0',
        help:
            'The time offset, specified in milliseconds, that determines when the promoted item appears during video playbacks. The type property\'s value determines whether the offset is measured from the start or end of the video.')
    ..addOption('durationMs',
        valueHelp: 'int',
        defaultsTo: '0',
        help:
            'The length of time, in milliseconds, that the watermark image should display.')
    ..addOption('cornerPosition',
        valueHelp: 'string',
        allowed: ['topRight', 'topLeft', 'bottomRight', 'bottomLeft'],
        defaultsTo: 'topRight',
        help:
            'The corner of the player where the promoted item will appear. The item always appears in the upper right corner of the player.')
    ..addOption('channel-id',
        valueHelp: 'YouTube video id',
        mandatory: true,
        help:
            'The videoId parameter specifies a YouTube video ID for which the custom video thumbnail is being provided.')
    ..addOption('file',
        valueHelp: 'file name',
        mandatory: true,
        help:
            'The file name that contains the thumbnail image that you are uploading.');
}