原始swf文件在Firefox中显示,但不在IE中 [英] Serving raw swf files displays in Firefox but not in IE

查看:315
本文介绍了原始swf文件在Firefox中显示,但不在IE中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个情况,我需要为浏览器提供rawswf文件。也就是说,没有嵌入。我们遇到了一些问题,现在在IE浏览器中工作,但设法解决这个问题。到现在。我们正在解决一些其他服务文件的问题,并作为一个副作用的Flash文件停止在IE中工作。 Flash控制着浏览器的显示区域(你得到的是Flash的上下文菜单,而不是IE:s),但是Flash文件并不呈现。

我弄不清楚什么我已经改变了,使它停止工作。很大程度上是因为我们的工作方法是真正的尝试和错误的努力。 (我们从来没有完全理解这个问题的基础。)



在我们的系统以前的版本中,flash文件可以很好的渲染。我已经测试过Flash Player 9和10,没有任何区别。



我完全被困住了。任何人都有线索,我可以尝试一些挖掘?



编辑:按照MatthieuP和克里斯蒂安J的建议,我发现它是什么是关于。这不是标题,但我用于查看标题的代理显示了一个有趣的事情**:

当IE获取一个瑞士法郎是不嵌入它请求文件两次(我猜测ActiveX组件创建了一个嵌入代码的HTML文档,然后文件也从这个文档中获得请求。)

这个重复的读取给我们带来了问题,因为文件请求到我们的系统需要一个有效的一次性令牌才能成功。这是注定要失败的第二个请求。

感谢您的答案。你可以给我一个+1的帮助。

解决方案

查看新旧系统的响应标题;错误的内容类型,内容 - 长度可能会让Flash播放器变得怪异。

I have a case where I need to serve "raw" swf files to the browser. That is, without embedding. We have had some problems making this work in IE now and then but managed to work around it. Until now. We're fixing some other issues with serving documents and as a side effect the flash files stop working in IE. Flash controls the browser display area (you get the Flash context menu instead of IE:s) but the flash file doesn't render.

I can't figure out what I've changed that made it stop working. Much because our workarounds for making it work have been true trial-and-error efforts. (We've never quite understood the underpinnings of the problem.)

The flash files render fine in the previous version of our system. I've tested with Flash Player 9 and 10 and there's no difference.

I'm totally stuck. Anyone has a clue on where I could try some digging?

EDIT: Following the advice by MatthieuP and Kristian J, I found out what it was about. It wasn't the headers as such, but the proxy I used for looking at the headers revealed an interesting thing**:

When IE fetches an swf that's not embedded it requests the file twice (I'm guessing that the ActiveX component creates a HTML document with the embed code in it and then the file gets requested from that document too.)

This duplicate fetching spells p r o b l e m s for us since file requests to our system needs to have a valid one-time token to succeed. It's doomed to fail for the second request.

Thanks for your answers. You got +1 each from me for giving it a shot.

解决方案

Have a look to response headers with old and new system; wrong content type, content-Length could freak flash player.

这篇关于原始swf文件在Firefox中显示,但不在IE中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆