本文介绍了HTML:Flash对象/嵌入不工作在IE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不想用库来提高效率。我已经测试了这个在Chrome和FF,它的工作原理,但IE是一个nogo(7,8和9):

$ p $ <! - [if IE]>
type =application / x-shockwave-flash
data =flowplayer-3.2.7.swf
codebase =http:// fpdownload。 macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0
pluginspage =http://www.macromedia.com/go/getflashplayer
classid =clsid:D27CDB6E-AE6D-11cf-96B8-444553540000
width =300
height =168.75>

< param name =wmodevalue =opaque/>
< param name =movievalue =flowplayer-3.2.7.swf/>
< param name =allowfullscreenvalue =true/>
param name =flashvarsvalue ='config = {clip:{provider:pseudostreaming,url:/ uploads / videos / Produce.mp4}, :{ 高度: 100PCT, 顶部:0}, 插件:{ 对照:{ timeColor: #FFFFFF, borderRadius: 0像素, bufferGradient:无backgroundColor:rgba(0,0,0,0),timeBorderRadius:20,progressGradient:none,height:26,tooltips:{marginBottom 按钮:假}, 不透明度:1, timeFontSize:12, bufferColor: #a3a3a3, 边界: 0像素, buttonColor: #FFFFFF, 静音:假自动隐藏:{ 已启用:真实的, hideDelay:500, mouseOutDelay:500, hideStyle: 变脸, hideDuration:400, fullscreenOnly:真正}, backgroundGradient: none,width:100pct,display:block,sliderBorder:1px solid rgba(128,128,128,0.7),buttonOverColor:#ffffff,url :flowplayer.controls-3.2.5.swf,timeBgColor:rgb(0,0,0,0),scrubberBarHeightRatio:0.2,bottom:0,buttonOffColor:rgba(130,130,130 ,1) sliderColor: #000000, zIndex的:1, scrubberHeightRatio:0.6, 工具提示TEXTCOLOR : #FFFFFF sliderGradient: 无, 间隔:{ 时间:6, 所有:2}, timeBgHeightRatio:0.8, 姓名: 对照, TimeSeparator中0,,left:50pct,tooltipColor:rgba(0,0,0,0),durationColor:#b8d9ff,timeBorder:0px solid rgba(0, 0,0,0.3)progressColor:#4599ff,scrubber:true,builtIn:false,margin:[2,12,2,12]},rtmp:{ netConnectionUrl : RTMP://vod01.netdna.com/play, URL: http://builds.flowplayer.netdna-cdn.com/flowplayer.rtmp-3.2.3.swf}}} />
< / object>
<![endif] - >
<! - [if!IE]><! - >
data =flowplayer-3.2.7.swf
classid =clsid :D27CDB6E-AE6D-11cf-96B8-444553540000
type =application / x-shockwave-flash>

< param name =movievalue =flowplayer-3.2.7.swf/>
< param name =allowfullscreenvalue =true/>
param name =flashvarsvalue ='config = {clip:{provider:pseudostreaming,url:/ uploads / videos / Produce.mp4}, :{ 高度: 100PCT, 顶部:0}, 插件:{ 对照:{ timeColor: #FFFFFF, borderRadius: 0像素, bufferGradient:无backgroundColor:rgba(0,0,0,0),timeBorderRadius:20,progressGradient:none,height:26,tooltips:{marginBottom 按钮:假}, 不透明度:1, timeFontSize:12, bufferColor: #a3a3a3, 边界: 0像素, buttonColor: #FFFFFF, 静音:假自动隐藏:{ 已启用:真实的, hideDelay:500, mouseOutDelay:500, hideStyle: 变脸, hideDuration:400, fullscreenOnly:真正}, backgroundGradient: none,width:100pct,display:block,sliderBorder:1px solid rgba(128,128,128,0.7),buttonOverColor:#ffffff,url :flowplayer.controls-3.2.5.swf,timeBgColor:rgb(0,0,0,0),scrubberBarHeightRatio:0.2,bottom:0,buttonOffColor:rgba(130,130,130 ,1) sliderColor: #000000, zIndex的:1, scrubberHeightRatio:0.6, 工具提示TEXTCOLOR : #FFFFFF sliderGradient: 无, 间隔:{ 时间:6, 所有:2}, timeBgHeightRatio:0.8, 姓名: 对照, TimeSeparator中0,,left:50pct,tooltipColor:rgba(0,0,0,0),durationColor:#b8d9ff,timeBorder:0px solid rgba(0, 0,0,0.3)progressColor:#4599ff,scrubber:true,builtIn:false,margin:[2,12,2,12]},rtmp:{ netConnectionUrl : RTMP://vod01.netdna.com/play, URL: http://builds.flowplayer.netdna-cdn.com/flowplayer.rtmp-3.2.3.swf}}} />

<! - Netscape Navigator 2.0+和Mozilla兼容浏览器的EMBED标记 - >
< embed type =application / x-shockwave-flashwidth =300height =168.75wmode =transparent
src =flowplayer-3.2.7.swf
flashvars ='config = {clip:/ uploads / videos / Produce.mp4}'/>
< / object>
<! - <![endif] - >


解决方案

classid =clsid: D27CDB6E-AE6D-11cf-96B8-444553540000是Internet Explorer所必需的,而不是其他的方式。


I don't want to use a library to make it more efficient. I've tested this in Chrome and FF and it works, but IE is a nogo (7, 8, and 9):

<!--[if IE]>
            <object
                type="application/x-shockwave-flash"
                data="flowplayer-3.2.7.swf"
                codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
                pluginspage="http://www.macromedia.com/go/getflashplayer"
                classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                width="300"
                height="168.75">

                <param name="wmode" value="opaque" />
                <param name="movie" value="flowplayer-3.2.7.swf" />
                <param name="allowfullscreen" value="true" />
                <param name="flashvars" value='config={"clip":{"provider":"pseudostreaming","url":"/uploads/videos/Produce.mp4"},"screen":{"height":"100pct","top":0},"plugins":{"controls":{"timeColor":"#ffffff","borderRadius":"0px","bufferGradient":"none","backgroundColor":"rgba(0, 0, 0, 0)","timeBorderRadius":20,"progressGradient":"none","height":26,"tooltips":{"marginBottom":5,"buttons":false},"opacity":1,"timeFontSize":12,"bufferColor":"#a3a3a3","border":"0px","buttonColor":"#ffffff","mute":false,"autoHide":{"enabled":true,"hideDelay":500,"mouseOutDelay":500,"hideStyle":"fade","hideDuration":400,"fullscreenOnly":true},"backgroundGradient":"none","width":"100pct","display":"block","sliderBorder":"1px solid rgba(128, 128, 128, 0.7)","buttonOverColor":"#ffffff","url":"flowplayer.controls-3.2.5.swf","timeBgColor":"rgb(0, 0, 0, 0)","scrubberBarHeightRatio":0.2,"bottom":0,"buttonOffColor":"rgba(130,130,130,1)","sliderColor":"#000000","zIndex":1,"scrubberHeightRatio":0.6,"tooltipTextColor":"#ffffff","sliderGradient":"none","spacing":{"time":6,"all":2},"timeBgHeightRatio":0.8,"name":"controls","timeSeparator":" ","left":"50pct","tooltipColor":"rgba(0, 0, 0, 0)","durationColor":"#b8d9ff","timeBorder":"0px solid rgba(0, 0, 0, 0.3)","progressColor":"#4599ff","scrubber":true,"builtIn":false,"margins":[2,12,2,12]},"rtmp":{"netConnectionUrl":"rtmp://vod01.netdna.com/play","url":"http://builds.flowplayer.netdna-cdn.com/flowplayer.rtmp-3.2.3.swf"}}}' />
            </object>
        <![endif]-->
        <!--[if !IE]><!-->
            <object id="flowplayer" width="300" height="168.75" wmode="transparent"
                data="flowplayer-3.2.7.swf"
                classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                type="application/x-shockwave-flash">

                <param name="movie" value="flowplayer-3.2.7.swf" />
                <param name="allowfullscreen" value="true" />
                <param name="flashvars" value='config={"clip":{"provider":"pseudostreaming","url":"/uploads/videos/Produce.mp4"},"screen":{"height":"100pct","top":0},"plugins":{"controls":{"timeColor":"#ffffff","borderRadius":"0px","bufferGradient":"none","backgroundColor":"rgba(0, 0, 0, 0)","timeBorderRadius":20,"progressGradient":"none","height":26,"tooltips":{"marginBottom":5,"buttons":false},"opacity":1,"timeFontSize":12,"bufferColor":"#a3a3a3","border":"0px","buttonColor":"#ffffff","mute":false,"autoHide":{"enabled":true,"hideDelay":500,"mouseOutDelay":500,"hideStyle":"fade","hideDuration":400,"fullscreenOnly":true},"backgroundGradient":"none","width":"100pct","display":"block","sliderBorder":"1px solid rgba(128, 128, 128, 0.7)","buttonOverColor":"#ffffff","url":"flowplayer.controls-3.2.5.swf","timeBgColor":"rgb(0, 0, 0, 0)","scrubberBarHeightRatio":0.2,"bottom":0,"buttonOffColor":"rgba(130,130,130,1)","sliderColor":"#000000","zIndex":1,"scrubberHeightRatio":0.6,"tooltipTextColor":"#ffffff","sliderGradient":"none","spacing":{"time":6,"all":2},"timeBgHeightRatio":0.8,"name":"controls","timeSeparator":" ","left":"50pct","tooltipColor":"rgba(0, 0, 0, 0)","durationColor":"#b8d9ff","timeBorder":"0px solid rgba(0, 0, 0, 0.3)","progressColor":"#4599ff","scrubber":true,"builtIn":false,"margins":[2,12,2,12]},"rtmp":{"netConnectionUrl":"rtmp://vod01.netdna.com/play","url":"http://builds.flowplayer.netdna-cdn.com/flowplayer.rtmp-3.2.3.swf"}}}' />

                <!-- EMBED tag for Netscape Navigator 2.0+ and Mozilla compatible browsers -->
                <embed type="application/x-shockwave-flash" width="300" height="168.75" wmode="transparent"
                    src="flowplayer-3.2.7.swf"
                    flashvars='config={"clip":"/uploads/videos/Produce.mp4"}' />
            </object>
        <!--<![endif]-->
解决方案

classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" is needed for Internet Explorer, not the other way around.

这篇关于HTML:Flash对象/嵌入不工作在IE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-22 21:50