gradio
Add `gr.WebRTC`, with each stream waiting its turn in the queue
#13965
Open

Add `gr.WebRTC`, with each stream waiting its turn in the queue #13965

hysts wants to merge 69 commits into 7.0-dev from webrtc-component
hysts
hysts Add gr.WebRTC component ported from FastRTC
eb758c92
hysts Run sync video handlers off the event loop
66fc380e
hysts Skip stale video frames by default
c04abbf7
hysts Release the microphone when a stream stops
8c766d84
hysts Take gr.MicrophoneOptions and merge media constraints
20d592ef
hysts Free the worker slot of a stream between chunks
2efb0586
hysts Make each WebRTC stream one queue event
9e60f86c
hysts Estimate the wait for a stream from its time limit
ca9ea425
hysts End a stream event resumed after a page reload
2af60759
hysts Fix admission, inputs and outputs of WebRTC streams
09c61848
hysts Fix races of the WebRTC queue turn in the frontend
2163c1ed
hysts Close only stream events in close_stream
418c0f05
hysts Stop WebRTC media at once when a stream ends
fbfd9116
hysts Guard the webcam stream start against a stop
5639d670
hysts Fix stream events dropped, chunked or left in line
4757d9a2
hysts Close a component's stream only from stream events
8e0ac127
hysts Harden WebRTC stream ends, ids and candidates
c84aacc8
hysts Stop a receive player from connecting after unmount
309b7131
hysts Share the stream attempt logic of the WebRTC UIs
13f0bccf
hysts End WebRTC streams despite shutdown or send mode
7ba0710b
hysts Do not run a stream dropped while it waits
825fb7f8
hysts Follow a resumed stream's outcome after a reload
2de0605c
hysts Keep a session while its message stream is open
fa8654b4
hysts Show the queue place of a waiting WebRTC stream
8159ee54
hysts Pass the visitor's request to rtc_configuration
945193db
hysts Document TURN setups for gr.WebRTC on Spaces
e58952ef
hysts Stop waiting for events once they are acknowledged
226b7da4
hysts Keep the chosen camera for audio-video streams
0fe03ab6
hysts Mirror the frames handlers get, like gr.Image
f5101206
hysts Add video_bitrate to set the bitrate range of video
31170ee6
hysts Send ZeroGPU headers with server function calls
0b81c4c4
hysts End streams on pagehide and let the webcam be turned off
dc9a0619
hysts Show handler errors and gr.Warning/gr.Info like events
938c76c9
hysts Let stream handlers take gr.Request and OAuth params
563ad82c
hysts Pass and take video frames as RGB, like gr.Image
10482569
hysts Use gr.Audio's numpy layout for stream audio
d85dea98
hysts Group the stream control options in gr.StreamOptions
47eade9f
hysts Show a toast for events without data again
70a91a1a
hysts Fix messages and chunks of audio stream handlers
9f4d50a2
hysts Give server functions the visitor's gr.Request
2706c64c
hysts Send stream_options updates in the config's form
e00ec4f0
hysts End the stream on a page back from the bfcache
aef9e8ca
hysts Share ZeroGPU header requests and bound the wait
040c91d7
hysts Test errors raised in audio handler threads
1b105a8b
hysts Scale integer stream audio like gr.Audio
b492727e
hysts Keep show_error for errors in sync audio handlers
58f55cc6
hysts Share ZeroGPU headers only among server calls
e97d83d2
hysts hysts assigned hysts hysts 2 days ago
hysts hysts requested a review from copilot-pull-request-reviewer copilot-pull-request-reviewer 2 days ago
copilot-pull-request-reviewer
copilot-pull-request-reviewer commented on 2026-10-13
gradio-pr-bot
gradio-pr-bot add changeset
53db1780
gradio-pr-bot
hysts Fix ty errors in the WebRTC component and tests
d00c1277
hysts Leave StreamOptions out of the docs event table
bd5d3b86
hysts Declare wavesurfer.js for the MultimodalTextbox tests
1f5710e3
gradio-pr-bot add changeset
44e51815
hysts DEBUG: show the output of the vitest prewarm step
ab22a652
hysts Pre-bundle test deps through their packages
75b8491e
gradio-pr-bot add changeset
5370012f
hysts Revert "DEBUG: show the output of the vitest prewarm step"
4c513fcd
hysts Keep only a stream's latest output for resuming
b76ab807
hysts Free the worker slot a job started with
36611c3e
hysts Drop late messages of acknowledged events
ae447343
hysts Ask for ZeroGPU headers only where a function opts in
b89cf357
hysts Fix stream clean-up and ownership in gr.WebRTC
3cf4a443
hysts Survive brief disconnects in the gr.WebRTC players
3eed2eb7
hysts Move the line up when someone leaves it
b9594477
hysts Count down the wait and show Cancel while in line
d38a36db
hysts Ignore a start click right after stopping a stream
c91051c4
hysts Let a stopped track end without a handler error
fccfd8ea
hysts Add a handler class for video-only streams
6d5a6332
hysts Hold the microphone only while streaming
057c8c52
hysts Note that frames can arrive during start_up()
61cf48c1

Login to write a write a comment.

Login via GitHub

Assignees
Labels
Milestone