gpt4 book ai didi

android - 从 ADB screenrecord 捕获的屏幕视频导致黑屏

转载 作者:行者123 更新时间:2023-11-29 01:31:57 27 4
gpt4 key购买 nike

我使用的是装有 v4.4.4 Android 的 Droid Maxx。我正在尝试:

adb shell screenrecord /sdcard/myvideo.mp4

而且我能够捕捉视频,显示桌面正常,但我的应用程序导致显示黑屏。我用 facebook 测试过,它记录得很好。

打开 verbose 后,我将其作为 shell 的一部分:

Main display is 720x1280 @60.00fps (orientation=0)
Configuring recorder for 720x1280 video at 4.00Mbps
Content area is 720x1280 at offset x=0 y=0

此处显示的示例录制视频:http://youtu.be/ZeKhTzRpRns

最佳答案

确保您没有设置 FLAG_SECURE:

the user may see a blank region on the screen instead of the contents of secure surfaces or protected buffers.

关于android - 从 ADB screenrecord 捕获的屏幕视频导致黑屏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30719573/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com