目前在Firefox 64中有以下错误,它给出了这个错误,我一直在网上搜索工作修复但找不到。
TypeError:“没有足够的参数来……
你在打电话 pc.setRemoteDescription(desc, callback) 但是不要使用a提供错误回调 .catch 代替。 Firefox不喜欢在没有提供错误回调的情况下使用回调,这会导致“参数不够”错误。
pc.setRemoteDescription(desc, callback)
.catch
不要将已弃用的回调与promises混合使用,而是使用 pc.setRemoteDescription(desc).then(() => ...).catch(...)
pc.setRemoteDescription(desc).then(() => ...).catch(...)