Repository navigation
Add a shared CPU puppet broadcast pilot - #599
maithilijoshi20 wants to merge 4 commits into
Conversation
…ewers ## summary Keep the upstream connection and rundown in the broadcast process. Give each browser a short lived ticket and resume playback from the current chunk when it joins. Signed-off-by: maithilijoshi20 <97733343+maithilijoshi20@users.noreply.github.com>
david6666666
left a comment
There was a problem hiding this comment.
REQUEST CHANGES 27336b1 Refs #505
Dot,代表 @david6666666。
当前证据暂定 45/100(非批准分)。 范围 3/3,正确性 2/3,验证 2/3,主张证据 0/3,简洁性 0/3。
共享节目单和单上游连接符合试点范围。建议先补上观众半途开启声音的路径,具体问题留在代码里。作者报告 6 项协议测试和 Chromium 联调通过,也附了固定链接的录像,但我没独立确认录音与画面,当前证据项保守记零;新增解释性代码注释按量表也记零。同一提交的 Release checks 仍需维护者放行,我没重跑。
English summary: 45/100 provisional. Start audio at the live offset when enabled mid-segment; add browser coverage and finish current-tip Release checks.
## summary Retain the current PCM until the viewer enables sound and use the video clock to start the remaining audio. Exercise the final chunk in Chromium. Signed-off-by: maithilijoshi20 <97733343+maithilijoshi20@users.noreply.github.com>
david6666666
left a comment
There was a problem hiding this comment.
WITHHOLD f9d8e1f Refs #505
Dot,代表 @david6666666。
当前证据暂定 53/100(上轮 45/100,非批准分)。 范围 3/3,正确性 3/3,验证 2/3,主张证据 0/3,简洁性 0/3。
上轮「半途开启声音」的问题已修:现在从当前画面的时间点接上音频,不用等下一段。新回归只送一个最终音频块,旧版会超时,新版按作者的 Chromium 回执在该块内测到了非静音样本。这个用例覆盖了我之前担心的边界。
当前提交的 Release checks 仍需维护者操作,分支落后主线 1 个提交。新版已附录像,我还没有独立核验播放与声音,证据项暂不加分;原 PR 中的解释性代码注释仍在,简洁性按量表为零。我读了修订和回归,没有重跑 Chromium。
English summary: 53/100 provisional. Late audio enable is addressed with a final-chunk regression. Current-tip Release checks and independent media verification are outstanding.
Signed-off-by: maithilijoshi20 <97733343+maithilijoshi20@users.noreply.github.com>
Signed-off-by: maithilijoshi20 <97733343+maithilijoshi20@users.noreply.github.com>
david6666666
left a comment
There was a problem hiding this comment.
Dot,代表 @david6666666。
当前证据暂定 83/100(非批准)。 范围、正确性、验证、证据、简洁性依次为 3/3、3/3、2/3、2/3、3/3。
这版已经跟上主线,也移除了之前扣分的解释性注释。我解码了试播录像,画面能看到两名观众对齐到同一段、其中一人离开后另一人继续,音轨也有非静音信号。录像录在上一提交;当前提交的最后一段中途开声由作者的 Chromium 回归覆盖,我没有重跑。Release checks 仍需维护者操作,所以分数虽过 80,暂不批准。
English summary: 83/100. Decoded the prior-tip pilot recording and verified non-silent audio; exact-tip Chromium result is author-reported. Release checks still require maintainer action.
Summary
Add a local broadcast pilot under
tools/broadcast_pilot. One process owns the CPU puppet’s WebSocket connection and the show’s rundown. The producer can cue the next segment or end the show. Viewers join the segment already on air.The producer console and viewer page use the same origin. Each browser needs a short-lived, single-use ticket. Only the producer can change the rundown.
Linked issue
Refs #505. This covers the shared broadcast pilot in task 11 of vLLM-Omni RFC 11195.
Test plan
Tested
491fd01on WSL after syncing with upstreammain. All six protocol tests, both Chromium checks and the diff-scoped pre-commit checks passed. In the final-chunk regression, the viewer joined at 1 second and enabled sound during playback. Chromium measured non-silent audio starting at 2.35 seconds without receiving another chunk.Evidence that it works
A second viewer joined during the first reading. Both viewers saw the same segment. The producer refreshed, the first viewer left, and the second viewer kept playing until the producer ended the show. The puppet log recorded one upstream connection in the current-tip browser run. The recording was captured at
f9d8e1f. I checked the linked MP4 again: the frames show both viewers on the same segment, then viewer B still on air after viewer A leaves. Its 48 kHz audio track decodes with a nonzero signal. Watch the pilot recordingProvider verification
The run used the live-agent CPU puppet at
5da3472, with a scripted responder and offline synthetic audio. The rundown cues were “Open the book discussion”, “Introduce the first reading” and “Close the show”.Bilingual UI
The producer controls, viewer status and connection messages ship in English and Simplified Chinese. The browser check used both locales.