updated app.py
Browse files
app.py
CHANGED
@@ -135,10 +135,16 @@ def main():
|
|
135 |
webrtc_ctx = webrtc_streamer(
|
136 |
key="hand-mouse",
|
137 |
video_processor_factory=HandMouseController,
|
138 |
-
media_stream_constraints={
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
async_processing=True,
|
140 |
video_html_attrs={
|
141 |
-
"style": {"width": "
|
142 |
"controls": False,
|
143 |
"autoPlay": True,
|
144 |
},
|
|
|
135 |
webrtc_ctx = webrtc_streamer(
|
136 |
key="hand-mouse",
|
137 |
video_processor_factory=HandMouseController,
|
138 |
+
media_stream_constraints={
|
139 |
+
"video": {
|
140 |
+
"width": {"ideal": 1280},
|
141 |
+
"height": {"ideal": 720}
|
142 |
+
},
|
143 |
+
"audio": False,
|
144 |
+
},
|
145 |
async_processing=True,
|
146 |
video_html_attrs={
|
147 |
+
"style": {"width": "100%", "height": "auto"},
|
148 |
"controls": False,
|
149 |
"autoPlay": True,
|
150 |
},
|