【发布时间】:2018-06-15 18:09:09
【问题描述】:
我已经用 xhr 预加载了一个 mp4 视频并将其保存到一个 blob url
xhr.responseType = 'blob'
// xhr send and get response
var url = URL.createObjectURL(xhr.response);
player.src(url);
// It's worked, it's playable and seekable.
//url = blob url string
现在我需要处理那个视频,所以我需要将数据作为 arrayBuffer 取回,当你有 blob url 时如何取回数据(blob 对象) blob:http://domain/9d0d26c3-b7ba-4302-9186-d23c6ad53bd5
【问题讨论】:
标签: javascript xmlhttprequest blob filereader arraybuffer