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

网络视频在android10以下下载失败 #2357

Closed
tinglingmeng opened this issue May 16, 2022 · 1 comment
Closed

网络视频在android10以下下载失败 #2357

tinglingmeng opened this issue May 16, 2022 · 1 comment

Comments

@tinglingmeng
Copy link

版本号 3.0.9

环境 小米5S(Android8 API26)

如何复现

  1. PictureSelectorPreviewFragment类中修改path就可以复现
  2. 修改如下:
    1. String path = media.getAvailablePath();改为
    2. String path = "https://a1.easemob.com/1102210427231644/youdingtest/chatfiles/873e22e0-d4dd-11ec-a6db-2d52d6674262";(路径任意一个都行)

错误Log

  1. java.io.FileNotFoundException: open failed: ENOENT (No such file or directory)
  2. java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io.OutputStream.write(byte[], int, int)' on a null object reference

版本号 3.0.9.md

@LuckSiege
Copy link
Owner

你可以实现setExternalPreviewEventListener接口

 @Override
 public boolean onLongPressDownload(LocalMedia media) {
    // 实现自己的下载逻辑...
    return true;
 }

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

2 participants