MCPcopy Create free account
hub / github.com/nukeop/nuclear / updateItemCandidates

Function updateItemCandidates

packages/player/src/hooks/useStreamResolution.ts:80–87  ·  view source on GitHub ↗
(
  item: QueueItem,
  candidates: StreamCandidate[],
)

Source from the content-addressed store, hash-verified

78};
79
80const updateItemCandidates = (
81 item: QueueItem,
82 candidates: StreamCandidate[],
83): void => {
84 useQueueStore.getState().updateItemState(item.id, {
85 track: { ...item.track, streamCandidates: candidates },
86 });
87};
88
89const haveCandidatesGoneStale = (candidates: StreamCandidate[]): boolean => {
90 const expiryMs = useSettingsStore

Callers 2

tryNextFunction · 0.85
resolveStreamFunction · 0.85

Calls 2

updateItemStateMethod · 0.80
getStateMethod · 0.80

Tested by

no test coverage detected