react 下,想把读取文件的 arrarybuffer 给 video 控件播放,下面代码不成功,有用过的朋友吗?
const blob = new Blob([data]);
const src = URL.createObjectURL(data);
const video = videoRef.current;
video.src = src;
const blob = new Blob([data]);
const src = URL.createObjectURL(data);
const video = videoRef.current;
video.src = src;