0
console.log (sourceBuffer.buffered.length) //3
sourceBuffer.remove(0);
//TypeError: Failed to execute 'remove' on 'SourceBuffer': required,
// 2 arguments but only 1 present.
是否sourceBuffer.remove()
删除缓冲范围或整个sourceBuffer?媒体来源扩展:如何删除sourcebuffer缓冲范围
如果是这样,两个预期的论点是什么?
有你有机会来看看[这里找到媒体来源扩展文档(https://dvcs.w3.org/hg/html-media/raw-file/tip/media-源极/媒体source.html#方法-1)?有一部分_(“3.2方法”)_描述了remove()函数;该函数显然需要开始和结束数值_(双)_参数...这有帮助吗? – summea
@summea这有帮助,谢谢。 – andrew