SoundCloud HTML5小部件作为<iframe>嵌入,但如果浏览器不支持所需的HTML5组件,它将退回到使用Flash。不幸的是,Flash player没有设置wmode属性,到目前为止,我还不能通过代码将wmode设置为transparent或opaque
<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 player时,在父<iframe>上设置wmode属性将导致备用闪存使用设置的wmode,而在Flash URL上设置GET参数将导致YouTube player使用设置的wmode。这两种技术似乎都不适用于SoundCloud。是否可以在使用SoundCloud HTML5 player时设置闪存回退的wmode,或者我是否应该自己编写功能检测来处理这一问题?
发布于 2013-01-11 18:36:38
不幸的是,目前Flash小部件不支持此选项。
发布于 2013-01-11 18:17:21
不能在<iframe>标记上设置wmode。flash回退不会将iframe替换为flash对象,但它只是使用flash作为音频渲染引擎。要获得透明的iframe,请尝试<iframe ... ALLOWTRANSPARENCY="true"></iframe>
https://stackoverflow.com/questions/14266657
复制相似问题