简体   繁体   中英

Is it possible to run Camera2 in Picture-in-Picture in Android?

如果是,如何在PiP内的SurfaceTexture上继续进行相机预览?

Yes.

Take a look at the PiP guide for the general details, but you should be able to keep a TextureView in a PiP window just fine, and have the camera API send data to it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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