问题描述
据我了解,Firefox和Chrome支持WebM / VP9已有一段时间了。
但是,在我的机器上,MediaRecorder.isTypeSupported('video / webm; codecs = vp9')
在Firefox中返回false
,在Chrome中返回true
。
软件:Firefox 81.0,Chrome 85,MacOS 10.15。 MacBook Pro i72016。与硬件相关吗?
解决方法
研究Firefox代码后,我发现截至目前,FireFox MediaRecorder不支持WebM / VP9。我查看的源代码在这里MediaRecorder.cpp
意味着什么?用MediaRecorder在 Chrome 5-10Mb(WebM / VP9),在 Firefox 40-50Mb(WebM / VP8)上录制的60秒视频)。