简体   繁体   English

Android背景相机预览

[英]Android background camera preview

I have searched on google/stackoverflow and tried many different solutions but none of them seem to work. 我在google / stackoverflow上进行了搜索,并尝试了许多不同的解决方案,但似乎都没有用。

Okay here's what i wanna do: 好的,这就是我想要做的:

I want to have a background service which displays a visible surfaceview with a camerapreview inside of it, like outside of the application i want to see myself (by using the front camera) in the surfaceview. 我想拥有一个后台服务,该服务在其中显示一个带有camerapreview的可见表面视图,就像在应用程序外部一样,我想(通过使用前置摄像头)在surfaceview中看到自己。

I know that is possible because i have seen other apps do that and i think it's really cool. 我知道这是有可能的,因为我已经看到其他应用程序可以做到这一点,而且我认为它真的很酷。

How would i do that? 我该怎么办?

Thank you for any help! 感谢您的任何帮助! THANKS ALOT :) 非常感谢 :)

这是一个很棒的Google员工Alex Lockwood 的示例实现

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM