barry-ran / qtscrcpy Goto Github PK
View Code? Open in Web Editor NEWAndroid real-time display control software
Home Page: https://blog.csdn.net/rankun1/article/details/87970523
License: Apache License 2.0
Android real-time display control software
Home Page: https://blog.csdn.net/rankun1/article/details/87970523
License: Apache License 2.0
而且native横屏也不支持18:9
AdbProcess类的代码
connect(this, &QProcess::readyReadStandardOutput, this,
this{
m_standardOutput =m_standardOutput+ QString::fromLocal8Bit(readAllStandardOutput());
qInfo(QString("AdbProcess::out:%1").arg(m_standardOutput).toUtf8());
});
标准输出和错误输出都有这问题;
emmm
如题
无法中文输入,这一点确实有些可惜,要是加上这个的话,体验会好很多。
找了好久都没有找到,只有录制视频路径和分辨率配置
很高兴大佬弄了和平精英按键脚本映射支持,我和朋友试玩了几局,发现有一点小bug,就是小眼睛按键能用但是视角转不动,我不会编程搜了好多看了好多关于脚本的修改,自己弄了好多天还是搞不定,就连某个按键想要换成左下角的Ctrl都不会了。。。。我太难了,希望大佬更新一下脚本呗~~感激不尽
void VideoForm::mouseReleaseEvent(QMouseEvent *event)
{
if (ui->videoWidget->geometry().contains(event->pos())) {
if (!m_controller) {
return;
}
event->setLocalPos(ui->videoWidget->mapFrom(this, event->localPos().toPoint()));
m_controller->mouseEvent(event, ui->videoWidget->frameSize(), ui->videoWidget->size());
}
}
如果这时候坐标越界了(即超过可是的video区域),界面可能处在拖动位置的中间。
同时启动多个设备的时候,会有因为时延会有端口号被占用冲突的问题;
启动或提示 libpng warning:known incorrect sRGB profile
如题, 自己电脑装的Deepin, 这个支持的话可以大屏玩手机游戏了!
现在的方法只能获取手机和电脑都通过wifi连接下,实际上是无法获取到用户手机的真实IP地址的,
另外一种情况是手机开热点,电脑连接,这时候手机和电脑也在同一个局域网;
adb -s **** shell ifconfig
可以考虑通过,获取wlan swlan rmnet_data下的ip地址;
wlan对于手机和电脑普通wifi连接;
swlan,手机开热点给电脑连接;
rmnet_data手机的真实ip地址;
也不可以不用考虑的这么细致,这个只是个人看法;
Hi~ 大佬你好鸭,有一些异形屏手机投屏之后,尺寸会被挤压,希望能更新拉伸~ 谢谢大佬_(:з」∠)_
PC client
Set up the Qt development environment on the target platform (Qt >= 5.9.7, vs >= 2015 (not support mingw))
Clone the project
Open the project root directory all.pro with QtCreator
Compile and run
@barry-ran ... i was wondering how do i install it permanently on my linux system !
Do i have to always run it through QtCreator ?
Would be nice if i could install it as an app and launch it directly !!!
Android:9
rom:funtouchOS_9
打开了usb调试模式
7月第一次安装是可以无线的 后来就一直不行了
按教程走到启动adbd后
点击无线连接会等待1min 然后返回链接失败 可是重复点击就显示已经链接了 哪怕是点击无线断开后点击无线连接 仍然显示已经链接 然后刷新列表
`update devices...
adb run
AdbProcess::out:List of devices attached
AdbProcess::error:* daemon not running; starting now at tcp:5037
update devices...
adb run
AdbProcess::out:List of devices attached
9bbd2b54 device
get ip...
adb run
AdbProcess::out:wlan0 Link encap:UNSPEC Driver icnss
inet addr:192.168.8.100 Bcast:192.168.8.255 Mask:255.255.255.0
inet6 addr: fe80::9663:72ff:fe8c:d09f/64 Scope: Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4541 errors:0 dropped:0 overruns:0 frame:0
TX packets:5580 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3000
RX bytes:3178241 TX bytes:791819
start devices adbd...
adb run
AdbProcess::out:restarting in TCP mode port: 5555
wireless connect...
adb run
AdbProcess::out:failed to connect to 192.168.8.100:5555
wireless connect...
adb run
AdbProcess::out:already connected to 192.168.8.100:5555
wireless disconnect...
adb run
AdbProcess::out:disconnected 192.168.8.100
update devices...
adb run
AdbProcess::out:List of devices attached
9bbd2b54 device
192.168.8.100:5555 offline
wireless connect...
adb run
wait for the end of the current command to run
AdbProcess::out:failed to connect to 192.168.8.100:5555
wireless connect...
adb run
AdbProcess::out:already connected to 192.168.8.100:5555
update devices...
adb run
AdbProcess::out:List of devices attached
9bbd2b54 device
192.168.8.100:5555 offline
`
rt,请问是否可以直接在电脑和手机之间拖拽文件呢?以及是否支持共享剪切板呢?
手机屏幕分辨率和电脑屏幕分辨率不同的情况下,投影到电脑选择全屏显示时,画面拉伸。
设备型号: ZTEBA610T
问题:
画面与手机外框垂直方向颠倒,但操作与外框方向一致(自上向下滑动可以划出通知栏)
可以通过一线通接上一个HDMI的欺骗器,启动大屏模式后,在通过无线的方式或其他方式连接到锤子坚果的TNT或三星的DEX模式,那就太牛了。现在有太多人为了使用大屏模式,买了触控屏。但也有很多人喜欢大屏模式,比如TNT,但是已经有笔记本或PC了,如果能用这种方式解决,应该还是很有市场的,哪怕收费,都会有很多人买的呢。
void VideoForm::mouseMoveEvent(QMouseEvent *event)
{
if (ui->videoWidget->geometry().contains(event->pos())) {
if (!m_controller) {
return;
}
event->setLocalPos(ui->videoWidget->mapFrom(this, event->localPos().toPoint()));
m_controller->mouseEvent(event, ui->videoWidget->frameSize(), ui->videoWidget->size());
} else {
if (event->buttons() & Qt::LeftButton) {
move(event->globalPos() - m_dragPosition);
event->accept();
}
}
}
move(event->globalPos() - m_dragPosition);这会导致拖动的时候,界面被误操作拖动;
adb 连接设备数限制16个,是什么原因呢,想请教一下,是某方面的限制嘛?
能不能编译为安卓平台(arm64)的apk文件
希望可以支持更多应用自定义按键映射
barry你好,
我是一名手机开发者,想问一下是否有考虑过接一下音频的部分。
android Q版本之后可以通过capture audio的权限获取音频了
我英文其实还不错,需要翻译吗?
正向代理连接的逻辑可以进一步完善,重连socket可能一直连接不上,这时候可以之后,尝试在server模块内,重启服务;
1.0.3 没有mac
对于很多游戏来说(比如崩坏三,第五人格,阴阳师和一些动作或格斗类游戏),手柄会比鼠标键盘更适合。目前QtScrcpy已经支持了鼠标键盘的按键映射,希望添加对于游戏手柄的按键映射。
技术上可以考虑使用qt的gamepad包来实现游戏手柄的输入逻辑,接下来就可以使用现有的方法映射并传给手机了。
可能的难点在摇杆(D-pad)的映射上。摇杆是360度的,不能简单地对应成某个按键,需要单独添加一类操作。
Try to connect devices with different aspect ratio (tablets for example) and picture would look stretched/narrow
屏幕横屏之后,退出横屏,画面会出现拉伸(王牌战士)
只显示手机边框,但内容无法显示
建议做一个选项去处边框(这个软件很低的延迟和流畅度真的是很好,但是直播的话会有个大边框)
建议做一个设置保存(因为每次打开软件都要重新设置更高的码率分辨率)
开放更高的码率(这个我觉得可做可不做233)
很好用,比SCRCPY流畅,用起来也更方便。只有一个小问题:
我的手机是三星S7 Edge/Android 8.0。鼠标滚轮对于PC应用而言,每滚动一下相当于3行。在手机上每滚动一下相当于翻页,和空格键或者翻页键的效果差不多,这个可以接受。微信朋友圈也OK,但是公众号文章的话,每滚动一次会翻十几页,短文章直接就到底了。
在64位Windows 7和10下面均测试过,同样的问题。麻烦看一下。
1、手机上安装安兔兔测试软件,使用多点触控测试
2、鼠标点击窗口,发现手机上先显示点击的红圈,然后投屏窗口上后显示,对比scrcpy显示是同步的
3、从手机上很快显示点击效果来看说明点击事件传送是ok的,那就是从接受画面数据到渲染的过程不如scrcpy,对比代码看怀疑是接收视频数据的方式qt的信号槽不如c的直接调用
是adb的限制,还是gpu的限制,还是程序限制呢?
目前的自动选择逻辑是自动根据系统语言选择。对于需要使用英文系统的中文用户不太方便。
而且我发现英文有一些错误,比如录像保存路径被误写成了record save psth。这个错误比较容易发现,但是如果有更复杂的一些问题,不能双语对比会很难发现并引起误解。
电脑的画面颜色没有手机的鲜艳,比如看直播时,颜色严重偏黄。
onePlus 6T 能用
问题流程如下:
例如此时状态为竖屏切换至横屏.
1.帧大小发生改变.
2.updateShowSize.
3.contentsMargins().
4.根据Margins重新设置宽高
5.resize
6.切换至横屏完成.
问题点在于第3点,由于此时还是处于竖屏状态,所以获取到的实际上是竖屏状态的margins.
将这个竖屏的值应用到横屏宽高的计算中,出现比例异常.
is there any way to fix screen resolution? my phone looks as if its been squashed since the app shows the phone to be shorter and wider than my phone's actual res which is 1080 x 2340 pixels, 19.5:9 ratio
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.