Google Apps Script API
    Preparing search index...

    A layout item that displays a video. Items can be accessed or created from a Form.

    // Open a form by ID and add three new video items, using a long URL,
    // a short URL, and a video ID.
    var form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');
    form.addVideoItem()
        .setTitle('Video Title')
        .setHelpText('Video Caption')
        .setVideoUrl('www.youtube.com/watch?v=1234abcdxyz');
    
    form.addVideoItem()
        .setTitle('Video Title')
        .setHelpText('Video Caption')
        .setVideoUrl('youtu.be/1234abcdxyz');
    
    form.addVideoItem()
        .setTitle('Video Title')
        .setHelpText('Video Caption')
        .setVideoUrl('1234abcdxyz');
    
    interface VideoItem {
        duplicate(): VideoItem;
        getAlignment(): Alignment;
        getHelpText(): string;
        getId(): number;
        getIndex(): number;
        getTitle(): string;
        getType(): ItemType;
        getWidth(): number;
        setAlignment(alignment: Alignment): VideoItem;
        setHelpText(text: string): VideoItem;
        setTitle(title: string): VideoItem;
        setVideoUrl(youtubeUrl: string): VideoItem;
        setWidth(width: number): VideoItem;
    }
    Index

    Methods