iPhone: stop rate-slewing the video for sync; add playback telemetry beacon

This commit is contained in:
Jonathan Sykes
2026-10-14 08:31:38 +08:00
parent 4fa33e9810
commit c242641b2d
3 changed files with 45 additions and 1 deletions

View File

@@ -1599,6 +1599,10 @@ app.post('/api/media/:id/redownload', async (c) => {
// Saves fetch the copy in byte ranges (docs/resumable-downloads-plan.md):
// the ETag pins the generation, so a resumed save never mixes two copies.
const prepareSkips = new Map(); // videoId → { reason, at } for /prepare
app.post('/api/diag', async (c) => {
try { const t = (await c.req.text()).slice(0, 20000); console.log('[diag]', t); } catch {}
return c.body(null, 204);
});
registerDownloadRetryRoute(app, {
media, priority: HIGH, clearHints: id => { prepareSkips.delete(id); streamCache.delete(id); },
});