Mercurial > libervia-backend
comparison libervia/frontends/tools/webrtc_models.py @ 4270:0d7bb4df2343
Reformatted code base using black.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 19 Jun 2024 18:44:57 +0200 |
parents | 79c8a70e1813 |
children |
comparison
equal
deleted
inserted
replaced
4269:64a85ce8be70 | 4270:0d7bb4df2343 |
---|---|
60 | 60 |
61 | 61 |
62 @param dc_open_cb: Called when Data Channel is open. | 62 @param dc_open_cb: Called when Data Channel is open. |
63 This callback will be run in a GStreamer thread. | 63 This callback will be run in a GStreamer thread. |
64 """ | 64 """ |
65 | |
65 name: str = Field(default_factory=lambda: str(uuid.uuid4())) | 66 name: str = Field(default_factory=lambda: str(uuid.uuid4())) |
66 dc_open_cb: Callable[[GstWebRTC.WebRTCDataChannel], None] | 67 dc_open_cb: Callable[[GstWebRTC.WebRTCDataChannel], None] |
67 | 68 |
68 | 69 |
69 class SourcesPipeline(SourcesData): | 70 class SourcesPipeline(SourcesData): |
77 Empty string to disable audio. | 78 Empty string to disable audio. |
78 @param video_properties: Elements properties to set. | 79 @param video_properties: Elements properties to set. |
79 @param audio_properties: Elements properties to set. | 80 @param audio_properties: Elements properties to set. |
80 | 81 |
81 """ | 82 """ |
82 video_pipeline: str|None = None | 83 |
83 audio_pipeline: str|None = None | 84 video_pipeline: str | None = None |
85 audio_pipeline: str | None = None | |
84 video_properties: dict = Field(default_factory=lambda: {}) | 86 video_properties: dict = Field(default_factory=lambda: {}) |
85 audio_properties: dict = Field(default_factory=lambda: {}) | 87 audio_properties: dict = Field(default_factory=lambda: {}) |
86 | 88 |
87 | 89 |
88 class SinksData(BaseModel): | 90 class SinksData(BaseModel): |