feat(stream): report multi-network URLs for smart resolution

This commit is contained in:
Deivid Soto 2026-04-07 17:05:52 +02:00
parent dc1a21d8f0
commit eb8f5e8b1a
2 changed files with 54 additions and 25 deletions

View file

@ -166,9 +166,9 @@ func handleStreamTask(parentCtx context.Context, at agent.Task, reporter *engine
streamRegistry.mu.Unlock()
}()
// 5. Report stream URL — the reporter will send this to the web
task.StreamURL = streamURL
log.Printf("[%s] stream ready: %s", at.ID[:8], streamURL)
// 5. Report stream URLs — JSON with all network options for smart resolution
task.StreamURL = srv.URLsJSON()
log.Printf("[%s] stream ready: %s (primary: %s)", at.ID[:8], task.StreamURL, streamURL)
// 5b. Start watch progress reporter (tracks Range requests for playback position)
if agentClient != nil {