what is mode:shim actually doing?

做~自己de王妃 提交于 2020-01-03 15:35:14

问题


what does mode:shim do?

i searched this site for a method of forcing flash. the code developer wrote this answer to a question from someone having the exact problem i am facing:

MediaElement.js - force Chrome to use flash player?

my observation is that modern browsers load an html5 component, then switch to flash, but very confusing on its actual behavior.


回答1:


As you said, it will force the flash fallback. in case of modern browsers, the init of html5 video will be overruled by the flash fallback.

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


来源:https://stackoverflow.com/questions/8084587/what-is-modeshim-actually-doing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!