Firefox 视频标签 getVideoPlaybackQuality() 不是函数
Firefox video tag getVideoPlaybackQuality() is not a function
根据 MDN documentation,HTMLVideoElement
上的 getVideoPlaybackQuality()
在版本 25.0 之后可用。
但是,我尝试在 Firefox 38.1.0 中的视频元素上调用它,但出现 getVideoPlaybackQuality is not a function
错误。
这个 api 真的适用于 Firefox 吗?
您是否注意到 Mozilla 文档中的脚注...该功能仅在您打开配置标志时可用?
在 Firefox 中加载 about:config
并搜索 media.mediasource.enabled
标志,然后将其设置为 true 并再次尝试您的函数调用。
编辑:如果我没看错的话,现在是 Firefox 37 and Firefox 38 seem to indicate that the MediaSource API is currently implemented for YouTube only. However, it's enabled for Firefox Nightlies 的发行说明。
Firefox has a whitelist limiting MSE (to YouTube, Netflix, and Dailymotion) while we fix some compatibility bugs. The whitelist will likely be removed in Firefox 42, making MSE available to all websites.
根据 MDN documentation,HTMLVideoElement
上的 getVideoPlaybackQuality()
在版本 25.0 之后可用。
但是,我尝试在 Firefox 38.1.0 中的视频元素上调用它,但出现 getVideoPlaybackQuality is not a function
错误。
这个 api 真的适用于 Firefox 吗?
您是否注意到 Mozilla 文档中的脚注...该功能仅在您打开配置标志时可用?
在 Firefox 中加载 about:config
并搜索 media.mediasource.enabled
标志,然后将其设置为 true 并再次尝试您的函数调用。
编辑:如果我没看错的话,现在是 Firefox 37 and Firefox 38 seem to indicate that the MediaSource API is currently implemented for YouTube only. However, it's enabled for Firefox Nightlies 的发行说明。
Firefox has a whitelist limiting MSE (to YouTube, Netflix, and Dailymotion) while we fix some compatibility bugs. The whitelist will likely be removed in Firefox 42, making MSE available to all websites.