在 MediaProjection 中完全隐藏安全视图 - android [英] Hide a secure view completely in MediaProjection - android

查看:45
本文介绍了在 MediaProjection 中完全隐藏安全视图 - android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 MediaProjection API 创建屏幕录像机应用.在我的应用程序中,我将停止按钮显示为一个小的覆盖窗口.我已确保此视图安全无虞,以免出现在最终录制的视频中.

I'm creating a screen recorder app using the MediaProjection API. In my app, I'm showing the stop button as a small overlay window. I've kept this view as secure so that it doesn't come up in the final recorded video.

此视图不会出现在最终视频中,但最终输出本身就是一个黑色区域,而不是原始视图.

This view doesn't come up in the final video, but the final output is itself a black area in place of the original view.

有没有办法得到没有这个黑色区域的最终视频输出?

Is it any way possible to get the final video output without this black area?

推荐答案

除非您有系统权限,否则目前无法这样做.

No way to do that currently unless you have System permission.

这篇关于在 MediaProjection 中完全隐藏安全视图 - android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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