LuckSiege / LuckSiege/PictureSelector
无法加载出通话录音的音频文件
- Dominant language
- Java
- Stars
- 13.6k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
## Current use version?
#### 当前使用的版本是多少?
```
v3.11.2
```
## Will this problem occur in demo?
#### Demo能否复现这问题?
```
// 能
PictureSelector.create(this)
.openGallery(mimeType)
.setMaxSelectNum(maxCount)
.setSelectedData(selectedData) // 默认选中选定的图片集
// .setQueryFilterListener {} // 过滤掉不符合标准的东西
.isPreviewFullScreenMode(true) // 预览点击全屏效果
.isDisplayTimeAxis(true) // 显示资源的创建时间线
.isMaxSelectEnabledMask(true) // 当达到最大选择数时,列表是启用遮罩效果
.setMaxVideoSelectNum(1) // 选择最大视频文件数
.setFilterVideoMaxSecond(60) // 过滤最大秒数视频
.setFilterVideoMinSecond(5) // 过滤最小秒数视频
.setFilterMaxFileSize(30 * 1024) // 过滤最大文件大小(KB)
.setImageEngine(GlideEngine.newInstance()) // 图片加载引擎
.setSandboxFileEngine(SandboxTransformEngine()) // 访问沙盒外资源
// .setRecordAudioInterceptListener { f, requestCode -> } // 设置语音回调
.isDisplayCamera(mimeType != SelectMimeType.ofAudio()) // 录音模式下不显示拍照按钮
.forResult(object : OnResultCallbackListener {
override fun onResult(result: ArrayList) {}
override fun onCancel() {}
})
```
## Describe the problem or provide an error log?
#### 描述问题或提供错误log?
```
// 无log日志,只是无法获取到音频文件
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue with PictureSelector v3.11.2 using the supplied Kotlin configuration, especially SelectMimeType.ofAudio() and SandboxTransformEngine(). Trace the audio-selection result to determine why no audio file is returned; done means audio files can be obtained in the demo, with a focused test or reproducible verification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100