Closed nikohpng closed 5 months ago
maybe you can try to register a DesktopCapturerObserver
to the libwebrtc::RTCDesktopCapturer
.
https://github.com/webrtc-sdk/libwebrtc/blob/fb0940cd9f3a65db115108774d5934fcdf5e4005/include/rtc_desktop_capturer.h#L37-L46
I have registed.
But I want to get OnStop
event when chrome or wechat closed.
Now, OnStop
only called by stop.
then I use WaitForSingleObject
to get closing event of chrome or wechat
last, I can't get closing event
Can you receive OnError when the window is closed or loses focus?
I have no experience with accessing the window state when capturing a window, so still need to investigate :(
Description
I want to get closing event of other process when I share my application screen. So, I can do someting.
Present Situation
I have listened process to get closing event, such like this
But, this code can't get closing event from chrome or wechat, unless we kill chrome in taskbar instead of closing the window.
Question
I think that this feature is necessary.
Thanks!