Cameraview: Camera Preview stay black when pip mode

Created on 11 Jun 2020  路  3Comments  路  Source: natario1/CameraView

Describe the bug

Please add a clear description of what the bug is, and fill the list below.

  • CameraView version: 2.6.2
  • Camera engine used: both
  • Reproducible in official demo app: yes
  • Device / Android version: any device

Expected behavior

Camera Preview should be displayed in pip mode. There is no problem when expanding activity.

XML layout

 <com.otaliastudios.cameraview.CameraView
        android:id="@+id/camera"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_gravity="center"
        android:keepScreenOn="true"
        app:cameraAudio="off"
        app:cameraEngine="camera1"
        app:cameraExperimental="true"
        app:cameraFacing="front"
        app:cameraFlash="off"
        app:cameraGestureLongTap="none"
        app:cameraGestureTap="none"
        app:cameraGrid="off"
        app:cameraMode="picture"
        app:cameraPreview="glSurface"
        app:cameraPreviewFrameRate="24"
        app:cameraUseDeviceOrientation="false"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

Screenshots

https://i.ibb.co/PmmvBF0/Screenshot-20200611-155435-com-connected2-ozzy-c2m.jpg

stale

All 3 comments

This issue has been automatically marked as stale because it has not had activity in the last 20 days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.

the stale bot is the worst thing ever to exist

This issue has been automatically marked as stale because it has not had activity in the last 20 days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings