File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ def chrome_options(audio_file=None):
1414 chrome_options .add_argument ('--no-sandbox' )
1515 chrome_options .add_argument ('--headless' )
1616 chrome_options .add_argument (f'--unsafely-treat-insecure-origin-as-secure={ HOST } ' )
17- chrome_options .add_argument ("--disable-user-media-security" )
18- chrome_options .add_argument ("--use-fake-device-for-media-stream" )
19- chrome_options .add_argument ("--use-fake-ui-for-media-stream" )
2017
2118 if audio_file is not None :
19+ chrome_options .add_argument ("--disable-user-media-security" )
20+ chrome_options .add_argument ("--use-fake-device-for-media-stream" )
21+ chrome_options .add_argument ("--use-fake-ui-for-media-stream" )
2222 chrome_options .add_argument (f'--use-file-for-fake-audio-capture={ audio_file } ' )
2323
2424 return chrome_options
You can’t perform that action at this time.
0 commit comments