简体   繁体   English

如何在视频上显示相机预览

[英]How to show camera preview on video

I'm creating app which is show camera preview on video, what types of component I should use.我正在创建在视频上显示相机预览的应用程序,我应该使用什么类型的组件。 Please guide me.请指导我。

I'm using surface view to show camera preview.我正在使用表面视图来显示相机预览。

You can refer to Camera X for this.... Camera x has the following abilities...这个可以参考Camera X.... Camera x有以下能力...

  1. Support all the version of android支持android所有版本
  2. Easy and Fast to Capture videos and images轻松快速地捕捉视频和图像
  3. Easy to Manage Different Rotations Angles ifact you have not to care about it rotation as you will rotate the device it will capture according to device rotation易于管理不同的旋转角度如果您不必关心它的旋转,因为您将旋转它将根据设备旋转捕获的设备
  4. You can Visit This link to integrate CameraX in you Application https://blog.mindorks.com/getting-started-with-camerax您可以访问此链接以将 CameraX 集成到您的应用程序https://blog.mindorks.com/getting-started-with-camerax

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

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