Skip to content

Commit

Permalink
browser(firefox): screencast support for Windows headful (#2965)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Jul 15, 2020
1 parent 19cd96c commit b7f7ba9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browser_patches/firefox/BUILD_NUMBER
@@ -1,2 +1,2 @@
1128
Changed: yurys@chromium.org Wed Jul 15 09:22:48 PDT 2020
1129
Changed: yurys@chromium.org Wed Jul 15 23:55:13 GMTST 2020
Expand Up @@ -50,6 +50,13 @@ rtc::scoped_refptr<webrtc::VideoCaptureModule> CreateWindowCapturer(nsIWidget* w
fprintf(stderr, "Video capture for Wayland is not implemented\n");
return nullptr;
# endif
#elif defined(_WIN32)
mozilla::widget::CompositorWidgetInitData initData;
widget->GetCompositorWidgetInitData(&initData);
const mozilla::widget::WinCompositorWidgetInitData& winInitData = initData.get_WinCompositorWidgetInitData();
nsCString windowId;
windowId.AppendPrintf("%lu", winInitData.hWnd());
return webrtc::DesktopCaptureImpl::Create(sessionId, windowId.get(), webrtc::CaptureDeviceType::Window);
#else
fprintf(stderr, "Video capture is not implemented on this platform\n");
return nullptr;
Expand Down

0 comments on commit b7f7ba9

Please sign in to comment.