捕获正在运行的 Android 应用程序的视频,然后播放

发布于 2024-12-29 14:09:39 字数 442 浏览 2 评论 0原文

我已经在 android 中开发了一个应用程序,现在我希望在其中添加一项功能。我想捕获我的应用程序的视频,这意味着会有一个按钮,当用户单击该按钮时,它开始记录用户在应用程序中所做的每一件事。假设用户按下 2 个按钮并播放一些声音、动画等。这一切都应该被记录下来,当用户停止记录时,它会提供播放视频的选项。我从 Android 市场上的会说话的汤姆应用程序中得到了这个想法。

这是该应用程序的链接。 会说话的汤姆

查看顶部的屏幕那里有movie的按钮,它是用来记录用户按下该按钮后所做的任何事情都会被记录下来然后播放,所以它会播放所有记录的东西。

我也想做同样的事情,如果有人有任何想法,请告诉我。

特纳克斯

I have developed one application in android and now I wish to add one more functionality in it. I want to capture the video of my application, means there will be one button and when user clicks on that button it starts recording each and everything which user do in the application. Let say user has press 2 buttons and play some sound, animations, etc. This all should be recorded and when user stop recording it gives options to play the video. I got this idea from the Talking Tom app available in android market.

Here is the link of that app.
Talking tom

See the screens, on the top of it the button of movie is there, which is used for recording whatever the user will do after pressing that button will be recorded and then play it, so it will play all the recorded things.

I want to do the same thing, if anyone is having any idea please kindly let me know.

Thnaks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无法言说的痛 2025-01-05 14:09:39

除了记录屏幕截图之外,您可能只能将用户输入记录在文件中?
因此,用户调用的每个方法都将在该文件(或类似的文件)中记录有时间戳。这可以通过方法本身来完成,因此播放所需要做的就是按照用户执行的顺序调用方法。像《星际争霸》这样的游戏会记录用户输入并在播放模式下重复它们。但是您的应用程序必须使用相同的输入产生完全相同的结果,结果的任何变化都会使您的播放崩溃。

Beside recording a screencapture, you may can only record the users inputs in an file?
So every method the user calls will be recorded with a Timestamp in that file (or something like that). That can be done by the method itself, so all you have to do for playback is, calling your methods in the same order the user did. Games like StarCraft are recording userinputs and repeat them in playback mode. But your App has to produce excatly the same results with the same inputs, any variations in results will crash your playback.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文