foo-webview-sdk
    Preparing search index...

    Interface PlaylistReplaceAllAndPlayParams

    Parameters for playlist.replaceAllAndPlay. Replace the whole content of a playlist and play it: stop playback, clear the playlist (saving an undo point), add the paths in the given order as playlist.addPathsSequential does, make the playlist active and play or focus playIndex. Unlike playlist.addPaths, duplicates are kept and the user's incoming-item order is not applied. Entries longer than 2048 characters, and entries that resolve to nothing, are skipped. When nothing could be added the call fails with NOT_FOUND, and the playlist stays empty. A locked playlist fails with LOCKED before anything changes. The paths are resolved after the clear, as in playlist.addPaths: a playlist moved meanwhile is still the one filled and played; one removed meanwhile fails with OPERATION_FAILED, and one locked meanwhile fails with LOCKED and stays empty.

    interface PlaylistReplaceAllAndPlayParams {
        autoPlay?: boolean;
        paths: string[];
        playIndex?: number;
        playlist?: number;
        playlistGuid?: string;
        stopFirst?: boolean;
    }
    Index
    autoPlay?: boolean

    Play playIndex; false only focuses it.

    true
    
    paths: string[]

    The new content: files, folders or URLs.

    playIndex?: number

    Row to play, or to focus with autoPlay false; past the last row, the first one. The rows follow the order of paths: when every path is one track, this is the index of the path to play. A path that expands to several tracks (a folder, a cue sheet) takes that many rows, and a skipped path takes none.

    0
    
    playlist?: number

    Index of the playlist; omitted, the active playlist. An index past the last playlist fails with INVALID_INDEX; with this omitted and no active playlist the call fails with NO_ACTIVE_ITEM.

    playlistGuid?: string

    Persistent unique identifier of a playlist (bracketed GUID, case-insensitive), used in place of a mutable index. Mutually exclusive with playlist; passing both or an invalid format fails with INVALID_PARAMS. Fails with NOT_FOUND if the playlist does not exist, never falling back. Invalid-format and not-found failures return the given GUID in details.playlistGuid.

    stopFirst?: boolean

    Stop playback first, when something is playing.

    true