Safari:无法从blob url动态加载视频

发布于 2025-07-08  132 次阅读


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 内联播放

注错之当