ankanpy commited on
Commit
d72254b
·
1 Parent(s): 1b2588c

updated app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
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={"video": True, "audio": False},
 
 
 
 
 
 
139
  async_processing=True,
140
  video_html_attrs={
141
- "style": {"width": "1280px", "height": "720px"},
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
  },