Track the playing item by id instead of a frozen index, deriving the index from the live queue so the N / M counter and prev/next neighbours stay correct when the playlist changes underneath (e.g. an item removed in another tab) without disrupting playback of the current video. Refetch the playlist list/detail on window focus so such changes flow in, updating the player's queue length in near-real-time. |
||
|---|---|---|
| .. | ||
| src | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.js | ||
| tsconfig.json | ||
| vite.config.ts | ||