foo-webview-sdk
    Preparing search index...

    Interface QueueInsertNextParams

    Parameters for queue.insertNext. Insert tracks so they play next, ahead of everything already queued. A track that is already queued is moved instead of queued twice. items land before paths; each block keeps its own order. A call with neither paths nor items fails with INVALID_PARAMS. Every entry of items is checked before any path is resolved, and one bad entry fails the whole call with nothing written: an entry naming its playlist by neither or both of playlist and playlistGuid, or by a malformed GUID, fails with INVALID_PARAMS, a GUID no playlist has with NOT_FOUND, a playlist index or row out of range with INVALID_INDEX. A path the media-root check refuses fails the whole call with PERMISSION_DENIED; a path that resolves to nothing is dropped and counted in invalidCount, and when nothing at all is left to insert the call fails with NOT_FOUND. A playlist row that changed while the paths were resolved fails the call with OPERATION_FAILED, and so does a queue that cannot be rebuilt. expectedVersion is compared when the queue is written, after the paths are resolved.

    interface QueueInsertNextParams {
        expectedVersion?: string;
        items?: QueueListRef[];
        paths?: string[];
        position?: number;
    }
    Index
    expectedVersion?: string

    Expected content version for optimistic concurrency control. When mismatched, mutations are aborted with STALE_TARGET (details.current carries current version). Omitted, no check is made.

    items?: QueueListRef[]

    Playlist rows; the entries they produce carry that position, so the playback cursor follows them. At most max(256, current queue length) entries; more fail with INVALID_PARAMS.

    paths?: string[]

    File paths or URLs, each optionally with a |subsong:N suffix. The entries they produce carry no playlist position.

    position?: number

    Where to insert, counted after any moved entries are taken out; 0 is the front.

    0