gradio
Stream audio and video over WebRTC with `transport=`, each stream waiting its turn in the queue
#13965
Merged

Stream audio and video over WebRTC with `transport=`, each stream waiting its turn in the queue #13965

hysts merged 415 commits into 7.0-dev from webrtc-component
hysts
hysts hysts assigned hysts hysts 49 days ago
hysts hysts requested a review from copilot-pull-request-reviewer copilot-pull-request-reviewer 49 days ago
copilot-pull-request-reviewer
copilot-pull-request-reviewer commented on 2026-10-13
gradio-pr-bot
gradio-pr-bot
freddyaboulton
hysts hysts marked this pull request as ready for review 40 days ago
hysts hysts requested a review from abidlabs abidlabs 40 days ago
hysts hysts requested a review from dawoodkhan82 dawoodkhan82 40 days ago
abidlabs
hysts
MarshalX
hysts
abidlabs
hysts hysts changed the title Add `gr.WebRTC`, with each stream waiting its turn in the queue Add `gr.WebRTC` and WebRTC streams for `gr.Server`, each waiting its turn in the queue 29 days ago
hysts hysts marked this pull request as draft 29 days ago
gradio-pr-bot add changeset
c4693a77
hysts Merge remote-tracking branch 'origin/7.0-dev' into webrtc-component
b9276317
hysts Replay a cached stream function's whole run
55291474
hysts End a cancelled stream at once
1ea0b05c
hysts Close a re-rendered stream in its process
d63ed4b5
hysts Keep a stream's logs for a page that reconnects
dff91c19
hysts Send a stream chunk's progress before its wait
ff6fb1d7
hysts Type the stream runs as async generators
18a16b7f
hysts Check a warned stream while its page still reads
0127885e
hysts Move a stream's waiting logs with its event
32c470b9
hysts Check a cached stream replay with both executors
4ef416e7
hysts Revert "Close a re-rendered stream in its process"
ac4df99e
hysts Refuse WebRTC.stream() inside @gr.render
59a1978c
hysts Show a hidden stream error like any event's
ac46ff24
hysts Make no frame of a send-mode handler's return
d8a07a71
hysts Read and drop the tracks a stream does not use
eb9e9b35
hysts Admit a WebRTC stream without a worker thread
6b5f68f4
hysts Count a process's streams when placing sessions
ef030751
hysts Keep two WebRTC tests to their own connections
110285e2
hysts End a stream stopped while it connects as stopped
8666dd1d
hysts Refuse chunks for a WebRTC stream event
b2f7cbca
hysts Give a test's stand-in stream function a lease flag
a0c7aed6
hysts Merge remote-tracking branch 'origin/7.0-dev' into webrtc-component
4baf013e
hysts Give a time limit test room to connect on CI
23f2b17a
hysts Find an app's streams in the events it serves
11c31613
hysts Say nothing when a stream stopped during setup is declined
2068a7da
hysts Keep a handler's error when it breaks the stream's setup
d6a5807f
hysts Keep the duration of a stream handler's gr.Error
b35f4268
hysts Treat a second track of a kind as an extra track
59b8cca6
hysts Count streams when a new session's first event picks a process
8baf9f7a
hysts Acknowledge a client.webrtc() stream once it is over
14534666
hysts Let a backgrounded page start a stream again
c3b2a047
hysts Trim comments and docstrings
6533989b
hysts Trim overlapping tests
03c1710f
hysts Restore tests and comments the trims took too far
5cb810d3
hysts Keep a stream running when its page's heartbeat drops
a2df1955
hysts hysts marked this pull request as ready for review 20 days ago
hysts
dawoodkhan82
dawoodkhan82 commented on 2026-11-11
abidlabs
abidlabs
hysts hysts marked this pull request as draft 19 days ago
hysts
abidlabs
hysts Merge remote-tracking branch 'origin/7.0-dev' into webrtc-component
545bde9e
hysts Rework WebRTC as a transport of Gradio streaming
2474138a
hysts hysts changed the title Add `gr.WebRTC` and WebRTC streams for `gr.Server`, each waiting its turn in the queue Stream audio and video over WebRTC with `transport=`, each stream waiting its turn in the queue 15 days ago
gradio-pr-bot add changeset
04e391b2
hysts Fix type errors, skill file and docs left from the rework
bf4f7448
hysts
hysts Refuse transport streams that could not work
59db2149
hysts Fail a stream whose other inputs cannot be preprocessed
c1371d46
hysts Send component updates and type changes of stream outputs
e7adee42
hysts Repeat the last frame for a skipped video output
41fbe075
hysts Word the receive-stream generator error without mode=
152306b3
hysts End a transport stream when its component unmounts
1c707889
hysts Keep a newer stream's live media and send the newest inputs
9cf8c431
hysts Take named values in send_chunk() of a WebRTC stream
d0d7f0d9
hysts Format the new tests and fix their type errors
7d590d09
hysts Stream audio and video together from gr.Server
29cd6afa
abidlabs
hysts Document stream_every for streams with transport=
093b89af
hysts Close the camera or mic when a WebRTC stream fails
c79b26e9
hysts Keep gr.State inputs of a WebRTC stream in step
159720c6
hysts Allow for a lost last result in the State stream test
c8a00657
hysts Put the component of a WebRTC stream in streaming mode
271a38b4
hysts Do not round stream_every to whole frames a second
211d753a
hysts Check that media_output can show the stream's media
3c52c053
hysts Accept Optional media hints on gr.Server WebRTC endpoints
8acebe94
hysts Move the handler classes to gradio.streaming
413fd4be
hysts Refuse handler classes without transport=
045c776b
hysts Import gradio.streaming with gradio
f87ae436
hysts Add ReplyOnPause for voice agents
62c13b93
hysts Type fn as accepting stream handler instances
f8ab6fb6
hysts Keep the subclass when ReplyOnPause is copied
bb969cfa
hysts Merge remote-tracking branch 'origin/7.0-dev' into webrtc-component
7b50aefe
hysts Merge remote-tracking branch 'origin/7.0-dev' into webrtc-component
4c749fbb
hysts Skip the WebRTC tests without aiortc
173c9ba8
hysts Fix stale RemoteEventHandle docstring
93a3f0e6
hysts Refuse transport= on chained listeners
a065b4f3
hysts Detect OAuth hints of a ReplyOnPause function
2be269ce
hysts Keep show_progress_on, scroll_to_output and key
76913952
hysts Look up kept history messages by id
d41c2f40
hysts Tidy up the stream's input counter and skip check
5b1dec81
hysts Say what output_every compares a value with
7be3bb27
hysts
hysts Refuse transport= streams inside @gr.render
fd3e1150
hysts Keep gr.Video an ordinary output after a WebRTC stream
70a66e95
hysts Point at the return hint when an endpoint has no outputs
e73dc891
hysts Resume a WebRTC stream's event instead of starting one
c849a431
hysts Send no local media in a stream that only receives
101f497c
hysts Drop stream code that nothing uses any more
3ea4e6f6
hysts Check for the webrtc extra in one place
440fccc8
hysts Narrow the stream function in the return hint test
7da96a2c
hysts Refuse a non-numpy type= on a WebRTC stream's input
3900343b
cbensimon
hysts Merge remote-tracking branch 'origin/7.0-dev' into webrtc-component
061ac86c
hysts Merge remote-tracking branch 'origin/7.0-dev' into webrtc-component
e29d3f62
hysts
cbensimon
abidlabs
hysts Merge remote-tracking branch 'origin/7.0-dev' into webrtc-component
030c5dbe
hysts Keep core Gradio free of numpy with streams
dc09be6f
gradio-pr-bot add changeset
954350cd
hysts Fix the numpy check under a blocking import hook
975aec11
hysts
hysts Add a driver for .stream() generators
1eead0ab
hysts Send WebRTC stream frames to a generator
f34444ff
hysts Send HTTP stream chunks to a generator
1895f47f
hysts Type gr.Server generator streams by what they are sent
92704175
hysts Document generator functions for .stream()
2568b967
hysts Stop recording when a stream's generator returns
1fba88dc
hysts Refuse queue=False for .stream() generators
f0ff9ed2
gradio-pr-bot add changeset
156c546e
hysts Name gr.Server generator inputs with a NamedTuple
4f221cba
hysts Stop recording when a stream's generator fails
21a0c419
hysts Start a stream's time limit at its first step
7900f56e
hysts Add on_time_limit="stop" to end a stream at its limit
d7e8dffb
hysts Let a stream go on past time_limit while nobody waits
957c752e
hysts Let a WebRTC stream go on past time_limit too
30dd9201
hysts Rejoin the queue when a WebRTC stream hands over
1d87fecc
hysts Test time limit periods of receive-only WebRTC streams
282fc174
hysts Tell ZeroGPU visitors once that a stream goes on
3e609c8a
cbensimon
hysts Document on_time_limit in the streaming guides
91d63392
hysts Mark a rejoin explicitly instead of any pending
176314b1
hysts Format the WebRTC tests
53dcd082
hysts Merge 7.0-dev into webrtc-component
52884fc6
hysts
hysts Take named arguments for undocumented endpoints
93cc1f7c
hysts Leave gr.Server WebRTC endpoints out of the API docs
b9268d87
hysts Refuse API settings on a stream with transport=
23d300b6
abidlabs
abidlabs
hysts Revert the undocumented stream endpoints
05bdf8ea
hysts Let clients call a WebRTC stream once with a file
e5be6ed6
hysts Run a stream called once as an ordinary event
fa173f21
hysts Say which file a stream called once takes
983a0438
hysts Run a chunk once when it waited for a worker
0f7ede70
hysts Refuse stream generators with defaulted inputs
78138054
hysts Refuse a stream time_limit that is not above 0
51aa55a6
hysts Keep .change for a streaming gr.Video in Interface
20d25b6b
hysts Hand over at time_limit when streams hold workers
ed6a756b
hysts Fail a generator stream whose process exited
45f81179
hysts Pad odd-sized video frames to even sizes
50ce4a8d
hysts Play mono stream audio at its level
614c99db
hysts Compare stream outputs when they go out
0b72c983
hysts Say which arrays a stream frame can be
17940c6c
hysts Pace output checks that find nothing changed
a5d2e169
hysts Check room without reserving it when handing over
09a973f7
hysts Test the lease hand-over and steady the chunk test
d74b5d9e
hysts Keep a WebRTC stream's state on other events' status
51d2f844
hysts Stop the previous camera when switching cameras
29c55e62
hysts Read the Interface test's config with get_config_file
c1026597
hysts Keep the Interface test's Video for its id
ca5bfdaf
hysts Revert "Pace output checks that find nothing changed"
3c2a275a
hysts Revert "Compare stream outputs when they go out"
6aec439d
hysts Ask the process pool before handing a stream over
e089c1a4
hysts Trim the round 51 tests
48468347
hysts Say when a stream hands over at its time limit
ba4fc63f
hysts
hysts Fail a stream that never connects
4b4549de
hysts Hand over only a stream that closed
246a7c86
hysts Treat a stream called once as an ordinary event
07ecc102
hysts Prepare stream inputs in the launched app
3ea9a0de
hysts Say gradio.streaming needs numpy
59cd3626
hysts Write the numpy bound in full
42c38730
hysts Format the round 52 changes
26bb9539
hysts Give a test's prepare_inputs the new signature
6a3658ea
hysts Give the numpy check's noqa a reason
0cdea67d
abidlabs
abidlabs
abidlabs approved these changes on 2026-11-24
hysts Merge 7.0-dev into webrtc-component
999fcfbd
hysts Refuse eta= on a stream with transport=
5e387d5f
hysts Read only uploaded files when a stream is called
ed7dca92
hysts Carry gr.State into generator streams over WebRTC
9076a3ec
hysts End a camera or mic stream whose browser went away
4131f0b1
hysts
hysts Port the immersive demo guide off FastRTC
cf822d8c
hysts Document a transport stream as the app's function
d30bbae7
hysts Close a WebRTC stream at once when the page goes
ee001b68
hysts Acknowledge the event a WebRTC stream handed over
cbafbbaf
hysts Read a WebRTC stream's statuses whatever events it yields
0a4a6ab7
hysts Estimate the wait behind a stream to its period's end
4e978508
hysts Record an event taken out of the line as cancelled
11c20b6e
hysts Show a received stream in an interactive output
f072a95a
hysts Start a WebRTC stream on a Record click right after one
f0b416ec
hysts Ignore a connect failure of a stream that rejoined
9406cf08
hysts Report a WebRTC stream that cannot join the queue again
08767cd2
hysts Pass the caller's headers to a WebRTC stream's join
1bb5c179
hysts Answer overlapping next() calls of a WebRTC stream
a06f6d2c
hysts Fail a WebRTC stream whose media has no usable track
3535cd60
hysts Hand a stream over to whom its process keeps waiting
462d7517
hysts Upload files among a WebRTC stream's other inputs
001d870b
hysts Keep a stream going after a slow first call
9faab0ea
hysts Give an audio-video handler its loop with video only
0ec4bec6
hysts Explain a video function that takes frames via *args
b6e9482f
hysts Clear a handler's audio on the event loop
2f5c8da1
hysts Run a stream's shutdown in its handler's context
7589113c
hysts Give a generator stream a gr.Progress of its own
3ace9b1a
hysts Send the listener's component only from .stream()
85c185a7
hysts Check time_limit only on stream events
2398aa0d
hysts Tell a stream id apart as the stream's function does
08097096
hysts Refuse ReplyOnPause(pause_seconds=0)
ab31f8a8
hysts Refuse js= with transport= on a js-only event too
214c4ee6
hysts Close a generator whose call was cancelled late
d669d5e9
hysts Count a generator stream as work in its process
2c25f3fc
hysts Correct WebRTC stream docs and messages
72120af0
hysts Declare submit()'s headers parameter on Client
f503e7e0
hysts Wait for a stream's running calls before the next one
bbcc5de6
hysts Call click() with time_limit through Any in a test
b2b927f1
hysts Keep stream_transport on a camera that starts its stream
9ffc02da
hysts Test that the next stream waits for a running call
2c5e6342
hysts Document @spaces.GPU generator streams on ZeroGPU
fe8dd6dd
hysts Merge remote-tracking branch 'origin/7.0-dev' into webrtc-component
c47ff8fb
hysts Stub play() in the camera switch test
62008908
hysts Count a stream's time limit only while it runs
55ecf3dc
hysts Say that start_up should return once ready
298c258f
hysts Check files in a gr.Server stream's inputs
dc22cdbd
hysts Keep outputs when an HTTP stream generator ends
95af02e4
hysts End a WebRTC generator stream without a warning
c41e5c8d
hysts Point the TURN error at WebRTCOptions
4c4460e3
hysts Install the components extra in WebRTC guides
8f8c9ba2
hysts Read a stream's return value as an event's
286d6017
hysts Show the camera preview while a stream rejoins
89bcdb30
hysts Do not fail a stream for errors after its end
bfd6a255
hysts End a WebRTC stream stopped while it starts
696096cb
hysts Start one stream for Record, Stop, Record
555ca9b5
hysts Hand a stream over on a process being retired
584b2d68
hysts Install Pillow with the webrtc extra
84176f9e
hysts Refuse skip_frames=False together with stream_every
d8aa50fe
hysts Refuse a sendonly offer for a send-receive stream
f7701d98
hysts Keep a webcam recording when another stream ends
271a26d3
hysts Say that a cancelled WebRTC stream ended
39ae05da
hysts Close a WebRTC stream's queue event once
315b4ae4
hysts Refuse a stream generator that takes *args
244792f5
hysts Send a chunk that came in line to a stream once
931156d3
hysts Keep the stream's camera when a switch lands late
6919e832
hysts Word the ZeroGPU notice for streams without GPU
8ca1013e
hysts Add transport= to gr.on
7159cc7e
hysts Fix stream docs and messages the code contradicts
21779058
hysts End an HTTP stream generator with its last outputs
456b8e2e
hysts Refuse sendonly only for a stream's own track
14b41cfc
hysts Test a close just after a stream left the line
b8b6b13d
hysts Keep (frame, CloseStream) in VideoEmitType
7aab0f20
hysts Say that late inputs, not the network, ended it
7dbf5d9e
hysts Refuse an audio-video offer missing a track
dfa91ca8
hysts Do not hold a skip_frames=False stream to fps
ba4d3778
hysts End a stream called once at its CloseStream
ccb2e3cf
hysts Ignore a value returned by a stream without outputs
684efa93
hysts Mention the 30 fps cap in gr.on's stream_every
992df034
hysts Add reference pages for gradio.streaming
72a8f9d9
hysts Trim the webcam guide back to its tutorial
10c23ade
hysts Say that gr.Video streams with transport="webrtc"
54bfe664
hysts
hysts hysts marked this pull request as ready for review 4 days ago
hysts Report a 429 instead of freezing the stream
50760086
hysts Keep an output image's load when the next arrives
31f77177
hysts Send a camera's frames one at a time
42be57b5
hysts
abidlabs
abidlabs
abidlabs
abidlabs approved these changes on 2026-11-30
hysts Give up on a camera frame whose upload hangs
055f51d0
hysts Keep the defaults of gr.Server stream parameters
d35b00f1
hysts Continue a capped utterance instead of cutting it
a9d5dfbf
hysts End a stream whose camera or microphone stops
01f28fda
hysts Send a plain audio function's output at 48 kHz
2e42d0da
hysts Complete an ended stream after its shutdown
bcb97eab
hysts Add the WebRTC webcam guide's app as a demo
6c24fedd
hysts Skip TURN in the guide's snippet outside a Space
66bcb9dc
hysts Skip type checks of the new demo's optional imports
354a8862
hysts Remove the FastRTC-era YOLO webcam demo
b582c3a9
hysts Let a pause end a capped utterance's continuation
646c7ede
hysts Let ReplyOnPause send at another sample rate
fa795ee8
hysts Wait for an ended stream's shutdown only once
5686578b
hysts Check BlockFunction.api_params against None
26d424f9
hysts Keep a slow link's longer wait for camera frames
13244faa
hysts Give a stopped camera 5 s before ending the stream
520571d5
hysts Letterbox the WebRTC guide demo's frames
26e44c41
hysts Merge remote-tracking branch 'origin/7.0-dev' into webrtc-component
7ba15961
hysts
hysts hysts merged 13250d53 into 7.0-dev 7 hours ago
hysts hysts deleted the webrtc-component branch 7 hours ago

Login to write a write a comment.

Login via GitHub

Assignees
Labels
Milestone