MCPcopy Index your code
hub / github.com/vidstack/player / _enqueue

Method _enqueue

packages/vidstack/src/foundation/queue/queue.ts:8–11  ·  view source on GitHub ↗

* Queue the given `item` under the given `key` to be processed at a later time by calling * `serve(key)`.

(key: T, item: QueueRecord[T])

Source from the content-addressed store, hash-verified

6 * `serve(key)`.
7 */
8 _enqueue<T extends keyof QueueRecord>(key: T, item: QueueRecord[T]) {
9 if (!this._queue.has(key)) this._queue.set(key, new Set());
10 this._queue.get(key)!.add(item);
11 }
12
13 /**
14 * Process all items in queue for the given `key`.

Callers 15

pausedMethod · 0.45
mutedMethod · 0.45
currentTimeMethod · 0.45
volumeMethod · 0.45
playsinlineMethod · 0.45
playbackRateMethod · 0.45

Calls 2

addMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected