File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 25
25
26
26
settings = {}
27
27
28
+ command_line_switches = {}
28
29
29
30
def _set_dpi_mode (enabled ):
30
31
"""
@@ -202,6 +203,10 @@ def init(window):
202
203
}
203
204
}
204
205
206
+ default_command_line_switches = {
207
+ "enable-media-stream" : ""
208
+ }
209
+
205
210
if not _debug :
206
211
default_settings ['remote_debugging_port' ] = - 1
207
212
@@ -215,7 +220,8 @@ def init(window):
215
220
pass
216
221
217
222
all_settings = dict (default_settings , ** settings )
218
- cef .Initialize (settings = all_settings )
223
+ all_command_line_switches = dict (default_command_line_switches , ** command_line_switches )
224
+ cef .Initialize (settings = all_settings , commandLineSwitches = {"enable-media-stream" : "" })
219
225
cef .DpiAware .EnableHighDpiSupport ()
220
226
221
227
_initialized = True
You can’t perform that action at this time.
0 commit comments