当我使用JS:时
var mediaSource = new MediaSource();
这引发了Safari12的错误。
Safari的语法是什么?
new MediaSource()
在OSX上的Safari 12上运行良好。我怀疑你在iOS上?
根据MDN的说法,iOS Safari 12不支持MediaSource
,只有桌面版本支持。