如何使双击采用了android的adb命令,扩大视频画面 [英] How to make a double tap to expand the video screen using android adb commands

查看:2978
本文介绍了如何使双击采用了android的adb命令,扩大视频画面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图分析在我的Andr​​oid设备中的视频流。我想要的一切由脚本自动化,因为该设备具有重复试验了很多次,我想远程操作(这是LAN连接)。对于这一点,我使用的是特殊的应用程序,它开始进入流的小尺寸屏幕上的视频(这是专门为这,我必须扩展屏幕,我只能使用这个Android应用程序)。双抽头提出,要扩大屏幕(没有按键扩大,我可以做到这一点只有双攻手动)。

I am trying to analyze a streaming video in my Android device. I want everything automated by scripts, because the device has to repeat the test a lot of times and I want to do it remotely (it is LAN connected). For that, I am using a special app, which starts to stream the video on a small-sized screen (it is special for that, I must expand the screen and I must use only this android app). A double-tap should be made to expand the screen (there is no button to expand, I can do it only double-tapping manually).

由于我的自动化,我想,当视频流被执行下面从一个批处理文件扩展视频画面:

Due to my automation, I am trying to expand the video screen from a batch file when the video is streaming executing the following:

adb shell input tap x1 y1

adb shell input tap x1 y1

但它不工作。我也试图与输入的触摸屏,输入刷卡X1 Y1 X1 Y1,我把每个组合在一个无限循环,而且它永远不会扩大。也许因为双击实在是太慢了....也许是因为该事件需要发送一个抽头释放事件。

But it does not work. I've tried also with input touchscreen, input swipe x1 y1 x1 y1, I put every combination in a infinite loop, and it never expands. Maybe because the double tap it is too slow.... or maybe because that event needs to send a tap-release event.

已经遇到了这个问题有人?我怎么能这样做的双击远程扩大屏幕?

Anybody encountered this problem already? How could I do a double tap to expand the screen remotely?

感谢您的时间!

推荐答案

最后我得到了它。首先我录了双击事件,并将其存储到一个二进制文件:

Finally I got it. First I've recorded the double-tap event and stored it into a binary file:

adb shell 
cd /sdcard/
cat /dev/input/event_X > doubletap

执行doubletap无论你想它,然后,结束与记录 CTRL + C

该event_X是叫sec_touchscreen事件。
它可以从获得:

The event_X is the event called sec_touchscreen. It can be got from:

adb shell getevent -p

然后,您可以重放与doubletap:

Then, you can replay the doubletap with:

adb shell "cat /sdcard/doubletap > /dev/input/event_X"

在我而言,这是棘手的,因为它没有工作,一旦重播执行,而是两个,如:

In my case, it was tricky because it did not work executing once the replay, but two, like:

adb shell "cat /mnt/sdcard/doubletap > /dev/input/event_X"

adb shell "cat /mnt/sdcard/doubletap > /dev/input/event_X"

这篇关于如何使双击采用了android的adb命令,扩大视频画面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆