mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 18:09:23 +08:00
Add support for trickle ice (#193)
* cherry-pick trickle-ice * Add code * Add code * format
This commit is contained in:
@@ -5,6 +5,7 @@ from typing import (
|
||||
AsyncContextManager,
|
||||
Callable,
|
||||
Literal,
|
||||
Optional,
|
||||
TypedDict,
|
||||
cast,
|
||||
)
|
||||
@@ -28,7 +29,8 @@ curr_dir = Path(__file__).parent
|
||||
|
||||
|
||||
class Body(BaseModel):
|
||||
sdp: str
|
||||
sdp: Optional[str] = None
|
||||
candidate: Optional[dict[str, Any]] = None
|
||||
type: str
|
||||
webrtc_id: str
|
||||
|
||||
|
||||
Reference in New Issue
Block a user