简体   繁体   English

Flash无法在Windows 8 / Internet Explorer 10上运行

[英]Flash not working on Windows 8 / Internet explorer 10

For some reason my webpage does not showing flash content on Internet Explorer 10. It is working earlier versions of IE. 由于某种原因,我的网页在Internet Explorer 10上没有显示Flash内容。它正在运行IE的早期版本。

I'm using swfobject.js for the flash content. 我正在使用swfobject.js作为Flash内容。

Here is the code: 这是代码:

<script type="text/javascript">
    swfobject.embedSWF("http://www.foobar.com/flash/movie.swf", "noflash", "223", "154", "9.0.0", "http://www.foobar.com/flash/expressInstall.swf");
</script>

<div id="noflash">

</div>

I notice that the flash is working on some of the websites but not in mine. 我注意到闪光灯在某些网站上有效,但在我的网站上却无效。

What could be the problem here? 这可能是什么问题?

To clarify, Internet Explorer 10 and higher supports Flash Player on Windows 8 and above; 需要说明的是,Internet Explorer 10及更高版本在Windows 8及更高版本上支持Flash Player。 however, modernization efforts in Internet Explorer have broken SWFObject's ability to distinguish between Internet Explorer and other browsers. 但是,Internet Explorer的现代化工作破坏了SWFObject区分Internet Explorer和其他浏览器的能力。 Because IE uses the ActiveX control as opposed to the NPAPI or PPAPI plug-in, the invocation is different and the changes in IE inject compatibility problems with existing JavaScript on many sites. 由于IE使用ActiveX控件而不是NPAPI或PPAPI插件,因此调用是不同的,并且IE中的更改注入了许多站点上与现有JavaScript的兼容性问题。

SWFObject is a useful library, and it provides some additional benefit to the standard HTML object and embed tags. SWFObject是一个有用的库,它为标准HTML对象和嵌入标签提供了一些额外的好处。 I've seen some comments in the SWFObject bugbase saying that the issue is resolved in SWFObject 2.1, but not in SWFObject 2.2. 我在SWFObject错误库中看到了一些评论,说该问题在SWFObject 2.1中已解决,但在SWFObject 2.2中未解决。 I haven't tested it, but that might be a good short-term workaround. 我尚未测试过,但这可能是一个不错的短期解决方法。

Otherwise, you can find a ton of examples on how to use the conventional HTML approach to embed Flash content on your site. 否则,您可以找到大量有关如何使用常规HTML方法将Flash内容嵌入网站的示例 Here's a complete guide to the syntax: https://helpx.adobe.com/flash/kb/flash-object-embed-tag-attributes.html 这是语法的完整指南: https : //helpx.adobe.com/flash/kb/flash-object-embed-tag-attributes.html

Embedding plug-ins via JavaScript became popular as a method for working around some patent trolling activity in the early 2000s, but I believe that the IP holders successfully extorted money from the folks with deep pockets and have returned to their respective caves. 通过JavaScript嵌入插件作为在2000年代初期解决某些专利侵权活动的一种方法而变得很流行,但是我相信IP持有人成功地从财大气粗的人那里勒索了钱,并回到了各自的洞穴中。 Object and Embed tags work in all major browsers at this point, and are a viable workaround until such time as SWFObject gets an update. 目前,Object和Embed标签可在所有主流浏览器中使用,并且是可行的解决方法,直到SWFObject得到更新为止。

Seems the geniuses at Microsoft decided not to support flash in some versions of IE10 that comes with Windows 8. According to these support pages, you need to add a meta tag to prompt the user to switch to a compatible version of IE10. 微软的天才似乎决定在Windows 8随附的某些版本的IE10中不支持Flash。根据这些支持页面,您需要添加一个meta标签,以提示用户切换到兼容版本的IE10。

< meta http-equiv="X-UA-Compatible" content="requiresActiveX=true" /> <meta http-equiv =“ X-UA-Compatible” content =“ requiresActiveX = true” />

Ain't Microsoft grand? 微软不是盛大的吗?

http://msdn.microsoft.com/en-us/library/ie/jj193557(v=vs.85).aspx http://msdn.microsoft.com/zh-CN/library/ie/jj193557(v=vs.85).aspx

https://code.google.com/p/swfobject/issues/detail?id=643 https://code.google.com/p/swfobject/issues/detail?id=643

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM