我使用下面的 swfobject 代码在我的页面上嵌入了一个 flash 对象:
flashVars =
appMode: appMode
callback: "function(){app.broadcaster.webcam.emit.apply(app.broadcaster.webcam, arguments);}"
params =
quality: "high"
bgcolor: "#ffffff"
wmode: "transparent"
allowscriptaccess: "always"
allowfullscreen: "true"
allowNetworking: "all"
allowFullScreenInteractive: true
attributes =
id: id
name: id
align: "middle"
classid: "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
args = [
"/bin-release-v2/fApp_1_9_beta4.swf"
id
"464"
"348",
"11.1.0"
"/bin-release/playerProductInstall.swf"
flashVars
params
attributes
(e) =>
app.log "embedded player!", "broadcaster"
$el = $ e.ref
webcam = WebcamBroadcaster.create $el
@emit "embed", webcam
deferred.resolve webcam
]
swfobject.embedSWF args...
一切正常,我可以调用对象上的方法(包括在 IE9 中),但我随机收到此错误:
document.getElementById("webcam").setReturnValue("<undefined/>")
SCRIPT 5007: Unable to get value of the property 'SetReturnValue': object is null or undefined
我正在开发一个基于 socket.io 的广播网站,这发生在客户端。
当广播者断开连接时,闪存对象会从客户端移除,并在连接时再次嵌入。
会不会是闪存上有快速移除/嵌入,而 IE9 浏览器速度较慢?