File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
test/sanity/screen-desktopcapturemonitor Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,10 @@ namespace extensions {
205
205
webrtc::DesktopCaptureOptions options = webrtc::DesktopCaptureOptions::CreateDefault ();
206
206
options.set_disable_effects (false );
207
207
208
- media_list_.reset (new NativeDesktopMediaList (content::DesktopMediaID::TYPE_SCREEN, webrtc::DesktopCapturer::CreateScreenCapturer (options)));
208
+ if (screens)
209
+ media_list_.reset (new NativeDesktopMediaList (content::DesktopMediaID::TYPE_SCREEN, webrtc::DesktopCapturer::CreateScreenCapturer (options)));
210
+ else if (windows)
211
+ media_list_.reset (new NativeDesktopMediaList (content::DesktopMediaID::TYPE_WINDOW, webrtc::DesktopCapturer::CreateWindowCapturer (options)));
209
212
210
213
media_list_->StartUpdating (this );
211
214
}
Original file line number Diff line number Diff line change 23
23
writeSuccess ( eventName ) ;
24
24
} )
25
25
} ) ;
26
- nw . Screen . DesktopCaptureMonitor . start ( true , true ) ;
26
+ nw . Screen . DesktopCaptureMonitor . start ( false , true ) ;
27
27
} catch ( e ) {
28
28
writeFailure ( e ) ;
29
29
}
57
57
}
58
58
</ script >
59
59
</ body >
60
- </ html >
60
+ </ html >
You can’t perform that action at this time.
0 commit comments