mpromonet / webrtc-streamer

WebRTC streamer for V4L2 capture devices, RTSP sources and Screen Capture
https://webrtcstreamer.agreeabletree-365b9a90.canadacentral.azurecontainerapps.io/?layout=2x2
The Unlicense
3.03k stars 608 forks source link

Capture hardware cursor on server screen when using screen://0 #235

Open yaowangvrviu opened 5 years ago

yaowangvrviu commented 5 years ago

The browser part can not see the hardware cursor on server screen. I know in webrtc code, there is module named "desktop_and_cursor_composer", it seems webrtc support capturing hardware cursor with desktop. Do you have any suggestion how to implement this function? Thanks.

mpromonet commented 5 years ago

Hi, The screen capturer is created in https://github.com/mpromonet/webrtc-streamer/blob/master/inc/screencapturer.h like this :

 webrtc::DesktopCapturer::CreateScreenCapturer(webrtc::DesktopCaptureOptions::CreateDefault());

Maybe some options should be set to capture cursor position ?

Best Regards, Michel.

yaowangvrviu commented 5 years ago

Found in webrtc project, not found any code. :(