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

6.0 无法录制视频 #7

Open
XuQK opened this issue Oct 31, 2017 · 0 comments
Open

6.0 无法录制视频 #7

XuQK opened this issue Oct 31, 2017 · 0 comments

Comments

@XuQK
Copy link

XuQK commented Oct 31, 2017

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)
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