mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Start capturing screen when connection established
This commit is contained in:
@@ -133,12 +133,12 @@ int ScreenCapturerX11::Start() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ScreenCapturerX11::Stop() { return 0; }
|
||||
|
||||
int ScreenCapturerX11::Pause() { return 0; }
|
||||
|
||||
int ScreenCapturerX11::Resume() { return 0; }
|
||||
|
||||
int ScreenCapturerX11::Stop() { return 0; }
|
||||
|
||||
void ScreenCapturerX11::OnFrame() {}
|
||||
|
||||
void ScreenCapturerX11::CleanUp() {}
|
||||
|
||||
@@ -32,9 +32,10 @@ class ScreenCapturerX11 : public ScreenCapturer {
|
||||
|
||||
virtual int Start();
|
||||
|
||||
virtual int Stop();
|
||||
|
||||
int Pause();
|
||||
int Resume();
|
||||
int Stop();
|
||||
|
||||
void OnFrame();
|
||||
|
||||
|
||||
@@ -134,12 +134,12 @@ int ScreenCapturerAvf::Start() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ScreenCapturerAvf::Stop() { return 0; }
|
||||
|
||||
int ScreenCapturerAvf::Pause() { return 0; }
|
||||
|
||||
int ScreenCapturerAvf::Resume() { return 0; }
|
||||
|
||||
int ScreenCapturerAvf::Stop() { return 0; }
|
||||
|
||||
void ScreenCapturerAvf::OnFrame() {}
|
||||
|
||||
void ScreenCapturerAvf::CleanUp() {}
|
||||
|
||||
@@ -38,9 +38,10 @@ class ScreenCapturerAvf : public ScreenCapturer {
|
||||
|
||||
virtual int Start();
|
||||
|
||||
virtual int Stop();
|
||||
|
||||
int Pause();
|
||||
int Resume();
|
||||
int Stop();
|
||||
|
||||
void OnFrame();
|
||||
|
||||
|
||||
@@ -28,6 +28,8 @@ class ScreenCapturer {
|
||||
virtual int Destroy() = 0;
|
||||
|
||||
virtual int Start() = 0;
|
||||
|
||||
virtual int Stop() = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -27,7 +27,7 @@ class ScreenCapturerWgc : public ScreenCapturer,
|
||||
|
||||
int Pause();
|
||||
int Resume();
|
||||
int Stop();
|
||||
virtual int Stop();
|
||||
|
||||
void OnFrame(const WgcSession::wgc_session_frame &frame);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user