什么mode:shim
做?
我在这个网站上搜索了一种强制闪光的方法。代码开发人员针对遇到我所面临的确切问题的某个人的问题写了这个答案:
MediaElement.js - force Chrome to use flash player?
我的观察是现代浏览器加载一个 html5 组件,然后切换到 Flash,但它的实际行为非常令人困惑。
最佳答案
正如你所说,它会强制闪存回退。在现代浏览器的情况下,html5 视频的初始化将被 flash 回退否决。
// allows testing on HTML5, flash, silverlight
// auto: attempts to detect what the browser can do
// auto_plugin: prefer plugins and then attempt native HTML5
// native: forces HTML5 playback
// shim: disallows HTML5, will attempt either Flash or Silverlight
// none: forces fallback view
关于mediaelement.js - 什么是模式 :shim actually doing?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8084587/