Add WebRTC ClientWindow to t2v app - #498
Conversation
Greptile SummaryThe PR adds persistent, prompt-driven WebRTC sessions to the v2 text-to-video runtime while keeping application state loaded between rollouts.
Confidence Score: 4/5The stale-peer callback must be fixed before merging because it can terminate a newly reconnected browser session. Reconnection permits a replacement peer while callbacks from the prior peer may still run, and those callbacks mutate shared connection state and enqueue a close event before checking peer identity. Files Needing Attention: flashdreams/flashdreams/runtime_v2/serving/webrtc_server.py Important Files Changed
Sequence DiagramsequenceDiagram
participant Browser
participant Server as WebRTCServer
participant Runner as ApplicationRunner
participant Session
Browser->>Server: Connect and open controls channel
Browser->>Server: new_session(prompt)
Server->>Runner: Buffered NewSession event
Runner->>Session: create/init/run
Session-->>Server: Video frames
Server-->>Browser: WebRTC video
Browser--xServer: Disconnect
Runner->>Session: close
Browser->>Server: Reconnect and request next session
|
Signed-off-by: Gangzheng Tong <gtong@nvidia.com>
No description provided.