LuckSiege / LuckSiege/PictureSelector

较低Android版本,同时允许拍照和录像,预览黑屏

Open
#2,494 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
13.6k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

Current use version?

当前使用的版本是多少?
v3.10.6

Will this problem occur in demo?

Demo能否复现这问题?
能,对 MainActivity.java 调整两处代码,
并且在 Android Studio 自带的 Android8.0 (或其他较低版本)模拟器上可复现
(相同 Android 版本的真机也能复现)

image
image

Describe the problem or provide an error log?

描述问题或提供错误log?
打开 Demo -> 选择自定义相机 -> 打开图库 -> 点击拍摄

此时相机黑屏,无法预览


当单独拍照或者单独录像或使用较高版本的系统(例如 Android10 或以上)不会出现此问题,
只有同时允许拍照和录像,并且在较低系统版本上才会出现该问题

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the demo: open the custom camera, open the gallery, and tap capture on the Android Studio Android 8.0 emulator. Inspect the two noted changes in MainActivity.java and compare behavior when photo and video capture are both enabled. Done means the camera preview is visible on lower Android versions in this configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.