const blob = new Blob([arrayBuffer], {type: 'video/mp4'});
var blob = new Blob([arrayBuffer], {type: 'audio/mpeg'});
url = webkitURL.createObjectURL(blob);
需要指定{type: 'video/mp4'}
// video.muted = true; // 必需
// video.playsInline = true; // 必需(iOS)
// video.setAttribute("muted", ""); // 静音避免 Safari 自动播放限制
// video.setAttribute("playsinline", ""); // 支持 iOS 内联播放
Safari:无法从blob url动态加载视频
发布于 2025-07-08 131 次阅读

Comments | NOTHING