Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

参数控制抓屏画面是否携带鼠标 #58

Open
beyondati opened this issue Dec 19, 2022 · 2 comments
Open

参数控制抓屏画面是否携带鼠标 #58

beyondati opened this issue Dec 19, 2022 · 2 comments

Comments

@beyondati
Copy link

能否通过参数控制,指定抓屏时画面带鼠标或不带鼠标

@beyondati
Copy link
Author

修改源码实现了不携带鼠标,但遇到了非常奇怪的问题。
在rtc_desktop_capturer_impl.cc里进行修改
改为下图1时,服务端运行正常,客户端回崩溃,客户端用修改前版本还能正常连接,看到画面。
屏幕截图 2022-12-26 164017
图1
然后改为图2样子,客户端仍然崩溃
屏幕截图 2022-12-26 164119
图2
最后改为图3样子,终于正常了,
屏幕截图 2022-12-26 164634
图3
但图2的与图3实质上没有区别啊。

崩溃时出现的错误如下图
屏幕截图 2022-12-26 165251

错误看上去就像是加了几行代码,整个程序就跑飞了

@beyondati
Copy link
Author

编译过程还遇到另外一个奇怪的问题
在flutter_screen_capture.cc 288行
调用desktop_capturer->Start(uint32_t(fps));
本应该调用红框内函数,实际上却调用的红框上面的那个函数,那几个x,y,w,h为随机值,导致程序运行崩溃,然后我注释掉x,y,w,h的赋值操作(如图中注释掉部分),程序正常运行,非常诡异,像是编译器出问题了似的。
屏幕截图 2022-12-26 170358

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant