SoundCloud HTML5小部件作为嵌入,但如果浏览器不支持所需的HTML5组件,它将回退到使用Flash。不幸的是,Flash播放器不具有wmode
属性设置就可以了,因此到目前为止我一直无法获得回退到wmode
设置为transparent
或opaque
与代码SoundCloud小部件和Flash wmode
<iframe wmode="opaque" width="100%" height="166" scrolling="no" frameborder="no"
src="https://w.soundcloud.com/player/?
url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F42072385%3Fsecret_token%3Ds-
awcrN&color=ff6600&auto_play=false&show_artwork=true&wmode=opaque">
</iframe>
当使用Vimeo的球员,在父上设置wmode
属性将导致备用Flash使用集wmode
,并且在YouTube网址上设置GET参数将导致Flash播放器使用集wmode
。这些技术似乎都不能用于SoundCloud。在使用SoundCloud HTML5播放器时,是否有可能为Flash后备设置wmode
,或者我应该自己编写特征检测来处理这个问题?
只是我不想要的答案。人们总是可以使用像Modernizr这样的功能来检测和回退使用旧的Flash嵌入,在其中可以指定'wmode'属性,但是我不希望它是干净的。嵌入'
这是我们的问题列表,但没有预计到达时间,对不起。 –