android-gpuimage icon indicating copy to clipboard operation
android-gpuimage copied to clipboard

Camera1Loader with Lollipop or over

Open stylixpro opened this issue 6 years ago • 3 comments

Bug Reporting

Camera1Loader in Lollipop or over shows black preview It does not call preview callback.

Steps to Reproduce

  1. Create emulator with Lollipop or over
  2. Modify v2.0.3 example code to always use Camera1Loader
  3. Run app

Actual Results (include screenshots)

Preview is black

Expected Results (include screenshots)

Actual camera preview

URL

OS details

  • Device: Emulator (ex. Nexus 5 with Android 9) or real device (Galaxy S4 with Lollipop)
  • OS: Lollipop or over

Please add relevant labels When I use v1.4.1 in same devices or emulator, it works fine

stylixpro avatar Feb 08 '19 13:02 stylixpro

yes, i have the same issue

fatCat2015 avatar Feb 18 '19 01:02 fatCat2015

first add preview view and callback will called.

FlyMarco avatar Feb 25 '19 07:02 FlyMarco

Camera1 must be own SurfaceTexture or SurfaceHolder then can call onPreviewFrame callback, and we also request render all time by self.

cameraInstance.setPreviewTexture(surfaceTexture)

act262 avatar Jun 01 '20 09:06 act262