LuckSiege / LuckSiege/PictureSelectorLight
6.0 无法录制视频
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 154
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
Nexus 5, 6.0.1原生系统,视频录制完后不会保存,提示‘FileNotFound’,存储里也找不到录制后的文件。录制完后直接在预览界面就显示一片黑。
在我的pixel 8.0系统上,录制完后可以预览,在文档里也能找到,但是却是保存在‘DCIM’文件夹里,也就是正常使用相机录制视频保存的路径,而返回的结果里面的路径是/storage/emulated/0/PictureSelector/CameraImage/PictureSelector_20171031_150937.mp4。
在另一台乐视手机,6.0系统手机上,能正常使用。
错误提示:
Invalid image.
java.io.FileNotFoundException: /storage/emulated/0/PictureSelector/CameraImage/PictureSelector_20171031_144901.mp4: open failed: ENOENT (No such file or directory)
at libcore.io.IoBridge.open(IoBridge.java:452)
at java.io.FileInputStream.<init>(FileInputStream.java:76)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at android.media.ExifInterface.loadAttributes(ExifInterface.java:1338)
at android.media.ExifInterface.<init>(ExifInterface.java:1057)
at com.luck.picture.lib.tools.PictureFileUtils.readPictureDegree(PictureFileUtils.java:345)
at com.luck.picture.lib.PictureSelectorActivity.onActivityResult(PictureSelectorActivity.java:875)
at android.app.Activity.dispatchActivityResult(Activity.java:6456)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3695)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3742)
at android.app.ActivityThread.-wrap16(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
at libcore.io.Posix.open(Native Method)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
at libcore.io.IoBridge.open(IoBridge.java:438)
at java.io.FileInputStream.<init>(FileInputStream.java:76)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at android.media.ExifInterface.loadAttributes(ExifInterface.java:1338)
at android.media.ExifInterface.<init>(ExifInterface.java:1057)
at com.luck.picture.lib.tools.PictureFileUtils.readPictureDegree(PictureFileUtils.java:345)
at com.luck.picture.lib.PictureSelectorActivity.onActivityResult(PictureSelectorActivity.java:875)
at android.app.Activity.dispatchActivityResult(Activity.java:6456)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3695)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3742)
at android.app.ActivityThread.-wrap16(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1393)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce video recording on the reported Android 6.0.1 and 8.0 devices, then inspect PictureFileUtils.java:345 and PictureSelectorActivity.java:875 from the stack trace. Compare the recorded file location with the returned path and verify that recording, preview, and result handling work without FileNotFound errors across the reported devices.
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
- Mostly clear
- Newbie friendliness
- 42/100