-
Notifications
You must be signed in to change notification settings - Fork 104
是否能获取网络视频的封面,现在会报错 #50
Comments
你可以用https://github.com/itinance/react-native-fs 下载视频成为一个 file
|
会出现偶尔会出错的情况吗,我这边偶尔会失败, |
let thumbnail = await RNThumbnail.get(video.path); |
@wulala1997 什么原因?有log吗?
会有log |
处理的视频==> file:///storage/emulated/0/Pictures/video-2d880eef-a48a-4087-8239-cd0f2f3704058393300293092977467.mp4 Error: Attempt to invoke virtual method 'boolean android.graphics.Bitmap.compress(android.graphics.Bitmap$CompressFormat, int, java.io.OutputStream)' on a null object reference |
------------------ 原始邮件 ------------------
发件人: "Duong Cong Tung"<notifications@github.com>;
发送时间: 2019年9月27日(星期五) 中午11:39
收件人: "phuochau/react-native-thumbnail"<react-native-thumbnail@noreply.github.com>;
抄送: "苑博林"<1252432332@qq.com>; "Mention"<mention@noreply.github.com>;
主题: Re: [phuochau/react-native-thumbnail] 是否能获取网络视频的封面,现在会报错 (#50)
@wulala1997 什么原因?有log吗?
try { let thumbnail = await RNThumbnail.get(video.path); } catch (e) { console.error(e) }
会有log
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
可能是错误在这 因为
所以视频不到1秒那就没有 |
好的,十分感谢.抱歉打扰您中午休息了 |
没问题,我在越南现在还是工作时间。 |
No description provided.
The text was updated successfully, but these errors were encountered: