TextureView with camera preview

后端 未结 2 1453
我寻月下人不归
我寻月下人不归 2021-01-20 03:08

I would like to use TextureView to show camera preview in it. Finally i want to set opacity for camera preview, using TextureView. But i have problem:

2条回答
  •  醉酒成梦
    2021-01-20 03:41

    You should set this in you manifest.xml.

    android:hardwareAccelerated="true"
    

    Where you declare this it's up to where you want to use your TextureView,you used it in your service.so you should declare this in your service declaration.

     
    

提交回复
热议问题