mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 18:09:23 +08:00
Merge pull request #10 from freddyaboulton/help-with-timeout
Help with timeout
This commit is contained in:
@@ -31,7 +31,7 @@ async def player_worker_decode(
|
|||||||
while not thread_quit.is_set():
|
while not thread_quit.is_set():
|
||||||
try:
|
try:
|
||||||
# Get next frame
|
# Get next frame
|
||||||
frame = await asyncio.wait_for(next_frame(), timeout=5)
|
frame = await asyncio.wait_for(next_frame(), timeout=60)
|
||||||
|
|
||||||
if frame is None:
|
if frame is None:
|
||||||
if quit_on_none:
|
if quit_on_none:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "gradio_webrtc"
|
name = "gradio_webrtc"
|
||||||
version = "0.0.7"
|
version = "0.0.8"
|
||||||
description = "Stream images in realtime with webrtc"
|
description = "Stream images in realtime with webrtc"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = "apache-2.0"
|
license = "apache-2.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user