LuckSiege / LuckSiege/PictureSelector

获取不到录音机录音的文件

Open
#2,847 1 comment 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?

当前使用的版本是多少?
3.11.2

Will this problem occur in demo?

Demo能否复现这问题?

Describe the problem or provide an error log?

描述问题或提供错误log?
没有获取语音列表....demo里面没.  

 val model = openGallery(SelectMimeType.ofAudio())
    model.setSelectionMode(if (isSingle) SelectModeConfig.SINGLE else SelectModeConfig.MULTIPLE)
        .setMaxSelectNum(maxSelectNum)
        .setMaxVideoSelectNum(maxSelectNum)
        .setImageEngine(MyGlideEngine.create())
        .setVideoPlayerEngine(MyExoPlayerEngine())
        .setSandboxFileEngine(MyUriToFileTransformEngine())
        .setRecordAudioInterceptListener { fragment, requestCode ->
            val recordAudioIntent = Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION)
            if (recordAudioIntent.resolveActivity(fragment!!.requireActivity().packageManager) != null) {
                fragment.startActivityForResult(recordAudioIntent, requestCode)
            } else {
                IAPP.getApp().toastError("没有发现录音APP")
            }
        }

然后发现没有列出系统录音机文件列表, 用系统语音录音后 也没有显示

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 with the audio-selection demo and the shown setRecordAudioInterceptListener configuration, then reproduce the issue by recording audio through the system recorder. Trace why the recorded file is not displayed in the audio list. Done means recorded system audio appears in the selector, including in the demo.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.