Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法加载出通话录音的音频文件 #2953

Open
bravetou opened this issue Nov 20, 2024 · 1 comment
Open

无法加载出通话录音的音频文件 #2953

bravetou opened this issue Nov 20, 2024 · 1 comment

Comments

@bravetou
Copy link

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<LocalMedia?> {
            override fun onResult(result: ArrayList<LocalMedia?>) {}

            override fun onCancel() {}
        })

Describe the problem or provide an error log?

描述问题或提供错误log?

// 无log日志,只是无法获取到音频文件
@bravetou
Copy link
Author

比如小米手机,小米手机里面偶很多通话录音,但是我这边取不到。必须把文件复制到相册文件夹下才能取到该音频文件。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant