什么是模式:垫片实际上在做什么?

时间:2011-11-10 18:38:22

标签: mediaelement.js

mode:shim做了什么?

我在这个网站上搜索了一个强制闪存的方法。代码开发人员将这个问题的答案写给了一个有我面临的确切问题的人的问题:

MediaElement.js - force Chrome to use flash player?

我的观察是现代浏览器加载一个html5组件,然后切换到闪存,但它的实际行为非常混乱。

1 个答案:

答案 0 :(得分:9)

正如你所说,它将迫使闪回后退。在现代浏览器的情况下,html5视频的初始化将被闪回后退。

// 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