WMODE和Flash视频 - 稳定性和性能 [英] WMODE and Flash Video - stability and performance

查看:233
本文介绍了WMODE和Flash视频 - 稳定性和性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于商业原因,我需要过度使用HTML内容的Flash视频播放器。这要求将WMODE设置为不透明。然而,Flash Player Engineering Tinic Uro却警告我们 =noreferrer>表现较差,几年前他甚至提到严重不稳定性和Adobe TechNote 15523 指出仅在某些浏览器/ Flash Player版本组合上支持WMODE参数

另外还有一大堆直接与WMODE选项关联的bug (在 Adob​​e Flash Player错误和问题管理系统中搜索wmode和opaque a>)

据我所知,即使YouTube试图避免使用WMODE不透明,无论如何,只要看看上面的帐户下拉菜单的设计展开视频。



我的问题是:

您对于Flash视频的性能,错误或不稳定性有任何经验和WMODE不透明?你可以分享任何好的阅读这个话题吗?是的,wmode不透明可以阻碍性能。 透明更糟糕。然而,

1)它不像前一段时间那么糟糕(有时它根本不起作用)。
$ 2)最重要的是,性能打击只是在某些情况下。我遇到了两种不同的情况:a)您的SWF的一部分正在重绘,而SWF(脏矩形)的那部分接近某些HTML内容。这会在每次重绘SWF部分时强制浏览器重新绘制HTML内容,从而导致性能下降;和b)用户事件,如鼠标滚动到一个接近HTML内容的按钮也可能是一个问题...浏览器似乎每次移动鼠标失去了几帧(确定下面的光标,也许? ),所以如果你有一个快速翻转(比如说需要0.3秒),那么在移动鼠标的时候很容易注意到动画落后,并且会丢失一些帧。


点是,如果您可以避免与HTML区域下方的动画内容进行交互的情况,或者有时可以禁用HTML内容,则使用不透明即可。



浏览器的性能也不尽相同,所以一定要测试一下。


for a business reasons I need to overly Flash video player with HTML content. This requires the WMODE to be set as "opaque".

However Flash Player Engineering Tinic Uro warns us over lower performance and couple years ago he even mentioned serious instability and Adobe TechNote 15523 states "the WMODE parameter is supported only on some browser/Flash Player version combinations".

In addition there is whole bunch of bugs associated directly with the WMODE option (search for "wmode" and "opaque" in Adobe Flash Player Bug and Issue Management System)

To my knowledge even YouTube tries to avoid using the WMODE "opaque" at any cost, just have a look at the design of the account drop down menu above expanded video.

My question is:

Do you have any experience with lower performance, bugs or instability regarding Flash video and WMODE "opaque"? Can you share any good reading on this topic?

解决方案

Yes, wmode opaque can hinder performance. "transparent" is even worse. However,

1) It's not as bad as it was a while ago (when sometimes it wouldn't work at all).

2) Most importantly, performance hit is only on certain situations. I have ran into two different situations: a) you have a part of your SWF that is being redraw, and that part of the SWF (dirty rectangle) is close to some HTML content. This forces the browser to redraw the HTML content every time the SWF part is redrawn, thus losing performance; and b) user events like a mouse rolling over a button that is close to HTML content can also be a problem... the browser seems to lose a few frames every time you move the mouse (to determine what's below the cursor, maybe?) so if you have a quick rollover (say, something that takes 0.3s) it's very easy to notice the animation 'lagging' as you move the mouse and it loses some frames.

Point is, if you can avoid situations where you are interacting with animated content below the HTML area, or if you can disable the HTML content sometimes, using opaque is ok.

Performance also vary between browsers, so be sure to test well.

这篇关于WMODE和Flash视频 - 稳定性和性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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